HexFiend
HFSharedMemoryByteSlice.h
Go to the documentation of this file.
1 //
2 // HFSharedMemoryByteSlice.h
3 // HexFiend_2
4 //
5 // Copyright 2008 ridiculous_fish. All rights reserved.
6 //
7 
8 #import <HexFiend/HFByteSlice.h>
9 
18  NSMutableData *data;
19  NSUInteger offset;
20  NSUInteger length;
21  unsigned char inlineTailLength;
22  unsigned char inlineTail[15]; //size chosen to exhaust padding of 32-byte allocator
23 }
24 
25 // copies the data
26 - (instancetype)initWithUnsharedData:(NSData *)data;
27 
28 // retains, does not copy
29 - (instancetype)initWithData:(NSMutableData *)data;
30 - (instancetype)initWithData:(NSMutableData *)data offset:(NSUInteger)offset length:(NSUInteger)length;
31 
32 @end
unsigned long long length()
A subclass of HFByteSlice for working with data stored in memory.
Definition: HFSharedMemoryByteSlice.h:17
A class representing a source of data for an HFByteArray.
Definition: HFByteSlice.h:19