Next: buffer_to_strings

Prev: buffer_replace

buffer_retrieve

buffer_retrieve(buffer, pos)
This function returns the byte numbered pos in buffer, with the first byte of buffer is numbered 1. If pos is less than 1, or greater than the length of buffer, then buffer_replace() throws a ~range error.

Examples:

buffer_retrieve(%[65, 66, 67, 10], 3)
     => 67