Pike v8.1 release 6

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.