Exiffer.Buffer (exiffer v0.1.0)

Documentation for Exiffer.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

Link to this section Functions

Link to this function

consume(buffer, count)

Link to this function

copy(input, output)

Link to this function

new(filename, opts \\ [])

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

write(buffer, binary)