Stream.bufferGets

Reads in at most one less than max characters from stream and stores them into the buffer pointed to by buf. Reading stops after an EOS or newline ('\n'). If a newline is read, it is stored into the buffer. A '\0' is stored after the last character in the buffer.

class Stream
ptrdiff_t
bufferGets
(
ubyte[] buf
)

Parameters

buf ubyte[]

line buffer

Return Value

Type: ptrdiff_t

the number of characters read into buf on success or %-1 on fail.