Пример #1
0
 public override HexSpanInfo GetSpanInfo(HexPosition position)
 {
     if (position >= HexPosition.MaxEndPosition)
     {
         throw new ArgumentOutOfRangeException(nameof(position));
     }
     return(stream.GetSpanInfo(position));
 }
Пример #2
0
 public override HexSpanInfo GetSpanInfo(HexPosition position)
 {
     CheckDisposed();
     if (position >= HexPosition.MaxEndPosition)
     {
         throw new ArgumentOutOfRangeException(nameof(position));
     }
     return(stream?.GetSpanInfo(position) ??
            new HexSpanInfo(HexSpan.FromBounds(HexPosition.Zero, HexPosition.MaxEndPosition), HexSpanInfoFlags.None));
 }