Pike v8.1 release 6

Method Stdio.Buffer()->read()


Method read

string(8bit) read(int n)

Description

Read bytes bytes of data from the buffer.

If there is not enough data available this returns 0.

See also

try_read()


Method read

string(8bit) read()

Description

Read all data from the buffer.

If there is not enough data available this returns 0.

This is basically equivalent to (string)buffer, but it also removes the data from the buffer.

See also

try_read()