3 types derived from BlobBuilder
Microsoft.CodeAnalysis (1)
PEWriter\PooledBlobBuilder.cs (1)
15internal sealed class PooledBlobBuilder : BlobBuilder, IDisposable
System.Reflection.Metadata (2)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (1)
13private sealed class HeapBlobBuilder : BlobBuilder
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
8internal sealed class PooledBlobBuilder : BlobBuilder
72 instantiations of BlobBuilder
Microsoft.CodeAnalysis (20)
InternalUtilities\BlobBuildingStream.cs (1)
60_builder = new BlobBuilder(ChunkSize);
PEWriter\ExtendedPEBuilder.cs (1)
92var sectionBuilder = new BlobBuilder();
PEWriter\MetadataWriter.cs (3)
1695var ilBuilder = new BlobBuilder(1024); 1696var metadataBuilder = new BlobBuilder(4 * 1024); 1760var portablePdbBlob = new BlobBuilder();
PEWriter\MetadataWriter.DynamicAnalysis.cs (3)
55_guidWriter = new BlobBuilder(guidSize * documentCountEstimate); 134var writer = new BlobBuilder(4 + spans.Length * 4); 237var writer = new BlobBuilder(1 + Math.Max(c1, c2) * 2);
PEWriter\MetadataWriter.PortablePdb.cs (9)
172var builder = new BlobBuilder(); 415var writer = new BlobBuilder(); 458var writer = new BlobBuilder(); 503var builder = new BlobBuilder(); 583var writer = new BlobBuilder(); 608var writer = new BlobBuilder(); 877var builder = new BlobBuilder(); 952var builder = new BlobBuilder(); 1018var builder = new BlobBuilder();
PEWriter\NativeResourceWriter.cs (1)
230var dataWriter = new BlobBuilder();
PEWriter\PeWriter.cs (1)
46IlBlobBuilder = new BlobBuilder(32 * 1024);
PEWriter\PooledBlobBuilder.cs (1)
56return new BlobBuilder(minimalSize);
Microsoft.CodeAnalysis.CSharp (2)
CodeGen\EmitArrayInitializer.cs (2)
337var writer = new BlobBuilder(initializers.Length * 4); 818var writer = new BlobBuilder(initializers.Length * 4);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (9)
CodeGen\CodeGenFunctionPointersTests.cs (6)
4057var ilBuilder = new BlobBuilder(); 12637var consoleWriteLineSignature = new BlobBuilder(); 12650var parameterlessCtorSignature = new BlobBuilder(); 12664var mSignature = new BlobBuilder(); 12672var codeBuilder = new BlobBuilder(); 12756var peBlob = new BlobBuilder();
Emit\CompilationEmitTests.cs (3)
628var sectionBuilder = new BlobBuilder(); 640var ilBuilder = new BlobBuilder(); 649var peBlob = new BlobBuilder();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InterceptorsTests.cs (3)
3546var builder = new BlobBuilder(); 3596var builder = new BlobBuilder(); 7408var builder = new BlobBuilder();
Microsoft.CodeAnalysis.Test.Utilities (2)
BaseCompilerFeatureRequiredTests.cs (1)
17var builder = new BlobBuilder();
Metadata\ILValidation.cs (1)
75var peImage = new BlobBuilder(peSize);
Microsoft.CodeAnalysis.UnitTests (13)
Emit\CustomDebugInfoTests.cs (13)
204var cmw = new BlobBuilder(); 232var cmw = new BlobBuilder(); 255var cmw = new BlobBuilder(); 279var cmw = new BlobBuilder(); 296var cmw = new BlobBuilder(); 364var builder = new BlobBuilder(); 433var builder = new BlobBuilder(); 445var builder = new BlobBuilder(); 479var builder = new BlobBuilder(); 511var builder = new BlobBuilder(); 540var builder = new BlobBuilder(); 576var builder = new BlobBuilder(); 649var builder = new BlobBuilder();
System.Reflection.Emit (15)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
42_builder = new BlobBuilder(Math.Max(size, DefaultSize));
System\Reflection\Emit\ModuleBuilderImpl.cs (3)
433BlobBuilder spBlobBuilder = new BlobBuilder(); 448BlobBuilder spBlobBuilder = new BlobBuilder(); 559BlobBuilder importBlob = new BlobBuilder();
System\Reflection\Emit\PersistedAssemblyBuilder.cs (3)
68var peBlob = new BlobBuilder(); 150ilStream = new BlobBuilder(); 151fieldData = new BlobBuilder();
System\Reflection\Emit\PseudoCustomAttributesData.cs (1)
146BlobBuilder writer = new BlobBuilder(); ;
System\Reflection\Emit\SignatureHelper.cs (7)
15BlobBuilder localSignature = new(); 29BlobBuilder fieldSignature = new(); 39BlobBuilder constructorSignature = new(); 56BlobBuilder typeSpecSignature = new(); 64BlobBuilder methodSpecSignature = new(); 79BlobBuilder methodSignature = new(); 155BlobBuilder propertySignature = new();
System.Reflection.Metadata (8)
System\Reflection\Metadata\BlobBuilder.cs (1)
68return new BlobBuilder(Math.Max(_buffer.Length, minimalSize));
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
32return new BlobBuilder(minimalSize);
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (1)
26_dataBuilder = new BlobBuilder();
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (5)
123var sectionBuilder = new BlobBuilder(); 124var metadataBuilder = new BlobBuilder(); 147debugTableBuilderOpt = new BlobBuilder(_debugDirectoryBuilderOpt.TableSize); 189var sectionBuilder = new BlobBuilder(); 198var sectionBuilder = new BlobBuilder();
404 references to BlobBuilder
Microsoft.CodeAnalysis (79)
CodeGen\BasicBlock.cs (3)
255public BlobBuilder RegularInstructions => _lazyRegularInstructions; 563var instr1 = one.RegularInstructions; 564var instr2 = another.RegularInstructions;
CodeGen\ILBuilderEmit.cs (2)
784private static void WriteOpCode(BlobBuilder writer, ILOpCode code) 804private BlobBuilder GetCurrentWriter()
Compilation\Compilation.cs (1)
132internal abstract void SerializePdbEmbeddedCompilationOptions(BlobBuilder builder);
ConstantValue.cs (1)
756public void Serialize(BlobBuilder writer)
Emit\EditAndContinueMethodDebugInformation.cs (3)
145internal void SerializeLocalSlots(BlobBuilder writer) 261internal void SerializeLambdaMap(BlobBuilder writer) 364internal void SerializeStateMachineStates(BlobBuilder writer)
InternalUtilities\BlobBuildingStream.cs (2)
16/// A write-only memory stream backed by a <see cref="BlobBuilder"/>. 21private readonly BlobBuilder _builder;
PEWriter\ExtendedPEBuilder.cs (7)
35BlobBuilder ilStream, 36BlobBuilder? mappedFieldData, 37BlobBuilder? managedResources, 72protected override BlobBuilder SerializeSection(string name, SectionLocation location) 83internal BlobContentId Serialize(BlobBuilder peBlob, out Blob mvidSectionFixup) 90private BlobBuilder SerializeMvidSection() 92var sectionBuilder = new BlobBuilder();
PEWriter\ManagedResource.cs (1)
39public void WriteData(BlobBuilder resourceWriter)
PEWriter\MetadataWriter.cs (16)
1695var ilBuilder = new BlobBuilder(1024); 1696var metadataBuilder = new BlobBuilder(4 * 1024); 1760var portablePdbBlob = new BlobBuilder(); 1776BlobBuilder ilBuilder, 1911private void PopulateTypeSystemTables(int[] methodBodyOffsets, out PooledBlobBuilder? mappedFieldDataWriter, out PooledBlobBuilder? resourceWriter, BlobBuilder? dynamicAnalysisData, out Blob mvidFixup) 2510private void PopulateManifestResourceTableRows(out PooledBlobBuilder? resourceDataWriter, BlobBuilder? dynamicAnalysisData) 2562static uint writeBuilderResourceAndGetOffset(BlobBuilder resource, BlobBuilder resourceWriter) 2904private int[] SerializeThrowNullMethodBodies(BlobBuilder ilBuilder) 2933private int[] SerializeMethodBodies(BlobBuilder ilBuilder, PdbWriter nativePdbWriterOpt, out Blob mvidStringFixup) 3423private void SerializeFieldSignature(IFieldReference fieldReference, BlobBuilder builder) 3438private void SerializeMethodSpecificationSignature(BlobBuilder builder, IGenericMethodInstanceReference genericMethodInstanceReference) 3463private void SerializeCustomAttributeSignature(ICustomAttribute customAttribute, BlobBuilder builder) 3593private void SerializeMarshallingDescriptor(IMarshallingInformation marshallingInformation, BlobBuilder writer) 3687private void SerializeTypeName(ITypeReference typeReference, BlobBuilder writer) 3742private void SerializePermissionSet(ImmutableArray<ICustomAttribute> permissionSet, BlobBuilder writer)
PEWriter\MetadataWriter.DynamicAnalysis.cs (10)
38private readonly BlobBuilder _guidWriter; 76private BlobHandle GetOrAddBlob(BlobBuilder builder) 134var writer = new BlobBuilder(4 + spans.Length * 4); 176private void SerializeDeltaLinesAndColumns(BlobBuilder writer, SourceSpan span) 237var writer = new BlobBuilder(1 + Math.Max(c1, c2) * 2); 286internal void SerializeMetadataTables(BlobBuilder writer) 301private void WriteBlobHeap(BlobBuilder builder) 320private void SerializeHeader(BlobBuilder writer, Sizes sizes) 341private void SerializeDocumentTable(BlobBuilder writer, Sizes sizes) 351private void SerializeMethodTable(BlobBuilder writer, Sizes sizes)
PEWriter\MetadataWriter.PortablePdb.cs (14)
172var builder = new BlobBuilder(); 324private void SerializeImport(BlobBuilder writer, AssemblyReferenceAlias alias) 332private void SerializeImport(BlobBuilder writer, UsedNamespaceOrType import) 415var writer = new BlobBuilder(); 458var writer = new BlobBuilder(); 503var builder = new BlobBuilder(); 557private static void SerializeTupleElementNames(BlobBuilder builder, ImmutableArray<string> names) 568private static void WriteUtf8String(BlobBuilder builder, string str) 583var writer = new BlobBuilder(); 608var writer = new BlobBuilder(); 719private void SerializeDeltaLinesAndColumns(BlobBuilder writer, SequencePoint sequencePoint) 877var builder = new BlobBuilder(); 952var builder = new BlobBuilder(); 1018var builder = new BlobBuilder();
PEWriter\NativeResourceWriter.cs (5)
171public static void SerializeWin32Resources(BlobBuilder builder, IEnumerable<IWin32Resource> theResources, int resourcesRva) 230var dataWriter = new BlobBuilder(); 239private static void WriteDirectory(Directory directory, BlobBuilder writer, uint offset, uint level, uint sizeOfDirectoryTree, int virtualAddressBase, BlobBuilder dataWriter) 353public static void SerializeWin32Resources(BlobBuilder builder, ResourceSection resourceSections, int resourcesRva)
PEWriter\PeWriter.cs (5)
38internal BlobBuilder IlBlobBuilder; 319internal static uint CalculateChecksum(BlobBuilder peBlob, Blob checksumBlob) 409protected override void Serialize(BlobBuilder builder, SectionLocation location) 425protected override void Serialize(BlobBuilder builder, SectionLocation location) 439protected override void Serialize(BlobBuilder builder, SectionLocation location)
PEWriter\PooledBlobBuilder.cs (4)
28/// Get a new instance of the <see cref="BlobBuilder"/> that has <see cref="BlobBuilder.ChunkCapacity"/> of 34/// <see cref="BlobBuilder.ReserveBytes(int)"/> 49protected override BlobBuilder AllocateChunk(int minimalSize)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (3)
18public BlobBuilder Builder { get; } 23public CustomDebugInfoEncoder(BlobBuilder builder) 214Action<T, BlobBuilder> recordSerializer)
StrongName\DesktopStrongNameProvider.cs (1)
176internal override void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey)
StrongName\StrongNameProvider.cs (1)
33internal abstract void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey);
Microsoft.CodeAnalysis.CSharp (4)
CodeGen\EmitArrayInitializer.cs (3)
337var writer = new BlobBuilder(initializers.Length * 4); 344private void SerializeArrayRecursive(BlobBuilder bw, ImmutableArray<BoundExpression> inits) 818var writer = new BlobBuilder(initializers.Length * 4);
Compilation\CSharpCompilation.cs (1)
4765internal override void SerializePdbEmbeddedCompilationOptions(BlobBuilder builder)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenFunctionPointersTests.cs (8)
4057var ilBuilder = new BlobBuilder(); 12602private static void DefineInvalidSignatureAttributeIL(MetadataBuilder metadata, BlobBuilder ilBuilder, SignatureHeader headerToUseForM) 12637var consoleWriteLineSignature = new BlobBuilder(); 12650var parameterlessCtorSignature = new BlobBuilder(); 12664var mSignature = new BlobBuilder(); 12672var codeBuilder = new BlobBuilder(); 12745BlobBuilder ilBuilder) 12756var peBlob = new BlobBuilder();
Emit\CompilationEmitTests.cs (6)
596protected override void Serialize(BlobBuilder builder, SectionLocation location) 610BlobBuilder ilStream, 624protected override BlobBuilder SerializeSection(string name, SectionLocation location) 628var sectionBuilder = new BlobBuilder(); 640var ilBuilder = new BlobBuilder(); 649var peBlob = new BlobBuilder();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\InterceptorsTests.cs (3)
3546var builder = new BlobBuilder(); 3596var builder = new BlobBuilder(); 7408var builder = new BlobBuilder();
Microsoft.CodeAnalysis.Debugging.Package (3)
CustomDebugInfoEncoder.cs (3)
18public BlobBuilder Builder { get; } 23public CustomDebugInfoEncoder(BlobBuilder builder) 214Action<T, BlobBuilder> recordSerializer)
Microsoft.CodeAnalysis.Features (3)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (3)
18public BlobBuilder Builder { get; } 23public CustomDebugInfoEncoder(BlobBuilder builder) 214Action<T, BlobBuilder> recordSerializer)
Microsoft.CodeAnalysis.Test.Utilities (6)
BaseCompilerFeatureRequiredTests.cs (1)
17var builder = new BlobBuilder();
Compilation\TestDesktopStrongNameProvider.cs (2)
23internal Action<ExtendedPEBuilder, BlobBuilder, RSAParameters> SignBuilderFunc { get; set; } 40internal override void SignBuilder(ExtendedPEBuilder peBuilder, BlobBuilder peBlob, RSAParameters privateKey) => SignBuilderFunc(peBuilder, peBlob, privateKey);
Metadata\ILValidation.cs (3)
75var peImage = new BlobBuilder(peSize); 126BlobBuilder peImage, 242BlobBuilder peImage,
Microsoft.CodeAnalysis.UnitTests (13)
Emit\CustomDebugInfoTests.cs (13)
204var cmw = new BlobBuilder(); 232var cmw = new BlobBuilder(); 255var cmw = new BlobBuilder(); 279var cmw = new BlobBuilder(); 296var cmw = new BlobBuilder(); 364var builder = new BlobBuilder(); 433var builder = new BlobBuilder(); 445var builder = new BlobBuilder(); 479var builder = new BlobBuilder(); 511var builder = new BlobBuilder(); 540var builder = new BlobBuilder(); 576var builder = new BlobBuilder(); 649var builder = new BlobBuilder();
Microsoft.CodeAnalysis.VisualBasic (3)
CodeGen\EmitArrayInitializer.vb (1)
269Private Sub SerializeArrayRecursive(bw As BlobBuilder, inits As ImmutableArray(Of BoundExpression))
Compilation\VisualBasicCompilation.vb (2)
756Friend Overrides Sub SerializePdbEmbeddedCompilationOptions(builder As BlobBuilder) 790Private Sub WriteValue(builder As BlobBuilder, key As String, value As String)
System.Reflection.Emit (49)
System\Reflection\Emit\ILGeneratorImpl.cs (1)
18private readonly BlobBuilder _builder;
System\Reflection\Emit\MethodBuilderImpl.cs (1)
103internal BlobBuilder GetMethodSignatureBlob() => MetadataSignatureHelper.GetMethodSignature(_module, _parameterTypes,
System\Reflection\Emit\ModuleBuilderImpl.cs (16)
117internal void AppendMetadata(MethodBodyStreamEncoder methodBodyEncoder, BlobBuilder fieldDataBuilder, out MetadataBuilder pdbBuilder) 433BlobBuilder spBlobBuilder = new BlobBuilder(); 448BlobBuilder spBlobBuilder = new BlobBuilder(); 472private static void PopulateSequencePointsBlob(BlobBuilder spBlobBuilder, List<SequencePoint> sequencePoints, ref int previousNonHiddenStartLine, ref int previousNonHiddenStartColumn) 559BlobBuilder importBlob = new BlobBuilder(); 570private static void SerializeDeltaLinesAndColumns(BlobBuilder spBuilder, SequencePoint sequencePoint) 633private void WriteFields(TypeBuilderImpl typeBuilder, BlobBuilder fieldDataBuilder) 781BlobBuilder signature = GetMethodSignature(method, optionalParameterTypes); 782KeyValuePair<MethodInfo, BlobBuilder> pair = new(method, signature); 793private BlobBuilder GetMethodSignature(MethodInfo method, Type[]? optionalParameterTypes) => 797private BlobBuilder GetMethodArrayMethodSignature(ArrayMethod method) => MetadataSignatureHelper.GetMethodSignature( 905private PropertyDefinitionHandle AddPropertyDefinition(PropertyBuilderImpl property, BlobBuilder signature) => 927private FieldDefinitionHandle AddFieldDefinition(FieldBuilderImpl field, BlobBuilder fieldSignature) => 942private MethodDefinitionHandle AddMethodDefinition(MethodBuilderImpl method, BlobBuilder methodSignature, int offset, int parameterToken) => 957private MemberReferenceHandle AddMemberReference(string memberName, EntityHandle parent, BlobBuilder signature) => 977private void AddMarshalling(EntityHandle parent, BlobBuilder builder) =>
System\Reflection\Emit\PersistedAssemblyBuilder.cs (15)
53private void WritePEImage(Stream peStream, BlobBuilder ilBuilder, BlobBuilder fieldData) 68var peBlob = new BlobBuilder(); 101PopulateAssemblyMetadata(out BlobBuilder ilStream, out BlobBuilder fieldData, out _); 108/// <param name="ilStream">Outputs <see cref="BlobBuilder"/> bytes that includes all method's IL (body) emitted.</param> 109/// <param name="mappedFieldData">Outputs <see cref="BlobBuilder"/> bytes that includes all field RVA data defined in the assembly.</param> 114public MetadataBuilder GenerateMetadata(out BlobBuilder ilStream, out BlobBuilder mappedFieldData) 124/// <param name="ilStream">Outputs <see cref="BlobBuilder"/> bytes that includes all method's IL (body) emitted.</param> 125/// <param name="mappedFieldData">Outputs <see cref="BlobBuilder"/> bytes that includes all field RVA data defined in the assembly.</param> 131public MetadataBuilder GenerateMetadata(out BlobBuilder ilStream, out BlobBuilder mappedFieldData, out MetadataBuilder pdbBuilder) 138private void PopulateAssemblyMetadata(out BlobBuilder ilStream, out BlobBuilder fieldData, out MetadataBuilder pdbBuilder)
System\Reflection\Emit\PseudoCustomAttributesData.cs (2)
144internal BlobBuilder SerializeMarshallingData() 146BlobBuilder writer = new BlobBuilder(); ;
System\Reflection\Emit\SignatureHelper.cs (14)
13internal static BlobBuilder GetLocalSignature(List<LocalBuilder> locals, ModuleBuilderImpl module) 15BlobBuilder localSignature = new(); 27internal static BlobBuilder GetFieldSignature(Type fieldType, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers, ModuleBuilderImpl module) 29BlobBuilder fieldSignature = new(); 37internal static BlobBuilder GetConstructorSignature(ParameterInfo[]? parameters, ModuleBuilderImpl module) 39BlobBuilder constructorSignature = new(); 54internal static BlobBuilder GetTypeSpecificationSignature(Type type, ModuleBuilderImpl module) 56BlobBuilder typeSpecSignature = new(); 62internal static BlobBuilder GetMethodSpecificationSignature(Type[] genericArguments, ModuleBuilderImpl module) 64BlobBuilder methodSpecSignature = new(); 75internal static BlobBuilder GetMethodSignature(ModuleBuilderImpl module, Type[]? parameters, Type? returnType, SignatureCallingConvention convention, 79BlobBuilder methodSignature = new(); 153internal static BlobBuilder GetPropertySignature(PropertyBuilderImpl property, ModuleBuilderImpl module) 155BlobBuilder propertySignature = new();
System.Reflection.Metadata (227)
System\Reflection\Metadata\BlobBuilder.cs (27)
34private BlobBuilder _nextOrPrevious; 35private BlobBuilder FirstChunk => _nextOrPrevious._nextOrPrevious; 66protected virtual BlobBuilder AllocateChunk(int minimalSize) 86var first = FirstChunk; 96foreach (BlobBuilder chunk in GetChunks()) 134foreach (var chunk in GetChunks()) 194public bool ContentEquals(BlobBuilder other) 233var left = leftEnumerator.Current; 234var right = rightEnumerator.Current; 280foreach (var chunk in GetChunks()) 343foreach (var chunk in GetChunks()) 358foreach (var chunk in GetChunks()) 366public void WriteContentTo(BlobBuilder destination) 373foreach (var chunk in GetChunks()) 381public void LinkPrefix(BlobBuilder prefix) 414var first = FirstChunk; 415var prefixFirst = prefix.FirstChunk; 416var last = _nextOrPrevious; 417var prefixLast = prefix._nextOrPrevious; 442public void LinkSuffix(BlobBuilder suffix) 491var first = FirstChunk; 492var suffixFirst = suffix.FirstChunk; 493var last = _nextOrPrevious; 494var suffixLast = suffix._nextOrPrevious; 534var newChunk = AllocateChunk(Math.Max(newLength, MinChunkSize)); 552var last = _nextOrPrevious; 553var first = FirstChunk;
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (11)
14internal struct Chunks : IEnumerable<BlobBuilder>, IEnumerator<BlobBuilder>, IEnumerator 16private readonly BlobBuilder _head; 17private BlobBuilder _next; 18private BlobBuilder? _currentOpt; 20internal Chunks(BlobBuilder builder) 30public BlobBuilder Current => _currentOpt!; 60IEnumerator<BlobBuilder> IEnumerable<BlobBuilder>.GetEnumerator() => GetEnumerator(); 68internal Blobs(BlobBuilder builder) 79var current = _chunks.Current;
System\Reflection\Metadata\BlobWriter.cs (1)
157public void WriteBytes(BlobBuilder source)
System\Reflection\Metadata\BlobWriterImpl.cs (3)
56internal static void WriteCompressedInteger(BlobBuilder writer, uint value) 113internal static void WriteCompressedSignedInteger(BlobBuilder writer, int value) 220internal static void WriteConstant(BlobBuilder writer, object? value)
System\Reflection\Metadata\Ecma335\Encoding\BlobEncoders.cs (51)
13public BlobBuilder Builder { get; } 15public BlobEncoder(BlobBuilder builder) 213public BlobBuilder Builder { get; } 216public MethodSignatureEncoder(BlobBuilder builder, bool hasVarArgs) 270public BlobBuilder Builder { get; } 272public LocalVariablesEncoder(BlobBuilder builder) 285public BlobBuilder Builder { get; } 287public LocalVariableTypeEncoder(BlobBuilder builder) 320public BlobBuilder Builder { get; } 322public ParameterTypeEncoder(BlobBuilder builder) 350public BlobBuilder Builder { get; } 352public PermissionSetEncoder(BlobBuilder builder) 380public PermissionSetEncoder AddPermission(string typeName, BlobBuilder encodedArguments) 405public BlobBuilder Builder { get; } 407public GenericTypeArgumentsEncoder(BlobBuilder builder) 420public BlobBuilder Builder { get; } 422public FieldTypeEncoder(BlobBuilder builder) 450public BlobBuilder Builder { get; } 452public FixedArgumentsEncoder(BlobBuilder builder) 465public BlobBuilder Builder { get; } 467public LiteralEncoder(BlobBuilder builder) 561public BlobBuilder Builder { get; } 563public ScalarEncoder(BlobBuilder builder) 633public BlobBuilder Builder { get; } 635public LiteralsEncoder(BlobBuilder builder) 648public BlobBuilder Builder { get; } 650public VectorEncoder(BlobBuilder builder) 669public BlobBuilder Builder { get; } 671public NameEncoder(BlobBuilder builder) 691public BlobBuilder Builder { get; } 693public CustomAttributeNamedArgumentsEncoder(BlobBuilder builder) 712public BlobBuilder Builder { get; } 714public NamedArgumentsEncoder(BlobBuilder builder) 770public BlobBuilder Builder { get; } 772public NamedArgumentTypeEncoder(BlobBuilder builder) 795public BlobBuilder Builder { get; } 797public CustomAttributeArrayTypeEncoder(BlobBuilder builder) 817public BlobBuilder Builder { get; } 819public CustomAttributeElementTypeEncoder(BlobBuilder builder) 894/// The <see cref="BlobBuilder"/> where the signature is written to. 896public BlobBuilder Builder { get; } 901/// <param name="builder">The <see cref="BlobBuilder"/> where the signature will be written.</param> 902public SignatureTypeEncoder(BlobBuilder builder) 1211public BlobBuilder Builder { get; } 1213public CustomModifiersEncoder(BlobBuilder builder) 1248public BlobBuilder Builder { get; } 1250public ArrayShapeEncoder(BlobBuilder builder) 1328public BlobBuilder Builder { get; } 1330public ReturnTypeEncoder(BlobBuilder builder) 1363public BlobBuilder Builder { get; } 1366public ParametersEncoder(BlobBuilder builder, bool hasVarArgs = false)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (3)
282internal void CopyCodeAndFixupBranches(BlobBuilder srcBuilder, BlobBuilder dstBuilder) 366internal void SerializeExceptionTable(BlobBuilder builder)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (3)
35public BlobBuilder Builder { get; } 42internal ExceptionRegionEncoder(BlobBuilder builder, bool hasSmallFormat) 80internal static ExceptionRegionEncoder SerializeTableHeader(BlobBuilder builder, int exceptionRegionCount, bool hasSmallRegions)
System\Reflection\Metadata\Ecma335\Encoding\InstructionEncoder.cs (2)
16public BlobBuilder CodeBuilder { get; } 35public InstructionEncoder(BlobBuilder codeBuilder, ControlFlowBuilder? controlFlowBuilder = null)
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (3)
11public BlobBuilder Builder { get; } 13public MethodBodyStreamEncoder(BlobBuilder builder) 178var codeBuilder = instructionEncoder.CodeBuilder;
System\Reflection\Metadata\Ecma335\MetadataBuilder.cs (2)
33internal static void SerializeMetadataHeader(BlobBuilder builder, string metadataVersion, MetadataSizes sizes) 100private static void SerializeStreamHeader(ref int offsetFromStartOfMetadata, int alignedStreamSize, string streamName, BlobBuilder builder)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (9)
22protected override BlobBuilder AllocateChunk(int minimalSize) 184/// <param name="value"><see cref="BlobBuilder"/> containing the blob.</param> 187public BlobHandle GetOrAddBlob(BlobBuilder value) 535BlobBuilder heapBuilder, 606internal void WriteHeapsTo(BlobBuilder builder, BlobBuilder stringHeap) 614private void WriteAlignedBlobHeap(BlobBuilder builder) 640private static void WriteAligned(BlobBuilder source, BlobBuilder target)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Tables.cs (46)
1637BlobBuilder writer, 1875private static void SerializeTablesHeader(BlobBuilder writer, MetadataSizes metadataSizes) 1923internal void SerializeModuleTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1935private void SerializeEncLogTable(BlobBuilder writer) 1944private void SerializeEncMapTable(BlobBuilder writer) 1952private void SerializeTypeRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1962private void SerializeTypeDefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1975private void SerializeFieldTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 1985private void SerializeMethodDefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes, int methodBodyStreamRva) 2006private void SerializeParamTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2016private void SerializeInterfaceImplTable(BlobBuilder writer, MetadataSizes metadataSizes) 2027private void SerializeMemberRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2037private void SerializeConstantTable(BlobBuilder writer, MetadataSizes metadataSizes) 2051private void SerializeCustomAttributeTable(BlobBuilder writer, MetadataSizes metadataSizes) 2067private void SerializeFieldMarshalTable(BlobBuilder writer, MetadataSizes metadataSizes) 2079private void SerializeDeclSecurityTable(BlobBuilder writer, MetadataSizes metadataSizes) 2093private void SerializeClassLayoutTable(BlobBuilder writer, MetadataSizes metadataSizes) 2103private void SerializeFieldLayoutTable(BlobBuilder writer, MetadataSizes metadataSizes) 2112private void SerializeStandAloneSigTable(BlobBuilder writer, MetadataSizes metadataSizes) 2120private void SerializeEventMapTable(BlobBuilder writer, MetadataSizes metadataSizes) 2129private void SerializeEventTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2139private void SerializePropertyMapTable(BlobBuilder writer, MetadataSizes metadataSizes) 2148private void SerializePropertyTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2158private void SerializeMethodSemanticsTable(BlobBuilder writer, MetadataSizes metadataSizes) 2172private void SerializeMethodImplTable(BlobBuilder writer, MetadataSizes metadataSizes) 2182private void SerializeModuleRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2190private void SerializeTypeSpecTable(BlobBuilder writer, MetadataSizes metadataSizes) 2198private void SerializeImplMapTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2209private void SerializeFieldRvaTable(BlobBuilder writer, MetadataSizes metadataSizes, int mappedFieldDataStreamRva) 2218private void SerializeAssemblyTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2235private void SerializeAssemblyRefTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2251private void SerializeFileTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2261private void SerializeExportedTypeTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2273private void SerializeManifestResourceTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2284private void SerializeNestedClassTable(BlobBuilder writer, MetadataSizes metadataSizes) 2293private void SerializeGenericParamTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2304private void SerializeGenericParamConstraintTable(BlobBuilder writer, MetadataSizes metadataSizes) 2313private void SerializeMethodSpecTable(BlobBuilder writer, MetadataSizes metadataSizes) 2322private void SerializeDocumentTable(BlobBuilder writer, MetadataSizes metadataSizes) 2333private void SerializeMethodDebugInformationTable(BlobBuilder writer, MetadataSizes metadataSizes) 2342private void SerializeLocalScopeTable(BlobBuilder writer, MetadataSizes metadataSizes) 2355private void SerializeLocalVariableTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2365private void SerializeLocalConstantTable(BlobBuilder writer, ImmutableArray<int> stringMap, MetadataSizes metadataSizes) 2374private void SerializeImportScopeTable(BlobBuilder writer, MetadataSizes metadataSizes) 2383private void SerializeStateMachineMethodTable(BlobBuilder writer, MetadataSizes metadataSizes) 2392private void SerializeCustomDebugInformationTable(BlobBuilder writer, MetadataSizes metadataSizes)
System\Reflection\Metadata\Ecma335\MetadataRootBuilder.cs (2)
81/// Serializes metadata root content into the given <see cref="BlobBuilder"/>. 97public void Serialize(BlobBuilder builder, int methodBodyStreamRva, int mappedFieldDataStreamRva)
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (3)
103private void SerializeStandalonePdbStream(BlobBuilder builder) 120/// Serializes Portable PDB content into the given <see cref="BlobBuilder"/>. 125public BlobContentId Serialize(BlobBuilder builder)
System\Reflection\Metadata\Ecma335\SerializedMetadataHeaps.cs (2)
11internal readonly BlobBuilder StringHeap; 16BlobBuilder stringHeap,
System\Reflection\Metadata\Internal\MetadataWriterUtilities.cs (1)
92internal static void SerializeRowCounts(BlobBuilder writer, ImmutableArray<int> rowCounts)
System\Reflection\Metadata\PooledBlobBuilder.cs (1)
25protected override BlobBuilder AllocateChunk(int minimalSize)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.cs (6)
21private readonly BlobBuilder _dataBuilder; 57/// <param name="dataSerializer">Serializes data to a <see cref="BlobBuilder"/>.</param> 58public void AddEntry<TData>(DebugDirectoryEntryType type, uint version, uint stamp, TData data, Action<BlobBuilder, TData> dataSerializer) 142private static int WriteCodeViewData(BlobBuilder builder, string pdbPath, Guid pdbGuid, int age) 202private static int WritePdbChecksumData(BlobBuilder builder, string algorithmName, ImmutableArray<byte> checksum) 225internal void Serialize(BlobBuilder builder, SectionLocation sectionLocation, int sectionOffset)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (3)
20public void AddEmbeddedPortablePdbEntry(BlobBuilder debugMetadata, ushort portablePdbVersion) 41private static int WriteEmbeddedPortablePdbData(BlobBuilder builder, BlobBuilder debugMetadata)
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (17)
25private readonly BlobBuilder _ilStream; 26private readonly BlobBuilder? _mappedFieldDataOpt; 27private readonly BlobBuilder? _managedResourcesOpt; 40BlobBuilder ilStream, 41BlobBuilder? mappedFieldData = null, 42BlobBuilder? managedResources = null, 112protected override BlobBuilder SerializeSection(string name, SectionLocation location) => 121private BlobBuilder SerializeTextSection(SectionLocation location) 123var sectionBuilder = new BlobBuilder(); 124var metadataBuilder = new BlobBuilder(); 143BlobBuilder? debugTableBuilderOpt; 185private BlobBuilder SerializeResourceSection(SectionLocation location) 189var sectionBuilder = new BlobBuilder(); 196private BlobBuilder SerializeRelocationSection(SectionLocation location) 198var sectionBuilder = new BlobBuilder(); 205private static void WriteRelocationSection(BlobBuilder builder, Machine machine, int entryPointAddress) 228public void Sign(BlobBuilder peImage, Func<IEnumerable<Blob>, byte[]> signatureProvider)
System\Reflection\PortableExecutable\ManagedTextSection.cs (16)
232/// <param name="metadataBuilder"><see cref="BlobBuilder"/> containing metadata. Must be populated with data. Linked into the <paramref name="builder"/> and can't be expanded afterwards.</param> 233/// <param name="ilBuilder"><see cref="BlobBuilder"/> containing IL stream. Must be populated with data. Linked into the <paramref name="builder"/> and can't be expanded afterwards.</param> 234/// <param name="mappedFieldDataBuilderOpt"><see cref="BlobBuilder"/> containing mapped field data. Must be populated with data. Linked into the <paramref name="builder"/> and can't be expanded afterwards.</param> 235/// <param name="resourceBuilderOpt"><see cref="BlobBuilder"/> containing managed resource data. Must be populated with data. Linked into the <paramref name="builder"/> and can't be expanded afterwards.</param> 236/// <param name="debugDataBuilderOpt"><see cref="BlobBuilder"/> containing PE debug table and data. Must be populated with data. Linked into the <paramref name="builder"/> and can't be expanded afterwards.</param> 239BlobBuilder builder, 244BlobBuilder metadataBuilder, 245BlobBuilder ilBuilder, 246BlobBuilder? mappedFieldDataBuilderOpt, 247BlobBuilder? resourceBuilderOpt, 248BlobBuilder? debugDataBuilderOpt, 314private void WriteImportAddressTable(BlobBuilder builder, int importTableRva) 336private void WriteImportTable(BlobBuilder builder, int importTableRva, int importAddressTableRva) 373private static void WriteNameTable(BlobBuilder builder) 383private void WriteCorHeader(BlobBuilder builder, int textSectionRva, int entryPointTokenOrRva, CorFlags corFlags) 439private void WriteRuntimeStartupStub(BlobBuilder sectionBuilder, int importAddressTableRva, ulong baseAddress)
System\Reflection\PortableExecutable\PEBuilder.cs (14)
40public readonly BlobBuilder Builder; 48public SerializedSection(BlobBuilder builder, string name, SectionCharacteristics characteristics, int relativeVirtualAddress, int sizeOfRawData, int pointerToRawData) 87protected abstract BlobBuilder SerializeSection(string name, SectionLocation location); 91public BlobContentId Serialize(BlobBuilder builder) 134var builder = SerializeSection(section.Name, new SectionLocation(nextRva, nextPointer)); 153private static unsafe void WritePESignature(BlobBuilder builder) 192private void WriteCoffHeader(BlobBuilder builder, ImmutableArray<SerializedSection> sections, out Blob stampFixup) 222private void WritePEHeader(BlobBuilder builder, PEDirectoriesBuilder directories, ImmutableArray<SerializedSection> sections) 345private static void WriteSectionHeaders(BlobBuilder builder, ImmutableArray<SerializedSection> serializedSections) 353private static void WriteSectionHeader(BlobBuilder builder, SerializedSection serializedSection) 420internal static IEnumerable<Blob> GetContentToSign(BlobBuilder peImage, int peHeadersSize, int peHeaderAlignment, Blob strongNameSignatureFixup) 479internal static IEnumerable<Blob> GetContentToChecksum(BlobBuilder peImage, Blob checksumFixup) 495internal void Sign(BlobBuilder peImage, Blob strongNameSignatureFixup, Func<IEnumerable<Blob>, byte[]> signatureProvider) 518internal static uint CalculateChecksum(BlobBuilder peImage, Blob checksumFixup)
System\Reflection\PortableExecutable\ResourceSectionBuilder.cs (1)
17protected internal abstract void Serialize(BlobBuilder builder, SectionLocation location);