< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 7
Coverable lines: 7
Total lines: 27
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%110%
CreateWriter()100%110%

File(s)

https://raw.githubusercontent.com/dotnet/runtime/811a7eabb75c42db53440e8ba3f60c07511cfd1f/src/libraries/System.Reflection.Metadata/src/System/Reflection/Metadata/ReservedBlob.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4namespace System.Reflection.Metadata
 5{
 6    /// <summary>
 7    /// Represents a handle and a corresponding blob on a metadata heap that was reserved for future content update.
 8    /// </summary>
 9    public readonly struct ReservedBlob<THandle>
 10        where THandle : struct
 11    {
 012        public THandle Handle { get; }
 013        public Blob Content { get; }
 14
 15        internal ReservedBlob(THandle handle, Blob content)
 016        {
 017            Handle = handle;
 018            Content = content;
 019        }
 20
 21        /// <summary>
 22        /// Returns a <see cref="BlobWriter"/> to be used to update the content.
 23        /// </summary>
 024        public BlobWriter CreateWriter() => new BlobWriter(Content);
 25    }
 26}
 27