Esempio n. 1
0
        public void PutLong1()
        {
            int max = 4 * 1024 * 1024;

            buf = new FlexBuffer(new byte[max]);
            buf.SetIndex(max);
            buf.PutLong(long.MinValue);
            CheckBuf(max + 8, max + 8, 0);
        }
Esempio n. 2
0
 public void PutLong0()
 {
     buf = new FlexBuffer(new byte[] { });
     buf.PutLong(long.MaxValue);
     CheckBuf(8, 8, 0);
     buf.SetIndex(0);
     Assert.AreEqual(long.MaxValue, buf.GetLong());
     CheckBuf(8, 8, 0);
 }