Method _Stdio.Buffer()->consume()
class_Stdio.Buffer
- Method
consume
int(0..)|int(-1)consume(intn,bool|voidabsolute)- Description
Discard the first
nbytes from the buffer.- Parameter
n Number of bytes relative to the current read position.
- Parameter
absolute If
1nis relative to the absolute buffer start (ie it will adjust the read position so thatunread(0)will returnn).Returns -1 on error and the amount of space still left otherwise.
- Note
Prior to Pike 9.0, this function supported neither negative
nnor theabsoluteargument.- See also