[]
Pointer to a native buffer with a specific size.
public struct DataPointer : IEquatable<DataPointer>
Name | Description |
---|---|
DataPointer(IntPtr, int) | Initializes a new instance of the DataPointer struct. |
DataPointer(void*, int) | Initializes a new instance of the DataPointer struct. |
Name | Description |
---|---|
Pointer | Pointer to the buffer. |
Size | Size in bytes of the buffer. |
Zero | Gets an Empty Data Pointer. |
Name | Description |
---|---|
IsEmpty | Gets a value indicating whether this instance is empty (zeroed). |
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. |
Name | Description |
---|---|
operator ==(DataPointer, DataPointer) | Implements the ==. |
operator !=(DataPointer, DataPointer) | Implements the !=. |