Exemplo n.º 1
0
Arquivo: Bytes.cs Projeto: nunun/Xnet
 /**
  * 情報を書き込みます (Double)
  * Big Endian (Network Byte Order) を使用します。
  */
 public void WriteDoubleBE(double v)
 {
     int nextpos = this.tailpos + 8;
     if (nextpos < this.maxLength || this.Extend()) {
         NetworkValue nv = new NetworkValue();
         Array.Copy(BitConverter.GetBytes(nv.HTOND(v)), 0, accessor, this.tailpos, 8);
         this.tailpos = nextpos;
         this.length += 8;
     }
 }