Exiffer.IO.Buffer (exiffer v0.2.4)
Documentation for Exiffer.IO.Buffer
.
A buffer with read access to the file source.
When matching on the buffer's raw data, it is up to the user to use ensure/2 so that enough data has been read.
Link to this section Summary
Functions
Read some bytes without changing the current buffer position.
Link to this section Functions
Link to this function
close(buffer)
Link to this function
consume(buffer, count)
Link to this function
copy(input, output)
Link to this function
ensure(buffer, amount)
Link to this function
new(filename, opts \\ [])
Link to this function
new_from_binary(binary, opts \\ [])
Link to this function
offset_buffer(buffer, offset)
Link to this function
random(buffer, read_position, count)
Read some bytes without changing the current buffer position.
If the bytes are in the current read buffer, simply return them. Otherwise, position the buffer, read the bytes, then reposition the buffer to the previous position.
Link to this function
seek(buffer, position)
Link to this function
skip(buffer, count)
Link to this function
tell(buffer)
Link to this function