20 references to ReserveBytes
Microsoft.CodeAnalysis (7)
InternalUtilities\BlobBuildingStream.cs (1)
80
return _builder.
ReserveBytes
(byteCount);
PEWriter\ExtendedPEBuilder.cs (1)
95
_mvidSectionFixup = sectionBuilder.
ReserveBytes
(SizeOfGuid);
PEWriter\MetadataWriter.DynamicAnalysis.cs (1)
303
var writer = new BlobWriter(builder.
ReserveBytes
(_blobHeapSize));
PEWriter\NativeResourceWriter.cs (1)
355
var sectionWriter = new BlobWriter(builder.
ReserveBytes
(resourceSections.SectionBytes.Length));
PEWriter\PooledBlobBuilder.cs (1)
34
/// <see cref="BlobBuilder.
ReserveBytes
(int)"/>
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
34
_recordCountFixup = builder.
ReserveBytes
(1);
222
var alignmentSizeAndLengthWriter = new BlobWriter(Builder.
ReserveBytes
(sizeof(byte) + sizeof(uint)));
Microsoft.CodeAnalysis.Debugging.Package (2)
CustomDebugInfoEncoder.cs (2)
34
_recordCountFixup = builder.
ReserveBytes
(1);
222
var alignmentSizeAndLengthWriter = new BlobWriter(Builder.
ReserveBytes
(sizeof(byte) + sizeof(uint)));
Microsoft.CodeAnalysis.Features (2)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (2)
34
_recordCountFixup = builder.
ReserveBytes
(1);
222
var alignmentSizeAndLengthWriter = new BlobWriter(Builder.
ReserveBytes
(sizeof(byte) + sizeof(uint)));
System.Reflection.Emit (1)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
470
(member, new BlobWriter(_il.CodeBuilder.
ReserveBytes
(sizeof(int)))));
System.Reflection.Metadata (8)
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (1)
93
var instructions = Builder.
ReserveBytes
(codeSize);
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (3)
418
var content = _guidBuilder.
ReserveBytes
(BlobUtilities.SizeOfGuid);
483
var reservedUserString = _userStringBuilder.
ReserveBytes
(BlobWriterImpl.GetCompressedIntegerSize(encodedLength) + encodedLength);
618
var writer = new BlobWriter(builder.
ReserveBytes
(_blobHeapSize + alignment));
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (1)
108
_pdbIdBlob = builder.
ReserveBytes
(MetadataSizes.PdbIdSize);
System\Reflection\PortableExecutable\ManagedTextSection.cs (1)
284
strongNameSignature = builder.
ReserveBytes
(StrongNameSignatureSize);
System\Reflection\PortableExecutable\PEBuilder.cs (2)
201
stampFixup = builder.
ReserveBytes
(sizeof(uint));
279
_lazyChecksum = builder.
ReserveBytes
(sizeof(uint));