api_impl::storage

Function seek_data_object

Source
pub fn seek_data_object(
    object: ObjectHandle,
    offset: isize,
    whence: Whence,
) -> Result
Expand description

Updates the handle’s data positition, seeking at an offset from a position given by a whence value. The new position saturates at 0.

Returns Error::Overflow if the would-be position exceeds DATA_MAX_POSITION.

Panics if object is invalid.