unzip v0.5.0 Unzip.FileAccess protocol View Source

Should be implemented for the module which can read from the file system.

Link to this section Summary

Functions

Reads the chunk of data from the file.

Returns the size of the file in bytes.

Link to this section Types

Link to this section Functions

Link to this function

pread(file, offset, length)

View Source

Reads the chunk of data from the file.

It should return {:ok, binary} where binary is the chunk found at offset with length length

Returns the size of the file in bytes.