public void Read(byte[] bytes) { using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){ OldAmountOwner = (VMTransferFundsOldOwner)io.ReadByte(); AmountOwner = (VMVariableScope)io.ReadByte(); AmountData = io.ReadUInt16(); Flags = (VMTransferFundsFlags)io.ReadByte(); io.ReadByte(); ExpenseType = (VMTransferFundsExpenseType)io.ReadByte(); TransferType = (VMTransferFundsType)io.ReadByte(); } }
public void Read(byte[] bytes) { using (var io = IoBuffer.FromBytes(bytes, ByteOrder.LITTLE_ENDIAN)){ OldAmmountOwner = (VMTransferFundsOldOwner)io.ReadByte(); AmmountOwner = (VMVariableScope)io.ReadByte(); //TODO: Not certain of the boundaries for the next 2 fields Flags = (VMTransferFundsFlags)io.ReadUInt32(); ExpenseType = (VMTransferFundsExpenseType)io.ReadByte(); TransferType = (VMTransferFundsType)io.ReadByte(); } }