HexFiend: HFFileByteSlice Class Reference

HexFiend

Instance Methods | List of all members
HFFileByteSlice Class Reference
Model

A subclass of HFByteSlice for working data stored in files. More...

Inheritance diagram for HFFileByteSlice:

## Instance Methods
(instancetype) | - initWithFile:
(instancetype) | - initWithFile:offset:length:
Instance Methods inherited from HFByteSlice
(unsigned long long) | - length
(void) | - copyBytes:range:
(HFByteSlice *) | - subsliceWithRange:
(HFByteSlice *) | - byteSliceByAppendingSlice:
(BOOL) | - isSourcedFromFile
(HFRange) | - sourceRangeForFile:
(HFByteRangeAttributeArray *) | - attributesForBytesInRange:

## Detailed Description

HFFileByteSlice is a subclass of HFByteSlice that represents a portion of data from a file. The file is specified as an HFFileReference; since the HFFileReference encapsulates the file descriptor, multiple HFFileByteSlices may all reference the same file without risking overrunning the limit on open files.

## Method Documentation

## § initWithFile:()

- (instancetype) initWithFile: |  | (HFFileReference *) | file |

Initialize an HFByteSlice from a file. The receiver represents the entire extent of the file.

## § initWithFile:offset:length:()

- (instancetype) initWithFile: |  | (HFFileReference *) | file
offset: |  | (unsigned long long) | offset
length: |  | (unsigned long long) | length

Initialize an HFByteSlice from a portion of a file, specified as an offset and length. The sum of the offset and length must not exceed the length of the file. This is the designated initializer.

The documentation for this class was generated from the following file:

- HFFileByteSlice.h