View Source Unzip.FileAccess protocol (unzip v0.7.0)
Should be implemented for the module which can read from the file system.
Link to this section Summary
Link to this section Types
Link to this section Functions
@spec pread(t(), pos_integer(), pos_integer()) :: {:ok, chunk()} | {:error, reason()}
Reads the chunk of data from the file
.
It should return {:ok, binary}
where binary is the chunk found at offset
with length length
@spec size(t()) :: {:ok, pos_integer()} | {:error, reason()}
Returns the size of the file in bytes.