public void Test_buffer__multi_level() { CGD.buffer tempBufer = new CGD.buffer(); tempBufer.alloc(200); TEST_C temp = new TEST_C(); temp.x = 10; temp.y = new List <int> { 1, 2, 3 }; temp.t = new DateTime(1990, 12, 11, 10, 21, 11); temp.z.X = 10; temp.z.Y = "Tesfdsafdsafdsafdst"; temp.z.Z = 100; temp.z.W = new List <int> { 10, 20, 30 }; string tempString; tempString = "Txxfasgfsgfdfx"; tempBufer.append <int>(10); tempBufer.append <TEST_C>(temp); tempBufer.append <string>(tempString); var a1 = tempBufer.extract <int>(); var a2 = tempBufer.extract <TEST_C>(); var a3 = tempBufer.extract <string>(); }
public void Test_buffer__multi_level() { CGD.buffer tempBufer = new CGD.buffer(); tempBufer.alloc(200); TEST_C temp = new TEST_C(); temp.x = 10; temp.y = new List<int> { 1, 2, 3}; temp.t = new DateTime(1990, 12, 11, 10, 21, 11); temp.z.X = 10; temp.z.Y = "Tesfdsafdsafdsafdst"; temp.z.Z = 100; temp.z.W = new List<int> { 10, 20, 30}; string tempString; tempString = "Txxfasgfsgfdfx"; tempBufer.append<int>(10); tempBufer.append<TEST_C>(temp); tempBufer.append<string>(tempString); var a1 = tempBufer.extract<int>(); var a2 = tempBufer.extract<TEST_C>(); var a3 = tempBufer.extract<string>(); }