9 instantiations of Blob
System.Reflection.Metadata (9)
System\Reflection\Metadata\BlobBuilder.cs (1)
592return new Blob(_buffer, start, byteCount);
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (1)
82return new Blob(current._buffer, 0, current.Length);
System\Reflection\Metadata\BlobWriter.cs (1)
79public Blob Blob => new Blob(_buffer, _start, Length);
System\Reflection\PortableExecutable\PEBuilder.cs (6)
447yield return new Blob(blob.Buffer, blobStart, length); 461yield return GetPrefixBlob(new Blob(blob.Buffer, blobStart, blobLength), strongNameSignatureFixup); 462yield return GetSuffixBlob(new Blob(blob.Buffer, blobStart, blobLength), strongNameSignatureFixup); 467yield return new Blob(blob.Buffer, blobStart, blobLength); 475internal static Blob GetPrefixBlob(Blob container, Blob blob) => new Blob(container.Buffer, container.Start, blob.Start - container.Start); 476internal static Blob GetSuffixBlob(Blob container, Blob blob) => new Blob(container.Buffer, blob.Start + blob.Length, container.Start + container.Length - blob.Start - blob.Length);
97 references to Blob
Microsoft.CodeAnalysis (35)
CryptographicHashProvider.cs (2)
198internal static ImmutableArray<byte> ComputeHash(HashAlgorithmName algorithmName, IEnumerable<Blob> bytes) 282internal static ImmutableArray<byte> ComputeSourceHash(IEnumerable<Blob> bytes, SourceHashAlgorithm hashAlgorithm = SourceHashAlgorithms.Default)
EmbeddedText.cs (1)
326Blob reserved = builder.ReserveBytes(4);
InternalUtilities\BlobBuildingStream.cs (1)
78public Blob ReserveBytes(int byteCount)
InternalUtilities\IncrementalHashExtensions.cs (2)
14internal static void AppendData(this IncrementalHash hash, IEnumerable<Blob> blobs) 16foreach (var blob in blobs)
PEWriter\ExtendedPEBuilder.cs (4)
27private Blob _mvidSectionFixup = default(Blob); 43Func<IEnumerable<Blob>, BlobContentId>? deterministicIdProvider, 83internal BlobContentId Serialize(BlobBuilder peBlob, out Blob mvidSectionFixup)
PEWriter\MetadataWriter.cs (14)
1715out Blob mvidFixup, 1716out Blob mvidStringFixup); 1779out Blob mvidFixup, 1780out Blob mvidStringFixup) 1827mvidStringFixup = default(Blob); 1865public PortablePdbBuilder GetPortablePdbBuilder(ImmutableArray<int> typeSystemRowCounts, MethodDefinitionHandle debugEntryPoint, Func<IEnumerable<Blob>, BlobContentId> deterministicIdProviderOpt) 1911private void PopulateTypeSystemTables(int[] methodBodyOffsets, out PooledBlobBuilder? mappedFieldDataWriter, out PooledBlobBuilder? resourceWriter, BlobBuilder? dynamicAnalysisData, out Blob mvidFixup) 2709private void PopulateModuleTableRow(out Blob mvidFixup) 2719mvidFixup = default(Blob); 2933private int[] SerializeMethodBodies(BlobBuilder ilBuilder, PdbWriter nativePdbWriterOpt, out Blob mvidStringFixup) 2948mvidStringFixup = default(Blob); 2996private int SerializeMethodBody(MethodBodyStreamEncoder encoder, IMethodBody methodBody, StandaloneSignatureHandle localSignatureHandleOpt, ref UserStringHandle mvidStringHandle, ref Blob mvidStringFixup) 3234private void WriteInstructions(Blob finalIL, ImmutableArray<byte> generatedIL, ref UserStringHandle mvidStringHandle, ref Blob mvidStringFixup)
PEWriter\PeWriter.cs (8)
110Blob mvidFixup, mvidStringFixup; 192new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(CryptographicHashProvider.ComputeSourceHash(content))) : 207new Func<IEnumerable<Blob>, BlobContentId>(content => BlobContentId.FromHash(portablePdbContentHash = CryptographicHashProvider.ComputeHash(context.Module.PdbChecksumAlgorithm, content))) : 293var peContentId = peBuilder.Serialize(emitBuilders.PortableExecutableBlobBuilder, out Blob mvidSectionFixup); 319internal static uint CalculateChecksum(BlobBuilder peBlob, Blob checksumBlob) 335private static void PatchModuleVersionIds(Blob guidFixup, Blob guidSectionFixup, Blob stringFixup, Guid mvid)
PEWriter\SigningUtilities.cs (2)
20internal static byte[] CalculateRsaSignature(IEnumerable<Blob> content, RSAParameters privateKey) 33static byte[] calculateSha1(IEnumerable<Blob> content)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (1)
20private readonly Blob _recordCountFixup;
Microsoft.CodeAnalysis.Debugging.Package (1)
CustomDebugInfoEncoder.cs (1)
20private readonly Blob _recordCountFixup;
Microsoft.CodeAnalysis.Features (1)
src\Dependencies\CodeAnalysis.Debugging\CustomDebugInfoEncoder.cs (1)
20private readonly Blob _recordCountFixup;
Microsoft.CodeAnalysis.Test.Utilities (10)
Metadata\ILValidation.cs (10)
84Blob checksumBlob = MakeBlob(buffer, peHeaders.PEHeaderStartOffset + ChecksumOffset, sizeof(uint)); 128Blob checksumBlob, 210private static Blob MakeBlob(byte[] buffer, int offset, int size) 216typeof(Blob).GetConstructors( 221return (Blob)s_blobCtor.Invoke(new object[] { buffer, offset, size }); 225private static byte[] GetBlobBuffer(Blob blob) 231typeof(Blob).GetField( 241private static IEnumerable<Blob> GetContentToSign( 245Blob strongNameSignatureFixup) 257return (IEnumerable<Blob>)s_getContentToSignMethod.Invoke(null, new object[]
System.Reflection.Metadata (50)
System\Reflection\Metadata\BlobBuilder.cs (1)
584public Blob ReserveBytes(int byteCount)
System\Reflection\Metadata\BlobBuilder.Enumerators.cs (6)
64public struct Blobs : IEnumerable<Blob>, IEnumerator<Blob>, IEnumerator 75public Blob Current 86return default(Blob); 98IEnumerator<Blob> IEnumerable<Blob>.GetEnumerator() => GetEnumerator();
System\Reflection\Metadata\BlobContentId.cs (1)
117public static Func<IEnumerable<Blob>, BlobContentId> GetTimeBasedProvider()
System\Reflection\Metadata\BlobWriter.cs (2)
33public BlobWriter(Blob blob) 79public Blob Blob => new Blob(_buffer, _start, Length);
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (1)
293foreach (Blob srcBlob in srcBuilder.GetBlobs())
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (3)
93var instructions = Builder.ReserveBytes(codeSize); 111public Blob Instructions { get; } 118internal MethodBody(int bodyOffset, Blob instructions, ExceptionRegionEncoder exceptionRegions)
System\Reflection\Metadata\Ecma335\MetadataBuilder.Heaps.cs (4)
412/// Handle to the reserved Guid and a <see cref="Blob"/> representing the GUID blob as stored on the heap. 418var content = _guidBuilder.ReserveBytes(BlobUtilities.SizeOfGuid); 467/// Handle to the reserved User String and a <see cref="Blob"/> representing the entire User String blob (including its length and terminal character). 483var reservedUserString = _userStringBuilder.ReserveBytes(BlobWriterImpl.GetCompressedIntegerSize(encodedLength) + encodedLength);
System\Reflection\Metadata\Ecma335\PortablePdbBuilder.cs (3)
18private Blob _pdbIdBlob; 23public Func<IEnumerable<Blob>, BlobContentId> IdProvider { get; } 51Func<IEnumerable<Blob>, BlobContentId>? idProvider = null)
System\Reflection\Metadata\ReservedBlob.cs (2)
13public Blob Content { get; } 15internal ReservedBlob(THandle handle, Blob content)
System\Reflection\PortableExecutable\DebugDirectory\DebugDirectoryBuilder.EmbeddedPortablePdb.cs (1)
53foreach (var blob in debugMetadata.GetBlobs())
System\Reflection\PortableExecutable\ManagedPEBuilder.cs (3)
35private Blob _lazyStrongNameSignature; 48Func<IEnumerable<Blob>, BlobContentId>? deterministicIdProvider = null) 228public void Sign(BlobBuilder peImage, Func<IEnumerable<Blob>, byte[]> signatureProvider)
System\Reflection\PortableExecutable\ManagedTextSection.cs (1)
249out Blob strongNameSignature)
System\Reflection\PortableExecutable\PEBuilder.cs (22)
15public Func<IEnumerable<Blob>, BlobContentId> IdProvider { get; } 19private Blob _lazyChecksum; 61protected PEBuilder(PEHeaderBuilder header, Func<IEnumerable<Blob>, BlobContentId>? deterministicIdProvider) 100Blob stampFixup; 192private void WriteCoffHeader(BlobBuilder builder, ImmutableArray<SerializedSection> sections, out Blob stampFixup) 420internal static IEnumerable<Blob> GetContentToSign(BlobBuilder peImage, int peHeadersSize, int peHeaderAlignment, Blob strongNameSignatureFixup) 434foreach (var blob in peImage.GetBlobs()) 475internal static Blob GetPrefixBlob(Blob container, Blob blob) => new Blob(container.Buffer, container.Start, blob.Start - container.Start); 476internal static Blob GetSuffixBlob(Blob container, Blob blob) => new Blob(container.Buffer, blob.Start + blob.Length, container.Start + container.Length - blob.Start - blob.Length); 479internal static IEnumerable<Blob> GetContentToChecksum(BlobBuilder peImage, Blob checksumFixup) 481foreach (var blob in peImage.GetBlobs()) 495internal void Sign(BlobBuilder peImage, Blob strongNameSignatureFixup, Func<IEnumerable<Blob>, byte[]> signatureProvider) 518internal static uint CalculateChecksum(BlobBuilder peImage, Blob checksumFixup) 523private static unsafe uint CalculateChecksum(IEnumerable<Blob> blobs) 528foreach (var blob in blobs)