beatmup.WritableChunkCollection

class beatmup.WritableChunkCollection

Writable ChunkCollection implementation for Python. Allows to exchange binary data without copying.

__init__(self: beatmup.WritableChunkCollection) None

Methods

__init__(self)

chunk_exists(self, id)

Check if a specific chunk exists.

chunk_size(self, id)

Retrieves size of a specific chunk.

close(self)

Closes the collection after a reading session.

open(self)

Opens the collection to read chunks from it.

save(self, filename, append)

Saves the collection to a file.

size(self)

Returns the number of chunks available in the collection after it is opened.