Lines Matching refs:DataBuffer
36 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestNumbers()
38 Assert.ArrayEqual(new byte[] { 1 }, builder.DataBuffer.Data); in TestNumbers()
40 Assert.ArrayEqual(new byte[] { 129, 1 }, builder.DataBuffer.Data); in TestNumbers()
42 Assert.ArrayEqual(new byte[] { 0, 255, 129, 1 }, builder.DataBuffer.Data); // First pad in TestNumbers()
44 …Assert.ArrayEqual(new byte[] { 0, 0, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // Se… in TestNumbers()
46 …rayEqual(new byte[] { 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // no pad in TestNumbers()
48 … 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // third … in TestNumbers()
50 …, 204, 204, 204, 252, 0xEE, 0xFE, 0x22, 0x82, 0, 255, 129, 1 }, builder.DataBuffer.Data); // no pad in TestNumbers()
58 …ArrayEqual(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.Data); in TestNumbers64()
62 …ArrayEqual(new byte[] { 0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11 }, builder.DataBuffer.Data); in TestNumbers64()
70 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt8()
72 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 1, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt8()
74 Assert.ArrayEqual(new byte[] { 1, 0, 0, 0, 1, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt8()
82 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_2xUint8()
84 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 1, 0, 0 }, builder.DataBuffer.Data); in TestVector_2xUint8()
86 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 2, 1, 0, 0 }, builder.DataBuffer.Data); in TestVector_2xUint8()
88 Assert.ArrayEqual(new byte[] { 2, 0, 0, 0, 2, 1, 0, 0 }, builder.DataBuffer.Data); in TestVector_2xUint8()
96 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt16()
98 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 1, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt16()
100 Assert.ArrayEqual(new byte[] { 1, 0, 0, 0, 1, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_1xUInt16()
108 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, builder.DataBuffer.Data); in TestVector_2xUInt16()
110 Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0, 0, 0xCD, 0xAB }, builder.DataBuffer.Data); in TestVector_2xUInt16()
112 … Assert.ArrayEqual(new byte[] { 0, 0, 0, 0, 0xBA, 0xDC, 0xCD, 0xAB }, builder.DataBuffer.Data); in TestVector_2xUInt16()
114 … Assert.ArrayEqual(new byte[] { 2, 0, 0, 0, 0xBA, 0xDC, 0xCD, 0xAB }, builder.DataBuffer.Data); in TestVector_2xUInt16()
122 …ArrayEqual(new byte[] { 3, 0, 0, 0, (byte)'f', (byte)'o', (byte)'o', 0 }, builder.DataBuffer.Data); in TestCreateAsciiString()
135 }, builder.DataBuffer.Data); in TestCreateAsciiString()
147 }, builder.DataBuffer.Data); // No padding in TestCreateArbitarytring()
159 }, builder.DataBuffer.Data); // No padding in TestCreateArbitarytring()
167 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestEmptyVTable()
174 builder.DataBuffer.Data); in TestEmptyVTable()
182 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestVTableWithOneBool()
195 builder.DataBuffer.Data); in TestVTableWithOneBool()
203 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestVTableWithOneBool_DefaultValue()
214 builder.DataBuffer.Data); in TestVTableWithOneBool_DefaultValue()
222 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestVTableWithOneInt16()
235 builder.DataBuffer.Data); in TestVTableWithOneInt16()
243 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestVTableWithTwoInt16()
257 builder.DataBuffer.Data); in TestVTableWithTwoInt16()
265 Assert.ArrayEqual(new byte[] { 0 }, builder.DataBuffer.Data); in TestVTableWithInt16AndBool()
279 builder.DataBuffer.Data); in TestVTableWithInt16AndBool()
306 builder.DataBuffer.Data); in TestVTableWithEmptyVector()
333 builder.DataBuffer.Data); in TestVTableWithEmptyVectorAndScalars()
364 builder.DataBuffer.Data); in TestVTableWith_1xInt16_and_Vector_or_2xInt16()
394 builder.DataBuffer.Data); in TestVTableWithAStruct_of_int8_int16_int32()
428 builder.DataBuffer.Data); in TestVTableWithAVectorOf_2xStructOf_2xInt8()
456 builder.DataBuffer.Data); in TestVTableWithSomeElements()
507 builder.DataBuffer.Data); in TestTwoFinishTable()
550 builder.DataBuffer.Data); in TestBunchOfBools()
572 builder.DataBuffer.Data); in TestWithFloat()
667 … var table = new TestTable(builder.DataBuffer, builder.DataBuffer.Length - objects[i]); in CheckObjects()