Pike v8.1 release 6

Method Stdio.Buffer()->try_read()


Method try_read

string(8bit) try_read(int len)

Description

Attempt to read some data from the buffer.

Parameter len

Read at most len bytes from the buffer.

Returns

If the buffer contains less than len bytes of data, the entire buffer contents are returned. Otherwise the first len bytes are returned.

See also

read()