C# Class CSharpGL.UnmanagedArrayBase

Base type of unmanaged array.

Similar to array in int array[Length];

Inheritance: IDisposable
Mostra file Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Properties

Property Type Description
allocatedCount int
disposedCount int

Protected Properties

Property Type Description
elementSize int

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ToString ( ) : string

return string.Format("head: {0}, element count: {1}, byte length: {2}", this.Header, this.Length, this.ByteLength);

Protected Methods

Method Description
DisposeUnmanagedResources ( ) : void

Dispose unmanaged resources

UnmanagedArrayBase ( int elementCount, int elementSize ) : System

Base type of unmanaged array.

Similar to array in int array[Length];

Private Methods

Method Description
Dispose ( bool disposing ) : void

Dispose managed and unmanaged resources of this instance.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

DisposeUnmanagedResources() protected method

Dispose unmanaged resources
protected DisposeUnmanagedResources ( ) : void
return void

ToString() public method

return string.Format("head: {0}, element count: {1}, byte length: {2}", this.Header, this.Length, this.ByteLength);
public ToString ( ) : string
return string

UnmanagedArrayBase() protected method

Base type of unmanaged array.

Similar to array in int array[Length];

protected UnmanagedArrayBase ( int elementCount, int elementSize ) : System
elementCount int How many elements?
elementSize int How manay bytes for one element of array?
return System

Property Details

allocatedCount public_oe static_oe property

How many UnmanagedArrayBase allocated?

Only used for debugging.

public static int allocatedCount
return int

disposedCount public_oe static_oe property

How many UnmanagedArrayBase released?

Only used for debugging.

public static int disposedCount
return int

elementSize protected_oe property

单个元素的字节数。

How manay bytes for one element of array?

protected int elementSize
return int