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