Show / Hide Table of Contents

Class UnmanagedMemory<T>

Inheritance
System.Object
UnmanagedMemory
UnmanagedMemory<T>
Inherited Members
UnmanagedMemory.Ptr
UnmanagedMemory.Size
UnmanagedMemory.Alloc(Int32)
UnmanagedMemory.Dispose()
UnmanagedMemory.New<T>(Int32)
Namespace: GCore.NativeInterop
Assembly: GCore.dll
Syntax
public class UnmanagedMemory<T> : UnmanagedMemory where T : struct
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

UnmanagedMemory()

Declaration
protected UnmanagedMemory()
| Improve this Doc View Source

UnmanagedMemory(IntPtr, Int32)

Declaration
public UnmanagedMemory(IntPtr ptr, int count = 1)
Parameters
Type Name Description
IntPtr ptr
System.Int32 count
| Improve this Doc View Source

UnmanagedMemory(Int32)

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

Properties

| Improve this Doc View Source

Count

Declaration
public int Count { get; protected set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PtrElem

Declaration
public T*PtrElem { get; }
Property Value
Type Description
T*
| Improve this Doc View Source

Stride

Declaration
public int Stride { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

GetElement(Int32)

Declaration
public T*GetElement(int index)
Parameters
Type Name Description
System.Int32 index
Returns
Type Description
T*
| Improve this Doc View Source

ToArray()

Declaration
public T*[] ToArray()
Returns
Type 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