Struct concordium_std::Cursor [−][src]
pub struct Cursor<T> {
pub offset: usize,
pub data: T,
}Expand description
Add offset tracking inside a data structure.
Fields
offset: usizedata: TImplementations
Trait Implementations
Read a number of bytes into the provided buffer. The returned value is
Ok(n) if a read was successful, and n bytes were read (n could be
0). Read more
Read exactly the required number of bytes. If not enough bytes could be
read the function returns Err(_), and the contents of the given buffer
is unspecified. Read more
Read a u64 in little-endian format.
Read a u32 in little-endian format.
Read a u16 in little-endian format.
Read a u8.
Read a i64 in little-endian format.
Read a i32 in little-endian format.
Read a i16 in little-endian format.
Read a i32 in little-endian format.
