Class OffsetAddressMap<TLinkAddress>
- Namespace
- Foundation.Data.Doublets.Cli
- Assembly
- Foundation.Data.Doublets.Cli.dll
Every address moved by the same offset: the network below reads at
offset + 1 and up, so networks moved by different offsets share no
address and a UnionLinksDecorator<TLinkAddress> of them
shadows nothing.
public sealed class OffsetAddressMap<TLinkAddress> : IAddressMap<TLinkAddress> where TLinkAddress : struct, IUnsignedNumber<TLinkAddress>
Type Parameters
TLinkAddress
- Inheritance
-
OffsetAddressMap<TLinkAddress>
- Implements
-
IAddressMap<TLinkAddress>
- Inherited Members
Constructors
OffsetAddressMap(TLinkAddress)
public OffsetAddressMap(TLinkAddress offset)
Parameters
offsetTLinkAddressWhat every address of the network below is moved by.
Properties
Offset
What every address of the network below is moved by.
public TLinkAddress Offset { get; }
Property Value
- TLinkAddress
Methods
ToOuter(TLinkAddress)
The address above of inner, given one when it has none yet.
public TLinkAddress ToOuter(TLinkAddress inner)
Parameters
innerTLinkAddress
Returns
- TLinkAddress
TryToInner(TLinkAddress, out TLinkAddress)
The address below of outer; false when outer is no address of the network below.
public bool TryToInner(TLinkAddress outer, out TLinkAddress inner)
Parameters
outerTLinkAddressinnerTLinkAddress