41 lines
2.1 KiB
C#
41 lines
2.1 KiB
C#
using System;
|
|
using System.Runtime.ConstrainedExecution;
|
|
using Cpp2IlInjected;
|
|
using Microsoft.Win32.SafeHandles;
|
|
|
|
namespace System.Runtime.InteropServices
|
|
{
|
|
/// <summary>Provides a controlled memory buffer that can be used for reading and writing. Attempts to access memory outside the controlled buffer (underruns and overruns) raise exceptions.</summary>
|
|
// Token: 0x020005A9 RID: 1449
|
|
[Token(Token = "0x20005A9")]
|
|
public abstract class SafeBuffer : SafeHandleZeroOrMinusOneIsInvalid
|
|
{
|
|
/// <summary>Obtains a pointer from a <see cref="T:System.Runtime.InteropServices.SafeBuffer" /> object for a block of memory.</summary>
|
|
/// <param name="pointer">A byte pointer, passed by reference, to receive the pointer from within the <see cref="T:System.Runtime.InteropServices.SafeBuffer" /> object. You must set this pointer to <see langword="null" /> before you call this method.</param>
|
|
/// <exception cref="T:System.InvalidOperationException">The <see cref="Overload:System.Runtime.InteropServices.SafeBuffer.Initialize" /> method has not been called.</exception>
|
|
// Token: 0x06002D4B RID: 11595 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002D4B")]
|
|
[Address(RVA = "0x2CFC750", Offset = "0x2CFB750", VA = "0x182CFC750")]
|
|
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.MayFail)]
|
|
[CLSCompliant(false)]
|
|
public unsafe void AcquirePointer(ref byte* pointer)
|
|
{
|
|
}
|
|
|
|
/// <summary>Releases a pointer that was obtained by the <see cref="M:System.Runtime.InteropServices.SafeBuffer.AcquirePointer(System.Byte*@)" /> method.</summary>
|
|
/// <exception cref="T:System.InvalidOperationException">The <see cref="Overload:System.Runtime.InteropServices.SafeBuffer.Initialize" /> method has not been called.</exception>
|
|
// Token: 0x06002D4C RID: 11596 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6002D4C")]
|
|
[Address(RVA = "0x2CFC7E0", Offset = "0x2CFB7E0", VA = "0x182CFC7E0")]
|
|
[ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success)]
|
|
public void ReleasePointer()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001A10 RID: 6672
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4001A10")]
|
|
private bool inited;
|
|
}
|
|
}
|