Pike v8.0 release 1738

Method Stdio.Buffer()->consume()


Method consume

int(0..)|int(-1..-1) consume(int(0..) n)

Description

Discard the first n bytes from the buffer

Returns -1 on error and the amount of space still left otherwise.