HexFiend: HFSharedMemoryByteSlice.h Source File

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
17 @interface HFSharedMemoryByteSlice : HFByteSlice {
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
-[HFByteSlice length]
unsigned long long length()
HFSharedMemoryByteSlice
A subclass of HFByteSlice for working with data stored in memory.
Definition: HFSharedMemoryByteSlice.h:17
HFByteSlice
A class representing a source of data for an HFByteArray.
Definition: HFByteSlice.h:19