set_data


Description:

public bool set_data (size_t offset, uint8[] data)

Updates part of the buffer with new data from data.

Where to put this new data is controlled by offset and offset + data should be less than the buffer size.

Parameters:

offset

destination offset (in bytes) in the buffer

data

a pointer to the data to be copied into the buffer

buffer

a buffer object

size

number of bytes to copy

Returns:

true is the operation succeeded, false otherwise