GetBufferSpan() public method

public GetBufferSpan ( HexBufferSpan bufferSpan, int cellPosition ) : HexBufferSpan
bufferSpan HexBufferSpan
cellPosition int
return HexBufferSpan
コード例 #1
0
 public override HexBufferSpan GetValueBufferSpan(HexCell cell, int cellPosition)
 {
     if (cell == null)
     {
         throw new ArgumentNullException(nameof(cell));
     }
     if (cellPosition < 0 || cellPosition >= cell.CellSpan.Length)
     {
         throw new ArgumentOutOfRangeException(nameof(cellPosition));
     }
     return(valueFormatter.GetBufferSpan(cell.BufferSpan, cellPosition));
 }