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)
2346
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.String | (handle._value & StringHandleType.NonVirtualTypeMask) >>
HeapHandleType
.OffsetBitCount),
2347
(int)(handle._value &
HeapHandleType
.OffsetMask));
2360
(handle.VType & HandleType.NonVirtualStringTypeMask) <<
HeapHandleType
.OffsetBitCount |
2368
get { return (_value &
HeapHandleType
.VirtualBit) != 0; }
2376
return (_value & (
HeapHandleType
.VirtualBit |
HeapHandleType
.OffsetMask)) == 0;
2384
return (int)(_value &
HeapHandleType
.OffsetMask);
2390
return (VirtualIndex)(_value &
HeapHandleType
.OffsetMask);
2396
return (int)(_value &
HeapHandleType
.OffsetMask);
2401
get { return (StringKind)(_value >>
HeapHandleType
.OffsetBitCount); }
2464
if (!
HeapHandleType
.IsValidHeapOffset(virtualIndex))
2476
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.Namespace),
2477
(int)(handle._value &
HeapHandleType
.OffsetMask));
2502
get { return (_value &
HeapHandleType
.VirtualBit) != 0; }
2508
return (int)(_value &
HeapHandleType
.OffsetMask);
2608
(byte)((handle._value &
HeapHandleType
.VirtualBit) >> 24 | HandleType.Blob),
2609
(int)(handle._value &
HeapHandleType
.OffsetMask));