resetForWrite

fun resetForWrite()

Marks all capacity writable except the start gap reserved before. The end gap reservation is discarded.


fun resetForWrite(limit: Int)

Marks up to limit bytes of the buffer available for write and no bytes for read. It does respect startGap already reserved. All extra bytes after the specified limit are considered as endGap.