public void PackDouble(double val) { if (offset + 9 > buffer.Length) { Resize(9); } buffer[offset++] = (byte)0xcb; offset += ByteUtil.DoubleToBytes(val, buffer, offset); }
public override int Write(byte[] buffer, int offset) { return(ByteUtil.DoubleToBytes(value, buffer, offset)); }