public AddressSpace(ClickVariableType type, DatumAddressKind kind, int baseAddress, Type datumType, int datumSize, int minLogicalAddress, int maxLogicalAddress) { this.Type = type; this.Kind = kind; this.BaseAddress = baseAddress; this.DatumType = datumType; this.DatumSize = datumSize; this.MinLogicalAddress = minLogicalAddress; this.MaxLogicalAddress = maxLogicalAddress; }
private void RegisterAddressSpace(ClickVariableType variableType, DatumAddressKind addressKind, int baseAddress, Type datumType, int datumSize, int maxLogicalAddress) { RegisterAddressSpace(variableType, addressKind, baseAddress, datumType, datumSize, 1, maxLogicalAddress); }
private void RegisterAddressSpace(ClickVariableType variableType, DatumAddressKind addressKind, int baseAddress, Type datumType, int datumSize, int minLogicalAddress, int maxLogicalAddress) { var space = new AddressSpace(variableType, addressKind, baseAddress, datumType, datumSize, minLogicalAddress, maxLogicalAddress); _addressMap.Add(variableType, space); }