3 types derived from SafeBuffer
System.IO.MemoryMappedFiles (1)
artifacts\obj\System.IO.MemoryMappedFiles\Debug\net10.0\System.IO.MemoryMappedFiles.notsupported.cs (1)
15public sealed partial class SafeMemoryMappedViewHandle : System.Runtime.InteropServices.SafeBuffer
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (1)
416private sealed class UnmanagedBuffer : SafeBuffer
System.Text.Encoding.CodePages (1)
Microsoft\Win32\SafeHandles\SafeAllocHHandle.cs (1)
10internal sealed class SafeAllocHHandle : SafeBuffer
28 references to SafeBuffer
mscorlib (1)
src\libraries\shims\mscorlib\ref\mscorlib.cs (1)
720[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeBuffer))]
netstandard (1)
netstandard.cs (1)
1727[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeBuffer))]
System.Private.CoreLib (21)
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryAccessor.cs (7)
18private SafeBuffer _buffer = null!; // initialized in helper called by ctor, but also not initialized by protected ctor 30public UnmanagedMemoryAccessor(SafeBuffer buffer, long offset, long capacity) 35public UnmanagedMemoryAccessor(SafeBuffer buffer, long offset, long capacity, FileAccess access) 40protected void Initialize(SafeBuffer buffer, long offset, long capacity, FileAccess access) 294uint sizeOfT = SafeBuffer.SizeOf<T>(); 333uint sizeOfT = SafeBuffer.AlignedSizeOf<T>(); 522uint sizeOfT = SafeBuffer.SizeOf<T>();
src\libraries\System.Private.CoreLib\src\System\IO\UnmanagedMemoryStream.cs (4)
36private SafeBuffer? _buffer; 60public UnmanagedMemoryStream(SafeBuffer buffer, long offset, long length) 68public UnmanagedMemoryStream(SafeBuffer buffer, long offset, long length, FileAccess access) 80protected void Initialize(SafeBuffer buffer, long offset, long length, FileAccess access)
src\libraries\System.Private.CoreLib\src\System\Security\SecureString.cs (10)
40SafeBuffer? bufferToRelease = null; 104SafeBuffer? bufferToRelease = null; 136SafeBuffer? bufferToRelease = null; 185SafeBuffer? bufferToRelease = null; 232SafeBuffer? bufferToRelease = null; 264SafeBuffer? bufferToRelease = null; 281private unsafe Span<char> AcquireSpan(ref SafeBuffer? bufferToRelease) 283SafeBuffer buffer = _buffer!; 314SafeBuffer? bufferToRelease = null; 352SafeBuffer? bufferToRelease = null;
System.Reflection.Metadata (3)
System\Reflection\Internal\MemoryBlocks\MemoryMappedFileBlock.cs (3)
17private SafeBuffer? _safeBuffer; 20public DisposableData(IDisposable accessor, SafeBuffer safeBuffer, long offset) 63internal MemoryMappedFileBlock(IDisposable accessor, SafeBuffer safeBuffer, long offset, int size)
System.Runtime (1)
artifacts\obj\System.Runtime\Debug\net10.0\System.Runtime.Forwards.cs (1)
686[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeBuffer))]
System.Runtime.InteropServices (1)
artifacts\obj\System.Runtime.InteropServices\Debug\net10.0\System.Runtime.InteropServices.Forwards.cs (1)
134[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Runtime.InteropServices.SafeBuffer))]