Struct fldtools::ChunkList [] [src]

pub struct ChunkList {
    pub chunks: Vec<Chunk>,
}

Represents the header of an FLD file. A ChunkList is a simple collection of one or more data chunks.

Fields

Methods

impl ChunkList
[src]

Builds a ChunkList given a list of file sizes. This will calculate offsets for each file to be packed within an FLD file and use that to generate a set of Chunks.

Parses an FLD header from raw data, and returns a ChunkList. This skips any portion of the header which begins with 0xFF, since FLD files are padded using sets of 0xFFs.

Serializes this ChunkList into its binary representation.

Trait Implementations

impl IntoIterator for ChunkList
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more