Enum metaflac::block::Block
[−]
[src]
pub enum Block { StreamInfo(StreamInfo), Application(Application), CueSheet(CueSheet), Padding(u32), Picture(Picture), SeekTable(SeekTable), VorbisComment(VorbisComment), Unknown((u8, Vec<u8>)), }
The parsed content of a metadata block.
Variants
StreamInfo(StreamInfo)
A value containing a parsed streaminfo block.
Application(Application)
A value containing a parsed application block.
CueSheet(CueSheet)
A value containing a parsed cuesheet block.
Padding(u32)
A value containing the number of bytes of padding.
Picture(Picture)
A value containing a parsed picture block.
SeekTable(SeekTable)
A value containing a parsed seektable block.
VorbisComment(VorbisComment)
A value containing a parsed vorbis comment block.
Unknown((u8, Vec<u8>))
An value containing the bytes of an unknown block.
Methods
impl Block
[src]
fn read_from(reader: &mut Read) -> Result<(bool, u32, Block)>
[src]
Attempts to read a block from the reader. Returns a tuple containing a boolean indicating
if the block was the last block, the length of the block in bytes, and the new Block
.
fn write_to(&self, is_last: bool, writer: &mut Write) -> Result<u32>
[src]
Attemps to write the block to the writer. Returns the length of the block in bytes.
fn block_type(&self) -> BlockType
[src]
Returns the corresponding block type byte for the block.
Trait Implementations
impl Clone for Block
[src]
fn clone(&self) -> Block
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more