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