pub fn truncate_object_data(object: ObjectHandle, size: usize) -> Result
Expand description
Truncates or zero-extends the object’s data stream to provided size. This does not affect any handle’s data position.
Returns Error::Overflow if size
is larger than DATA_MAX_POSITION.
Panics if object
is invalid or does not have write access.