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(); } }