Readonlyencode: (value: TFrom) => ReadonlyUint8ArrayReadonlywrite: (value: TFrom, bytes: Uint8Array, offset: Offset) => OffsetWrites the encoded value into the provided byte array at the given offset. Returns the offset of the next byte after the encoded value.
Encode the provided value and return the encoded bytes directly.