pub trait Length {
// Required method
fn len(&self) -> u64;
}
Expand description
Length should return the total number of bytes in the input source. It’s mainly used to read the metadata, which is at the end of the source.
pub trait Length {
// Required method
fn len(&self) -> u64;
}
Length should return the total number of bytes in the input source. It’s mainly used to read the metadata, which is at the end of the source.