- (const void *) bytes
Returns a pointer to the data’s bytes.
- (void) getBytes:(void *)result
Copies all bytes into a buffer.
- (void) getBytes:(void *)result length:(ULONG)length
Copies the specified number of bytes into a buffer.
- (void) getBytes:(void *)result range:(OBRange)range
Copies bytes from the specified range into a buffer.
- (id) initWithBytes:(const void *)bytes length:(ULONG)length
Initializes data by copying bytes from a buffer.
- (id) initWithBytesNoCopy:(void *)bytes length:(ULONG)length
Initializes data without copying bytes.
- (id) initWithBytesNoCopy:(void *)bytes length:(ULONG)length freeWhenDone:(BOOL)freeWhenDone
Initializes data without copying bytes, optionally freeing them on deallocation.
- (id) initWithContentsOfFile:(OBString *)path
Initializes data from the contents of a file.
- (id) initWithData:(OBData *)data
Initializes data by copying another data object.
- (BOOL) isEqualToData:(OBData *)data
Compares the receiver to another data object.
- (ULONG) length
Returns the number of bytes in the data.
- (OBData *) subdataWithRange:(OBRange)range
Returns a data object containing bytes from the specified range.
- (BOOL) writeToFile:(OBString *)path
Writes the data to a file.