Padding.pad

ubyte[] pad(const(ubyte)[] input, size_t blockSize)

Adds padding to the input to make it a multiple of blockSize.

Parameters

inputThe data to pad.
blockSizeThe block size in bytes (must be > 0).

Returns

A new buffer containing input + padding.