property Coder.encode Encodes a value into a byte buffer and returns the number of bytes written. Type Encoder<TDecoded>