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
Unknown
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
meta: ChunkData | |
data: Vec<u8> |
ResourceIndex
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
index: ResourceIndex |
Metadata
Identifier: 'IFmd'. Contains xml metadata content for the IF.
Fields of Metadata
info: String |
Frontispiece
Identifier: 'Fspec'. Contains a reference to a frontispiece image. This chunk is optional.
Fields of Frontispiece
num: u32 |
Glulx
Identifier: 'GLUL'. Contains Glulx executable. This is a executable resource chunk.
Fields of Glulx
code: Vec<u8> |
Png
Identifier: 'PNG '. Contains a PNG image. This is a picture resource chunk.
Fields of Png
data: Vec<u8> |
Jpeg
Identifier: 'JPEG'. Contains a JPEG image. This is a picture resource chunk.
Fields of Jpeg
data: Vec<u8> |