[]
        
(Showing Draft Content)

C1.Util.DX.DataPointer

DataPointer Struct

Pointer to a native buffer with a specific size.

Implements
Namespace: C1.Util.DX
Assembly: C1.Win.C1DX.4.8.dll
Syntax
public struct DataPointer : IEquatable<DataPointer>

Constructors

Name Description
DataPointer(IntPtr, int)

Initializes a new instance of the DataPointer struct.

DataPointer(void*, int)

Initializes a new instance of the DataPointer struct.

Fields

Name Description
Pointer

Pointer to the buffer.

Size

Size in bytes of the buffer.

Zero

Gets an Empty Data Pointer.

Properties

Name Description
IsEmpty

Gets a value indicating whether this instance is empty (zeroed).

Methods

Name Description
CopyFrom<T>(T[])

Writes the content of the specified buffer to the unmanaged memory location of this instance.

CopyFrom<T>(T[], int, int)

Writes the content of the specified buffer to the unmanaged memory location of this instance.

CopyTo<T>(T[], int, int)

Reads the content of the unmanaged memory location of this instance to the specified buffer.

Equals(DataPointer)

Determines whether the specified DataPointer is equal to the current object.

Equals(object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Serves as the default hash function.

ToArray()

Converts this instance to a read only byte buffer.

ToArray<T>()

Converts this instance to a read only typed buffer.

ToDataStream()

Converts this DataPointer to a DataStream.

Operators

Name Description
operator ==(DataPointer, DataPointer)

Implements the ==.

operator !=(DataPointer, DataPointer)

Implements the !=.