Method Stdio.Buffer()->read_buffer()
- Method read_buffer
Bufferread_buffer(intn)
Bufferread_buffer(intn,boolcopy)- Description
Same as read, but returns the result as an Buffer.
No data is copied unless
copyis specified and true, the new buffer points into the old one.- Note
As long as the subbuffer exists no data can be added to the main buffer.
Usually this is OK, since it often represents something that should be parsed before the next whatever is extracted from the buffer, but do take care.