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