Exemplo n.º 1
0
 public void Read(byte[] bytes)
 {
     using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){
         OldTrapCount = io.ReadUInt16();
         Location     = (VMGotoRelativeLocation)((sbyte)io.ReadByte());
         Direction    = (VMGotoRelativeDirection)((sbyte)io.ReadByte());
         RouteCount   = io.ReadUInt16();
         Flags        = (VMGotoRelativeFlags)io.ReadByte();
     }
 }
 public void Read(byte[] bytes)
 {
     using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){
         OldTrapCount = io.ReadUInt16();
         Location = (VMGotoRelativeLocation)((sbyte)io.ReadByte());
         Direction = (VMGotoRelativeDirection)((sbyte)io.ReadByte());
         RouteCount = io.ReadUInt16();
         Flags = (VMGotoRelativeFlags)io.ReadByte();
     }
 }