packDouble method
Pack double or null
.
Implementation
void packDouble(double? v) {
// 8 byte double + 1 control byte
if (_buf.length - _offset < 9) _nextBuf();
if (v == null) {
_d.setUint8(_offset++, 0xc0);
return;
}
_d.setUint8(_offset++, 0xcb);
_d.setFloat64(_offset, v);
_offset += 8;
}