5 writes to Length
Microsoft.Data.Analysis (5)
DataFrameBuffer.cs (3)
55
Length
= length;
63
Length
++;
69
Length
+= numberOfValues;
ReadOnlyDataFrameBuffer.cs (2)
56
Length
= length;
62
Length
= length;
71 references to Length
Microsoft.Data.Analysis (71)
DataFrameBuffer.cs (5)
32
get => (MemoryMarshal.Cast<byte, T>(Buffer.Span)).Slice(0,
Length
);
62
RawSpan[
Length
] = value;
74
long newLength =
Length
+ (long)numberOfValues;
96
if (index >=
Length
)
108
mutableBuffer = new DataFrameBuffer<T>(buffer.ReadOnlyBuffer, buffer.
Length
);
DataFrameColumns\ArrowStringDataFrameColumn.cs (13)
53
if (length + 1 != offsetBuffer.
Length
)
86
Debug.Assert(bitMapBuffer.
Length
> bitMapBufferIndex);
104
Debug.Assert(bitMapBuffer.
Length
>= bitMapBufferIndex);
105
if (bitMapBuffer.
Length
== bitMapBufferIndex)
190
if (mutableOffsetsBuffer.
Length
== 0)
197
mutableOffsetsBuffer.Append(mutableOffsetsBuffer[mutableOffsetsBuffer.
Length
- 1]);
202
if (mutableDataBuffer.
Length
== ReadOnlyDataFrameBuffer<byte>.MaxCapacity)
211
var startIndex = mutableDataBuffer.
Length
;
214
mutableOffsetsBuffer.Append(mutableOffsetsBuffer[mutableOffsetsBuffer.
Length
- 1] + value.Length);
230
while (curArrayIndex < numBuffers && rowIndex > _offsetsBuffers[curArrayIndex].
Length
- 1)
232
rowIndex -= _offsetsBuffers[curArrayIndex].
Length
- 1;
335
return _offsetsBuffers[offsetsBufferIndex].
Length
- indexInBuffer;
355
if (numberOfRows != 0 && numberOfRows > _offsetsBuffers[offsetsBufferIndex].
Length
- 1 - indexInBuffer)
PrimitiveColumnContainer.BinaryOperations.cs (2)
50
nullCount += mutableBuffer.
Length
- BitUtility.GetBitCount(leftValidity, mutableBuffer.
Length
);
PrimitiveColumnContainer.cs (40)
121
if (Buffers[Buffers.Count - 1].
Length
== ReadOnlyDataFrameBuffer<T>.MaxCapacity)
149
if (Buffers[Buffers.Count - 1].
Length
== ReadOnlyDataFrameBuffer<T>.MaxCapacity)
159
int originalBufferLength = mutableLastBuffer.
Length
;
164
int nullBufferAllocatable = (originalBufferLength + allocatable + 7) / 8 - lastNullBitMapBuffer.
Length
;
170
mutableLastBuffer.RawSpan.Slice(mutableLastBuffer.
Length
- allocatable, allocatable).Fill(value.Value);
226
for (int i = 0; i < sourceBuffer.
Length
; i++)
321
Debug.Assert(bitMapBuffer.
Length
>= bitMapBufferIndex);
322
if (bitMapBuffer.
Length
== bitMapBufferIndex)
341
Debug.Assert(bitMapBuffer.
Length
> bitMapBufferIndex);
365
return Buffers[bufferIndex].
Length
- (int)startIndex;
454
DataFrameBuffer<byte> newBuffer = new DataFrameBuffer<byte>(buffer.ReadOnlyBuffer, buffer.
Length
);
494
for (int i = 0; i < buffer.
Length
; i++)
498
spanIndex = buffer.
Length
- 1 - i;
531
DataFrameBuffer<T> newBuffer = new DataFrameBuffer<T>(buffer.ReadOnlyBuffer, buffer.
Length
);
533
ret.Length += buffer.
Length
;
545
DataFrameBuffer<bool> newBuffer = new DataFrameBuffer<bool>(buffer.
Length
);
547
newBuffer.IncreaseSize(buffer.
Length
);
559
ret.Length += buffer.
Length
;
571
ret.Length += buffer.
Length
;
572
DataFrameBuffer<byte> newBuffer = new DataFrameBuffer<byte>(buffer.
Length
);
590
ret.Length += buffer.
Length
;
591
DataFrameBuffer<sbyte> newBuffer = new DataFrameBuffer<sbyte>(buffer.
Length
);
609
ret.Length += buffer.
Length
;
610
DataFrameBuffer<double> newBuffer = new DataFrameBuffer<double>(buffer.
Length
);
628
ret.Length += buffer.
Length
;
629
DataFrameBuffer<decimal> newBuffer = new DataFrameBuffer<decimal>(buffer.
Length
);
647
ret.Length += buffer.
Length
;
648
DataFrameBuffer<short> newBuffer = new DataFrameBuffer<short>(buffer.
Length
);
666
ret.Length += buffer.
Length
;
667
DataFrameBuffer<ushort> newBuffer = new DataFrameBuffer<ushort>(buffer.
Length
);
685
ret.Length += buffer.
Length
;
686
DataFrameBuffer<int> newBuffer = new DataFrameBuffer<int>(buffer.
Length
);
704
ret.Length += buffer.
Length
;
705
DataFrameBuffer<uint> newBuffer = new DataFrameBuffer<uint>(buffer.
Length
);
723
ret.Length += buffer.
Length
;
724
DataFrameBuffer<long> newBuffer = new DataFrameBuffer<long>(buffer.
Length
);
742
ret.Length += buffer.
Length
;
743
DataFrameBuffer<ulong> newBuffer = new DataFrameBuffer<ulong>(buffer.
Length
);
761
ret.Length += buffer.
Length
;
762
DataFrameBuffer<float> newBuffer = new DataFrameBuffer<float>(buffer.
Length
);
PrimitiveDataFrameColumn.cs (3)
134
if (numberOfRows != 0 && numberOfRows > _columnContainer.Buffers[bufferIndex].
Length
- offset)
151
Date64Array.Builder builder = new Date64Array.Builder().Reserve(valueBuffer.
Length
);
153
for (int i = 0; i < valueBuffer.
Length
; i++)
PrimitiveDataFrameColumn.Sort.cs (4)
33
int[] sortIndices = new int[buffer.
Length
];
34
for (int i = 0; i < buffer.
Length
; i++)
38
IntrospectiveSort(buffer.ReadOnlySpan, buffer.
Length
, sortIndices, comparer);
50
columnNullIndices[nullIndicesSlot] = localSortIndex + b * _columnContainer.Buffers[0].
Length
;
ReadOnlyDataFrameBuffer.cs (4)
24
public ReadOnlyMemory<T> ReadOnlyMemory => RawReadOnlyMemory.Slice(0,
Length
);
44
get => (MemoryMarshal.Cast<byte, T>(ReadOnlyBuffer.Span)).Slice(0,
Length
);
69
if (index >=
Length
)
81
for (int i = 0; i <
Length
; i++)