예제 #1
0
        public void PutShort2()
        {
            int max = 4 * 1024 * 1024;

            buf = new FlexBuffer(new byte[max]);
            buf.SetIndex(max);
            buf.PutShort(( short )1);
            CheckBuf(max + 2, max + 2, 0);
        }
예제 #2
0
 public void PutShort1()
 {
     buf = new FlexBuffer(new byte[] { });
     buf.PutShort(short.MaxValue);
     CheckBuf(2, 2, 0);
     buf.SetIndex(0);
     Assert.AreEqual(short.MaxValue, buf.GetShort());
     CheckBuf(2, 2, 0);
 }