HolyLib Wiki

CopyReadBuffer

  bf_read bitbuf.CopyReadBuffer( bf_read buffer )

Description

Copies the given buffer into a new one.
Useful if you want to save the data received by a client.

The size is clamped internally between a minimum of 4 bytes and a maximum of 262144 bytes.

Arguments

1bf_read buffer
buffer to copy

Returns

1bf_read newBuffer
newly created copy