public void GetFully1() { buf = new FlexBuffer(new byte[] { 1, 2, 3, 4, 5, 6 }); byte[] b = new byte[3]; buf.GetFully(b); Assert.AreEqual(( byte )1, b[0]); Assert.AreEqual(( byte )2, b[1]); Assert.AreEqual(( byte )3, b[2]); buf.GetFully(b); Assert.AreEqual(( byte )4, b[0]); Assert.AreEqual(( byte )5, b[1]); Assert.AreEqual(( byte )6, b[2]); CheckBuf(6, 6, 0); }
public void GetFully2() { buf = new FlexBuffer(new byte[] { 1, 2 }); byte[] b = new byte[3]; buf.GetFully(b); }