1 write to Pointer
System.Reflection.Metadata (1)
System\Reflection\Internal\Utilities\MemoryBlock.cs (1)
22
this.
Pointer
= buffer;
36 references to Pointer
System.Reflection.Metadata (36)
System\Reflection\Internal\Utilities\MemoryBlock.cs (20)
52
return
Pointer
== null ? null : PeekBytes(0, Length);
57
if (
Pointer
== null)
79
if (
Pointer
== null)
105
return new MemoryBlock(
Pointer
+ offset, length);
111
return
Pointer
[offset];
130
uint result = Unsafe.ReadUnaligned<uint>(
Pointer
+ offset);
147
byte* ptr =
Pointer
+ offset;
188
ushort result = Unsafe.ReadUnaligned<ushort>(
Pointer
+ offset);
245
byte* ptr =
Pointer
+ offset;
267
byte* ptr =
Pointer
+ offset;
282
return Encoding.UTF8.GetString(
Pointer
+ offset, byteCount);
300
return EncodingHelper.DecodeUtf8(
Pointer
+ offset, length, prefix, utf8Decoder);
318
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(
Pointer
+ offset, Length - offset);
340
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(
Pointer
+ startOffset, Length - startOffset);
399
byte* startPointer =
Pointer
+ offset;
400
byte* endPointer =
Pointer
+ Length;
456
byte* p =
Pointer
+ offset;
479
byte* p =
Pointer
+ offset;
510
return new ReadOnlySpan<byte>(
Pointer
+ offset, byteCount).ToArray();
521
int i = new ReadOnlySpan<byte>(
Pointer
+ start, Length - start).IndexOf(b);
System\Reflection\Metadata\BlobReader.cs (8)
40
Debug.Assert(block.Length >= 0 && (block.
Pointer
!= null || block.Length == 0));
42
_currentPointer = block.
Pointer
;
43
_endPointer = block.
Pointer
+ block.Length;
48
if (_block.
Pointer
== null)
76
public byte* StartPointer => _block.
Pointer
;
96
return (int)(_currentPointer - _block.
Pointer
);
105
_currentPointer = _block.
Pointer
+ value;
119
_currentPointer = _block.
Pointer
;
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (4)
121
return (int)(reader.GetTableMetadataBlock(tableIndex).
Pointer
- reader.Block.
Pointer
);
217
return (int)(reader.GetMetadataBlock(heapIndex).
Pointer
- reader.Block.
Pointer
);
System\Reflection\Metadata\Internal\StringHeap.cs (2)
178
return new MemoryBlock(Block.
Pointer
+ offset, length);
188
Marshal.Copy((IntPtr)block.
Pointer
, bytes, prefix.Length, block.Length);
System\Reflection\Metadata\MetadataReader.cs (2)
113
int pdbStreamOffset = (int)(pdbStream.
Pointer
- metadata);
988
public unsafe byte* MetadataPointer => Block.
Pointer
;