9 references to GetHeapOffset
System.Reflection.Metadata (9)
System\Reflection\Metadata\Ecma335\MetadataTokens.cs (1)
187public static int GetHeapOffset(StringHandle handle) => handle.IsVirtual ? -1 : handle.GetHeapOffset();
System\Reflection\Metadata\Internal\StringHeap.cs (8)
167return Block.PeekUtf8NullTerminated(handle.GetHeapOffset(), prefixOpt, utf8Decoder, out _, otherTerminator); 175int offset = handle.GetHeapOffset(); 238int terminator = this.Block.IndexOf(0, handle.GetHeapOffset()); 263return this.Block.Utf8NullTerminatedEquals(handle.GetHeapOffset(), value, utf8Decoder, otherTerminator, ignoreCase); 282return this.Block.Utf8NullTerminatedStartsWith(handle.GetHeapOffset(), value, utf8Decoder, otherTerminator, ignoreCase); 292return this.Block.CompareUtf8NullTerminatedStringWithAsciiString(rawHandle.GetHeapOffset(), asciiString) == 0; 311return this.Block.Utf8NullTerminatedStringStartsWithAsciiPrefix(rawHandle.GetHeapOffset(), asciiPrefix); 321return this.Block.BinarySearch(asciiKeys, rawHandle.GetHeapOffset());