alignFilePointer

fun alignFilePointer(alignmentBytes: Int): Long

Aligns the current file pointer to multiples of alignmentBytes bytes to improve reads with mmap. This will write between 0 and (alignmentBytes-1) zero bytes using .writeByte.

Return

the new file pointer after alignment

Parameters

alignmentBytes

the alignment to which it should forward file pointer (must be a power of

See also

.alignOffset