Show / Hide Table of Contents

Class SafeBufferExtensions

Represents extensions for SafeBuffer type.

Inheritance
object
SafeBufferExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Runtime.InteropServices
Assembly: DotNext.dll
Syntax
public static class SafeBufferExtensions

Methods

| Edit this page View Source

AcquirePointer(SafeBuffer)

Obtains managed pointer from buffer for a block of memory.

Declaration
public static ref byte AcquirePointer(this SafeBuffer buffer)
Parameters
Type Name Description
SafeBuffer buffer

The buffer.

Returns
Type Description
byte

A managed pointer to the buffer; or NullRef<T>() if buffer is invalid.

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾