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