begin to correct C# bytebuffer behavior

This commit is contained in:
Maor Itzkovitch
2015-08-07 09:05:08 +03:00
parent 6be146d67f
commit 7196c36842
6 changed files with 45 additions and 15 deletions

View File

@@ -17,7 +17,7 @@ public sealed class Vec3 : Struct {
public double Test1 { get { return bb.GetDouble(bb_pos + 16); } }
public void MutateTest1(double test1) { bb.PutDouble(bb_pos + 16, test1); }
public Color Test2 { get { return (Color)bb.GetSbyte(bb_pos + 24); } }
public void MutateTest2(sbyte test2) { bb.PutSbyte(bb_pos + 24, test2); }
public void MutateTest2(Color test2) { bb.PutSbyte(bb_pos + 24, (sbyte)test2); }
public Test Test3 { get { return GetTest3(new Test()); } }
public Test GetTest3(Test obj) { return obj.__init(bb_pos + 26, bb); }