Chunk

Chunk structure. Has a title and information. The size of the chunk, the size of the name, then the name itself and the data are written to the file, and so on in order.

Constructors

this
this(string name, ubyte[] data)
this(string name, string data)

Creates a chunk.

Members

Functions

compress
Chunk compress()

Compresses data. They are extremely effective only in large quantities.

save
ubyte[] save()

Gives exhaust in the form of bytes, where you can write to a file, from where, in the future, you can parse chunks.

size
size_t size()

Gives the size of the data.

toString
string toString()
uncompress
Chunk uncompress()

Decompress data if it has been compressed.

Static functions

parse
Chunk[] parse(ubyte[] data)

Retrieves chunks from file data or other information storage location

Variables

data
ubyte[] data;

Undocumented in source.

name
string name;

Undocumented in source.

Meta