Public Member Functions | |
(id) | - initWithUnsharedData: |
(id) | - initWithData: |
(id) | - initWithData:offset:length: |
Instances of HFSharedMemoryByteSlice are immutable (like all instances of HFByteSlice). However, to support efficient typing, the backing data is an instance of NSMutableData that may be grown. A referenced range of the NSMutableData will never have its contents changed, but it may be allowed to grow larger, so that the data does not have to be copied merely to append a single byte. This is implemented by overriding the -byteSliceByAppendingSlice: method of HFByteSlice.
- (id) initWithUnsharedData: | (NSData *) | data |
- (id) initWithData: | (NSMutableData *) | data |
- (id) initWithData: | (NSMutableData *) | data | ||
offset: | (NSUInteger) | offset | ||
length: | (NSUInteger) | length | ||