Struct ValueBuffer
pub struct ValueBuffer { /* private fields */ }
A value represented as in-memory bytes with flexible byteorder.
Implementations
impl ValueBuffer
fn empty(ty: Type) -> SelfA value with a count of zero.
The byte order is set to the native byte order of the platform.
fn from_value<T: TiffValue>(value: &T) -> SelfCreate a value with native byte order from in-memory data.
fn byte_order(&self) -> ByteOrderfn data_type(&self) -> Typefn count(&self) -> u64The count of items in the value.
fn as_bytes(&self) -> &[u8]View the underlying raw bytes of this value.
fn as_bytes_mut(&mut self) -> &mut [u8]View the underlying mutable raw bytes of this value.
fn set_byte_order(&mut self, byte_order: ByteOrder)Change the byte order of the value representation.