24 references to Length
System.Reflection.Metadata (24)
System\Reflection\Metadata\BlobBuilder.cs (23)
53
private Span<byte> Span => _buffer.AsSpan(0,
Length
);
125
Debug.Assert(
Length
>= 0 &&
Length
<= _buffer.Length);
136
Debug.Assert(chunk.IsHead || chunk.
Length
> 0);
137
totalLength += chunk.
Length
;
144
public int Count => _previousLengthOrFrozenSuffixLengthDelta +
Length
;
160
protected int FreeBytes => _buffer.Length -
Length
;
236
int minLength = Math.Min(left.
Length
- leftStart, right.
Length
- rightStart);
246
if (leftStart == left.
Length
)
253
if (rightStart == right.
Length
)
282
int chunkEnd = chunkStart + chunk.
Length
;
345
destination.Write(chunk._buffer, 0, chunk.
Length
);
469
int oldSuffixLength = suffix.
Length
;
475
PreviousLength += suffix.
Length
+ suffixPreviousLength;
480
suffix._previousLengthOrFrozenSuffixLengthDelta = suffixPreviousLength + oldSuffixLength - suffix.
Length
;
572
PreviousLength +=
Length
;
636
_buffer.WriteBytes(
Length
, value, bytesToCurrent);
676
buffer.Slice(0, bytesToCurrent).CopyTo(_buffer.AsSpan(
Length
));
716
bytesRead = source.TryReadAll(_buffer,
Length
, bytesToCurrent);
1104
_buffer.WriteUTF8(
Length
, currentPtr, charsToCurrent, bytesToCurrent, allowUnpairedSurrogates);
1169
string.Join("->", GetChunks().Select(chunk => $"[{Display(chunk._buffer, chunk.
Length
)}]")) :
1170
$"<{Display(_buffer,
Length
)}>";
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (1)
82
return new Blob(current._buffer, 0, current.
Length
);