Struct wasmparser::BinaryReader[][src]

pub struct BinaryReader<'a> { /* fields omitted */ }

A binary reader of the WebAssembly structures and types.

Methods

impl<'a> BinaryReader<'a>
[src]

Constructs BinaryReader type.

Examples

let fn_body = &vec![0x41, 0x00, 0x10, 0x00, 0x0B];
let mut reader = wasmparser::BinaryReader::new(fn_body);
while !reader.eof() {
    let op = reader.read_operator();
    println!("{:?}", op)
}

Read a count indicating the number of times to call read_local_decl.

Read a (count, value_type) declaration of local variables of the same type.

Trait Implementations

impl<'a> Clone for BinaryReader<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Send for BinaryReader<'a>

impl<'a> Sync for BinaryReader<'a>