39 references to HeapHandleType
System.Reflection.Metadata (39)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
233
if (!
HeapHandleType
.IsValidHeapOffset(value))
System\Reflection\Metadata\Handle.cs (1)
45
Debug.Assert(IsHeapHandle && value <=
HeapHandleType
.OffsetMask ||
System\Reflection\Metadata\Internal\MetadataFlags.cs (18)
150
Plain = (byte)(StringHandleType.String >>
HeapHandleType
.OffsetBitCount),
151
Virtual = (byte)(StringHandleType.VirtualString >>
HeapHandleType
.OffsetBitCount),
152
WinRTPrefixed = (byte)(StringHandleType.WinRTPrefixedString >>
HeapHandleType
.OffsetBitCount),
153
DotTerminated = (byte)(StringHandleType.DotTerminatedString >>
HeapHandleType
.OffsetBitCount),
159
internal const uint TypeMask = ~(
HeapHandleType
.OffsetMask);
162
internal const uint NonVirtualTypeMask = TypeMask & ~(
HeapHandleType
.VirtualBit);
165
internal const uint String = (0 <<
HeapHandleType
.OffsetBitCount);
168
internal const uint DotTerminatedString = (1 <<
HeapHandleType
.OffsetBitCount);
171
internal const uint ReservedString1 = (2 <<
HeapHandleType
.OffsetBitCount);
172
internal const uint ReservedString2 = (3 <<
HeapHandleType
.OffsetBitCount);
175
internal const uint VirtualString =
HeapHandleType
.VirtualBit | (0 <<
HeapHandleType
.OffsetBitCount);
178
internal const uint WinRTPrefixedString =
HeapHandleType
.VirtualBit | (1 <<
HeapHandleType
.OffsetBitCount);
181
internal const uint ReservedVirtualString1 =
HeapHandleType
.VirtualBit | (2 <<
HeapHandleType
.OffsetBitCount);
182
internal const uint ReservedVirtualString2 =
HeapHandleType
.VirtualBit | (3 <<
HeapHandleType
.OffsetBitCount);
System\Reflection\Metadata\PortablePdb\DocumentNameBlobHandle.cs (1)
28
Debug.Assert(
HeapHandleType
.IsValidHeapOffset((uint)heapOffset));
System\Reflection\Metadata\TypeSystem\Handles.TypeSystem.cs (18)
2347
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.String | (handle._value & StringHandleType.NonVirtualTypeMask) >>
HeapHandleType
.OffsetBitCount),
2348
(int)(handle._value &
HeapHandleType
.OffsetMask));
2361
(handle.VType & HandleType.NonVirtualStringTypeMask) <<
HeapHandleType
.OffsetBitCount |
2369
get { return (_value &
HeapHandleType
.VirtualBit) != 0; }
2377
return (_value & (
HeapHandleType
.VirtualBit |
HeapHandleType
.OffsetMask)) == 0;
2385
return (int)(_value &
HeapHandleType
.OffsetMask);
2391
return (VirtualIndex)(_value &
HeapHandleType
.OffsetMask);
2397
return (int)(_value &
HeapHandleType
.OffsetMask);
2402
get { return (StringKind)(_value >>
HeapHandleType
.OffsetBitCount); }
2465
if (!
HeapHandleType
.IsValidHeapOffset(virtualIndex))
2477
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.Namespace),
2478
(int)(handle._value &
HeapHandleType
.OffsetMask));
2503
get { return (_value &
HeapHandleType
.VirtualBit) != 0; }
2509
return (int)(_value &
HeapHandleType
.OffsetMask);
2606
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.Blob),
2607
(int)(handle._value &
HeapHandleType
.OffsetMask));