Instance Method

fillData:offset:

Writes the specified data into the buffer.

Required.

Declaration

- (void)fillData:(NSData *)data offset:(NSUInteger)offset;

Parameters

data

The data to be copied into the buffer.

offset

The offset, in bytes, from the start of the buffer at which to write data.

Discussion

If the length of the specified data (plus the offset parameter, if nonzero) is greater than the buffer’s length property, this method writes data only up to the end of the buffer.

See Also

Working with Data in a Buffer

- map

Provides direct, read-only access to the buffer’s contents.

Required.

length

The data size of the buffer, in bytes.

Required.