[]
        
(Showing Draft Content)

C1.Util.DX.DataStream.-ctor

DataStream Constructor

DataStream(Blob)

Initializes a new instance of the DataStream class from a Blob buffer.

Declaration
public DataStream(Blob buffer)
Parameters
Type Name Description
Blob buffer

The buffer.

DataStream(int, bool, bool)

Initializes a new instance of the DataStream class, and allocates a new buffer to use as a backing store.

Declaration
public DataStream(int sizeInBytes, bool canRead, bool canWrite)
Parameters
Type Name Description
int sizeInBytes

The size of the buffer to be allocated, in bytes.

bool canRead

true if reading from the buffer should be allowed; otherwise, false.

bool canWrite

true if writing to the buffer should be allowed; otherwise, false.

DataStream(DataPointer)

Initializes a new instance of the DataStream class.

Declaration
public DataStream(DataPointer dataPointer)
Parameters
Type Name Description
DataPointer dataPointer

The data pointer.

DataStream(IntPtr, long, bool, bool)

Initializes a new instance of the DataStream class, using an unmanaged buffer as a backing store.

Declaration
public DataStream(IntPtr userBuffer, long sizeInBytes, bool canRead, bool canWrite)
Parameters
Type Name Description
IntPtr userBuffer

A pointer to the buffer to be used as a backing store.

long sizeInBytes

The size of the buffer provided, in bytes.

bool canRead

true if reading from the buffer should be allowed; otherwise, false.

bool canWrite

true if writing to the buffer should be allowed; otherwise, false.