encode

open fun encode(): Array<Byte>

Encodes the set bits in a form suitable for ZIP archives.

Return

the encoded general purpose bits


open fun encode(buf: Array<Byte>, offset: Int)

Encodes the set bits in a form suitable for ZIP archives.

Parameters

buf

the output buffer

offset

The offset within the output buffer of the first byte to be written. must be non-negative and no larger than buf.length-2