encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(int value, Output output) {
if (value < -0x8000 || value > 0x7FFF) {
throw OutOfBoundsException();
}
U16Codec.codec.encodeTo(value.toUnsigned(16), output);
}