SimpleArrayByte

References
Wrapper for ON_SimpleArray<unsigned char>. If you are not writing C++ code then this class is not for you.

Constructors

SimpleArrayByte

#Since v7.0
public SimpleArrayByte()
Initializes a new SimpleArrayByte class.

SimpleArrayByte

#Since v7.0
public SimpleArrayByte(IEnumerable<byte> values)
Initializes a new SimpleArrayByte class
values (IEnumerable<byte>)initial set of integers to add to the array

SimpleArrayByte

#Since v7.0
public SimpleArrayByte(int initialSize)
Initializes a new SimpleArrayByte class. Initial size of the array - all values are set to zero.
initialSize (int)

SimpleArrayByte

#Since v7.0
public SimpleArrayByte(SimpleArrayByte other)
Initializes a new SimpleArrayByte with the contents of another SimpleArrayByte.
other (SimpleArrayByte)

Finalizer

~SimpleArrayByte

#
~SimpleArrayByte()
Passively reclaims unmanaged resources when the class user did not explicitly call Dispose().

Properties

Count

#Since v7.0
public int Count { get; }
Gets the amount of elements in this array.

Methods

Array

#Since v7.0
public nint Array()
Return the raw data.

ConstPointer

#Since v7.0
public nint ConstPointer()
Gets the constant (immutable) pointer of this array.
The constant pointer.

CopyTo

#Since v7.0
public void CopyTo(SimpleArrayByte other)
Copies the contents of a SimpleArrayByte into another SimpleArrayByte.
other (SimpleArrayByte)

Dispose

#Since v7.0
public void Dispose()
Actively reclaims unmanaged resources that this instance uses.

NonConstPointer

#Since v7.0
public nint NonConstPointer()
Gets the non-constant pointer (for modification) of this array.
The non-constant pointer.

ToArray

#Since v7.0
public byte[] ToArray()
Returns the managed counterpart of the unmanaged array.
The managed array.