Class PinnedArray<T>
Inheritance
System.Object
PinnedArray<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Syntax
public class PinnedArray<T> : IDisposable, IEnumerable<T> where T : struct
Type Parameters
Constructors
PinnedArray(T[], Boolean)
Declaration
public PinnedArray(T[] data, bool clone = false)
Parameters
Type |
Name |
Description |
T[] |
data |
|
System.Boolean |
clone |
|
PinnedArray(Int32)
Declaration
public PinnedArray(int size)
Parameters
Type |
Name |
Description |
System.Int32 |
size |
|
Properties
Array
Declaration
public T[] Array { get; }
Property Value
Item[Int32]
Declaration
public T this[int i] { get; set; }
Parameters
Type |
Name |
Description |
System.Int32 |
i |
|
Property Value
Length
Declaration
public int Length { get; }
Property Value
Type |
Description |
System.Int32 |
|
Pointer
Declaration
public IntPtr Pointer { get; }
Property Value
Type |
Description |
System.IntPtr |
|
Methods
Assign(T[])
Declaration
public bool Assign(T[] source)
Parameters
Type |
Name |
Description |
T[] |
source |
|
Returns
Type |
Description |
System.Boolean |
|
Clone()
Declaration
public PinnedArray<T> Clone()
Returns
Dispose()
Declaration
Implements
System.IDisposable.Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type |
Name |
Description |
System.Boolean |
disposing |
|
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type |
Description |
IEnumerator<T> |
|
Operators
Implicit(PinnedArray<T> to IntPtr)
Declaration
public static implicit operator IntPtr(PinnedArray<T> v)
Parameters
Returns
Type |
Description |
System.IntPtr |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|