Struct beam_file::chunk::RawChunk
[−]
[src]
pub struct RawChunk { pub id: Id, pub data: Vec<u8>, }
A raw representation of a chunk.
This implementation does not interpret the data of a chunk at the time of reading it from a BEAM file.
Fields
id: Id
The identifier of the chunk.
data: Vec<u8>
The bare data of the chunk.
Trait Implementations
impl Debug for RawChunk
[src]
impl PartialEq for RawChunk
[src]
fn eq(&self, __arg_0: &RawChunk) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RawChunk) -> bool
This method tests for !=
.
impl Eq for RawChunk
[src]
impl Chunk for RawChunk
[src]
fn id(&self) -> &Id
Returns the identifier of the chunk.
fn decode_data<R: Read>(id: &Id, reader: R) -> Result<Self> where
Self: Sized,
Self: Sized,
Reads a chunk which has the identifier id
from reader
. Read more
fn encode_data<W: Write>(&self, writer: W) -> Result<()>
Writes the data of the chunk to writer
. Read more
fn decode<R: Read>(reader: R) -> Result<Self> where
Self: Sized,
Self: Sized,
Reads a chunk from reader
.
fn encode<W: Write>(&self, writer: W) -> Result<()>
Writes the chunk to writer
.