set_data


Description:

public static Bool set_data (Buffer buffer, ulong offset, void* data, ulong size)

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:

buffer

a buffer object

offset

destination offset (in bytes) in the buffer

data

a pointer to the data to be copied into the buffer

size

number of bytes to copy

Returns:

true is the operation succeeded, false otherwise