Prev: buffer_to_strings
buffer_truncate(buffer, length)This function returns the result of truncating buffer to the length length. If length is less than
0 or greater
than the length of buffer, then buffer_truncate() throws a
~range error.Examples:
buffer_truncate(%[65, 66, 67, 10], 2)
=> %[65, 66]