serializeInt16 method
Serializes an int16 value.
Throws an ArgumentError naming the domain if value falls
outside -32768..32767, before any native call is made. See the class doc
for why the integer widths reject.
Implementation
void serializeInt16(int value) {
_checkState();
_requireInRange(value, -32768, 32767, 'int16');
final rc = bindings.zd_serializer_serialize_int16(_loanMut().cast(), value);
if (rc != 0) throw ZenohException('Failed to serialize int16', rc);
}