예제 #1
0
 private ByteBuffer PutShort(long a, short x)
 {
     if (Unaligned)
     {
         short y = (x);
         @unsafe.putShort(a, (NativeByteOrder ? y : Bits.Swap(y)));
     }
     else
     {
         Bits.PutShort(a, x, BigEndian);
     }
     return(this);
 }