BinaryWriter.padFill

Moves cursor to specified position filling stream with zeros if necessary.

If specified position is behind current cursor position, nothing happens.

struct BinaryWriter
void
padFill
(
size_t offset
,
ubyte value = 0
)

Parameters

offset
Type: size_t

Offset to align to

value
Type: ubyte

Value to fill with if needed

Meta