Enum blorb::Chunk [] [src]

pub enum Chunk {
    Unknown {
        meta: ChunkData,
        data: Vec<u8>,
    },
    ResourceIndex {
        index: ResourceIndex,
    },
    Metadata {
        info: String,
    },
    Frontispiece {
        num: u32,
    },
    Glulx {
        code: Vec<u8>,
    },
    Png {
        data: Vec<u8>,
    },
    Jpeg {
        data: Vec<u8>,
    },
}

Representation for loaded blorb chunks

Variants

Chunk returned when the loaded chunk type is unable to be identified. Per Specification, the machine must ignore unknown chunks, and this type will be used to do so when necessary.

Fields of Unknown

Identifier: 'RIdx'. Contains a resource index for the IF. This chunk is mandatory and must be the first chunk in the form.

Fields of ResourceIndex

Identifier: 'IFmd'. Contains xml metadata content for the IF.

Fields of Metadata

Identifier: 'Fspec'. Contains a reference to a frontispiece image. This chunk is optional.

Fields of Frontispiece

Identifier: 'GLUL'. Contains Glulx executable. This is a executable resource chunk.

Fields of Glulx

Identifier: 'PNG '. Contains a PNG image. This is a picture resource chunk.

Fields of Png

Identifier: 'JPEG'. Contains a JPEG image. This is a picture resource chunk.

Fields of Jpeg