1 write to Length
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
23
this.
Length
= length;
96 references to Length
System.Reflection.Metadata (96)
System\Reflection\Internal\Utilities\MemoryBlock.cs (15)
44
if (unchecked((ulong)(uint)offset + (uint)byteCount) > (ulong)
Length
)
52
return Pointer == null ? null : PeekBytes(0,
Length
);
67
displayedBytes = Math.Min(
Length
, 64);
69
if (displayedBytes <
Length
)
90
else if (displayedBytes ==
Length
)
148
long limit =
Length
- offset;
318
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + offset,
Length
- offset);
340
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(Pointer + startOffset,
Length
- startOffset);
400
byte* endPointer = Pointer +
Length
;
451
if (asciiPrefix.Length >
Length
- offset)
480
int limit =
Length
- offset;
521
int i = new ReadOnlySpan<byte>(Pointer + start,
Length
- start).IndexOf(b);
773
int totalSize = this.
Length
;
794
int totalSize = this.
Length
;
838
int totalSize = this.
Length
;
System\Reflection\Metadata\BlobReader.cs (6)
40
Debug.Assert(block.
Length
>= 0 && (block.Pointer != null || block.
Length
== 0));
43
_endPointer = block.Pointer + block.
Length
;
59
else if (displayedBytes == _block.
Length
)
86
public int Length => _block.
Length
;
100
if (unchecked((uint)value) > (uint)_block.
Length
)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (1)
202
return reader.GetMetadataBlock(heapIndex).
Length
;
System\Reflection\Metadata\Internal\BlobHeap.cs (2)
153
if (nextIndex >= Block.
Length
)
251
firstDifferenceIndex - otherIndex != partBlock.
Length
)
System\Reflection\Metadata\Internal\StringHeap.cs (6)
126
if (block.
Length
== 0)
131
int i = block.
Length
- 1;
138
if (i == block.
Length
- 1)
186
var bytes = new byte[prefix.Length + block.
Length
];
188
Marshal.Copy((IntPtr)block.Pointer, bytes, prefix.Length, block.
Length
);
239
if (terminator == -1 || terminator == Block.
Length
- 1)
System\Reflection\Metadata\Internal\UserStringHeap.cs (1)
39
if (nextIndex >= Block.
Length
)
System\Reflection\Metadata\MetadataReader.cs (65)
111
if (pdbStream.
Length
> 0)
134
if (pdbStream.
Length
== 0 && ModuleTable.NumberOfRows < 1)
279
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
288
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
297
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
306
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
315
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
325
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
335
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
345
if (metadataRoot.
Length
< streamHeader.Offset + streamHeader.Size)
606
totalRequiredSize += this.ModuleTable.Block.
Length
;
609
totalRequiredSize += this.TypeRefTable.Block.
Length
;
612
totalRequiredSize += this.TypeDefTable.Block.
Length
;
615
totalRequiredSize += this.FieldPtrTable.Block.
Length
;
618
totalRequiredSize += this.FieldTable.Block.
Length
;
621
totalRequiredSize += this.MethodPtrTable.Block.
Length
;
624
totalRequiredSize += this.MethodDefTable.Block.
Length
;
627
totalRequiredSize += this.ParamPtrTable.Block.
Length
;
630
totalRequiredSize += this.ParamTable.Block.
Length
;
633
totalRequiredSize += this.InterfaceImplTable.Block.
Length
;
636
totalRequiredSize += this.MemberRefTable.Block.
Length
;
639
totalRequiredSize += this.ConstantTable.Block.
Length
;
648
totalRequiredSize += this.CustomAttributeTable.Block.
Length
;
651
totalRequiredSize += this.FieldMarshalTable.Block.
Length
;
654
totalRequiredSize += this.DeclSecurityTable.Block.
Length
;
657
totalRequiredSize += this.ClassLayoutTable.Block.
Length
;
660
totalRequiredSize += this.FieldLayoutTable.Block.
Length
;
663
totalRequiredSize += this.StandAloneSigTable.Block.
Length
;
666
totalRequiredSize += this.EventMapTable.Block.
Length
;
669
totalRequiredSize += this.EventPtrTable.Block.
Length
;
672
totalRequiredSize += this.EventTable.Block.
Length
;
675
totalRequiredSize += this.PropertyMapTable.Block.
Length
;
678
totalRequiredSize += this.PropertyPtrTable.Block.
Length
;
681
totalRequiredSize += this.PropertyTable.Block.
Length
;
684
totalRequiredSize += this.MethodSemanticsTable.Block.
Length
;
687
totalRequiredSize += this.MethodImplTable.Block.
Length
;
690
totalRequiredSize += this.ModuleRefTable.Block.
Length
;
693
totalRequiredSize += this.TypeSpecTable.Block.
Length
;
696
totalRequiredSize += this.ImplMapTable.Block.
Length
;
699
totalRequiredSize += this.FieldRvaTable.Block.
Length
;
702
totalRequiredSize += this.EncLogTable.Block.
Length
;
705
totalRequiredSize += this.EncMapTable.Block.
Length
;
708
totalRequiredSize += this.AssemblyTable.Block.
Length
;
711
totalRequiredSize += this.AssemblyProcessorTable.Block.
Length
;
714
totalRequiredSize += this.AssemblyOSTable.Block.
Length
;
717
totalRequiredSize += this.AssemblyRefTable.Block.
Length
;
720
totalRequiredSize += this.AssemblyRefProcessorTable.Block.
Length
;
723
totalRequiredSize += this.AssemblyRefOSTable.Block.
Length
;
726
totalRequiredSize += this.FileTable.Block.
Length
;
729
totalRequiredSize += this.ExportedTypeTable.Block.
Length
;
732
totalRequiredSize += this.ManifestResourceTable.Block.
Length
;
735
totalRequiredSize += this.NestedClassTable.Block.
Length
;
738
totalRequiredSize += this.GenericParamTable.Block.
Length
;
741
totalRequiredSize += this.MethodSpecTable.Block.
Length
;
744
totalRequiredSize += this.GenericParamConstraintTable.Block.
Length
;
756
totalRequiredSize += this.DocumentTable.Block.
Length
;
759
totalRequiredSize += this.MethodDebugInformationTable.Block.
Length
;
762
totalRequiredSize += this.LocalScopeTable.Block.
Length
;
765
totalRequiredSize += this.LocalVariableTable.Block.
Length
;
768
totalRequiredSize += this.LocalConstantTable.Block.
Length
;
771
totalRequiredSize += this.ImportScopeTable.Block.
Length
;
774
totalRequiredSize += this.StateMachineMethodTable.Block.
Length
;
777
totalRequiredSize += this.CustomDebugInformationTable.Block.
Length
;
779
if (totalRequiredSize > metadataTablesMemoryBlock.
Length
)
993
public int MetadataLength => Block.
Length
;