api_impl::storage

Function write_object_data

Source
pub fn write_object_data(object: ObjectHandle, buffer: &[u8]) -> Result
Expand description

Writes the provided data to the object’s data stream at the handle’s data position, advancing that position to the end of the written data.

Returns Error::AccessConflict if the object does not have write access.

Returns Error::Overflow if writing the data would advance the data position past DATA_MAX_POSITION.

Panics if object is invalid or does not have write access.