<PackageReference Include="System.Drawing.Common" Version="11.0.0-preview.1.26104.118" />

System.Private.Windows.Ole.GlobalBuffer

struct GlobalBuffer
Simple scope for writing to HGLOBAL memory.
namespace System.Private.Windows.Ole { internal ref struct GlobalBuffer { public HRESULT Status { get; } public unsafe void* Pointer { get; } public GlobalBuffer(HGLOBAL hglobal, uint length); public Span<byte> AsSpan(); public Span<char> AsCharSpan(); public void Dispose(); } }