shorten_buffer
shorten_buffer — reduces the size of a buffer.
shorten_buffer (buffer, n_elements)
bufferThe buffer to shorten.
n_elementsThe number of elements that the buffer is to be reduced to.
The shortened buffer.
This function reduces the size of a buffer by cutting off any elements
which extend beyond the given size. This function is analogous to the C
function, realloc.
Gamma>b = buffer(119,120,121,122);#{wxyz}Gamma>shorten_buffer(b,3);#{wxy}Gamma>