Method _Stdio.Buffer()->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()


Method read

string(8bit) read(int(0..) n)

Description

Read n bytes of data from the buffer.

If there is not enough data available this returns 0.

See also

try_read()