prep

fun prep(size: Int, additionalBytes: Int)

Prepare to write an element of size after additional_bytes have been written, e.g. if you write a string, you need to align such the int length field is aligned to com.google.flatbuffers.Int.SIZE_BYTES, and the string data follows it directly. If all you need to do is alignment, additional_bytes will be 0.

Parameters

size

This is the of the new element to write.

additionalBytes

The padding size.