예제 #1
0
 public static void Write(byte *bData, Direction val, ref int pos)
 {
     (*(Direction *)&bData[pos]) = val;
     pos += sizeof(Direction);
 }
예제 #2
0
 public static void Read(byte *bData, out Direction val, ref int pos)
 {
     val  = *(Direction *)&bData[pos];
     pos += sizeof(Direction);
 }