OutBuffer.alignSize

void alignSize(size_t alignsize, ubyte val = 0)

Append bytes until the buffer aligns on a power of 2 boundary.

By default fills with 0 bytes.

Parameters

alignsizeAlignment value. Must be power of 2.
valValue to fill, defaults to 0.