HolyLib Wiki

CreateWriteBuffer

  bf_write bitbuf.CreateWriteBuffer( number size )

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

1number size

buffer size in bytes to allocate.
Can be given a string as data.

Returns

1bf_write buffer
newly created buffer