chunker v0.12.0 Chunker.ChunkedFile protocol View Source
Protocol for custom implementation of chunked files.
Link to this section Summary
Functions
Closes the given chunked_file
Returns true
if the given chunked_file
has already been closed
Commits the given chunked_file
Returns the data of the chunk with index
from the given
chunked_file
Inserts data
to the given chunked_file
at the position specified
by index
Returns the number of individual chunks the given chunked_file
consists of
Removes the given chunked_file
Removes the chunk with the corresponding index
from the given
chunked_file
Returns true
if chunks can be added or removed from the given
chunked_file
Link to this section Types
Link to this section Functions
Closes the given chunked_file
.
After the file has been closed, it is not possible to read from it nor write to it.
Returns true
if the given chunked_file
has already been closed.
Commits the given chunked_file
.
After the file has been committed, chunks can no longer be added or removed.
Returns the data of the chunk with index
from the given
chunked_file
.
Inserts data
to the given chunked_file
at the position specified
by index
.
Returns the number of individual chunks the given chunked_file
consists of.
Removes the given chunked_file
.
Removes the chunk with the corresponding index
from the given
chunked_file
.
Returns true
if chunks can be added or removed from the given
chunked_file
.