Show / Hide Table of Contents

Class UnmanagedMemory

Inheritance
System.Object
UnmanagedMemory
CString
UnmanagedMemory<T>
Namespace: GCore.NativeInterop
Assembly: GCore.dll
Syntax
public class UnmanagedMemory : IDisposable

Constructors

| Improve this Doc View Source

UnmanagedMemory()

Declaration
protected UnmanagedMemory()
| Improve this Doc View Source

UnmanagedMemory(IntPtr)

Declaration
public UnmanagedMemory(IntPtr ptr)
Parameters
Type Name Description
IntPtr ptr
| Improve this Doc View Source

UnmanagedMemory(Int32)

Declaration
public UnmanagedMemory(int size)
Parameters
Type Name Description
System.Int32 size
| Improve this Doc View Source

UnmanagedMemory(Type, Int32)

Declaration
public UnmanagedMemory(Type dataType, int count = 1)
Parameters
Type Name Description
Type dataType
System.Int32 count

Properties

| Improve this Doc View Source

Ptr

Declaration
public IntPtr Ptr { get; protected set; }
Property Value
Type Description
IntPtr
| Improve this Doc View Source

Size

Declaration
public int Size { get; protected set; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Alloc(Int32)

Declaration
protected void Alloc(int size)
Parameters
Type Name Description
System.Int32 size
| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

Finalize()

Declaration
protected void Finalize()
| Improve this Doc View Source

New<T>(Int32)

Declaration
public static UnmanagedMemory New<T>(int count = 1)
    where T : struct
Parameters
Type Name Description
System.Int32 count
Returns
Type Description
UnmanagedMemory
Type Parameters
Name Description
T

Extension Methods

ClassExtensions.ThrowIfArgumentIsNull<T>(T, String)
EnumExtensions.Flag<T>(T, T)
ObjectExtensions.IsNumber(Object)
SerializingExtensions.Serialize<T>(T, SerializingExtensions.Serializer)
SerializingExtensions.SerializeBinary<T>(T)
SerializingExtensions.SerializeSoap<T>(T)
SerializingExtensions.SerializeXML<T>(T, Boolean)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX