public void ClassTest()
 {
   var test = new TestClass();
   test.SetDefaultValues();
   int allocatedBytes;
   var result = test.ToPointer(out allocatedBytes).Read<TestClass>((uint)allocatedBytes);
   Assert.IsTrue(test.Compare(result));
 }