/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Test/Core/FX/PinnedMetadata.cs
29 строк
804 B
Andy Gocke
Remove legacy Span hacks from compiler (#54060)
15 июл 2021, 19:13
Не верифицирован
15 июл 2021, 19:13
19fd555
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Collections.Immutable; using System.Reflection.Metadata; namespace Roslyn.Test.Utilities { internal sealed class PinnedMetadata : PinnedBlob, IDisposable { public MetadataReader Reader; public unsafe PinnedMetadata(ImmutableArray<byte> metadata) : base(metadata) { this.Reader = new MetadataReader((byte*)Pointer, this.Size, MetadataReaderOptions.None, null); } public override void Dispose() { base.Dispose(); Reader = null; } } }