truncate

fun truncate(length: Long)

Truncates the Large Object to the given length. If the object was previously larger, the extra data is lost. If the object was previously shorter, it is extended with null bytes.

Parameters

length

The new length of the Large Object.