Struct beam_file::chunk::CodeChunk [] [src]

pub struct CodeChunk {
    pub info_size: u32,
    pub version: u32,
    pub opcode_max: u32,
    pub label_count: u32,
    pub function_count: u32,
    pub bytecode: Vec<u8>,
}

A representation of the "Code" chunk.

Fields

Length of the information fields before code.

Instruction set version.

The highest opcode used in the code section.

The number of labels.

The number of functions.

The byte code.

Trait Implementations

impl Debug for CodeChunk
[src]

Formats the value using the given formatter.

impl PartialEq for CodeChunk
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for CodeChunk
[src]

impl Chunk for CodeChunk
[src]

Returns the identifier of the chunk.

Reads a chunk which has the identifier id from reader. Read more

Writes the data of the chunk to writer. Read more

Reads a chunk from reader.

Writes the chunk to writer.