[]
Initializes a new instance of the DataStream class from a Blob buffer.
public DataStream(Blob buffer)
Type | Name | Description |
---|---|---|
Blob | buffer | The buffer. |
Initializes a new instance of the DataStream class, and allocates a new buffer to use as a backing store.
public DataStream(int sizeInBytes, bool canRead, bool canWrite)
Type | Name | Description |
---|---|---|
int | sizeInBytes | The size of the buffer to be allocated, in bytes. |
bool | canRead |
|
bool | canWrite |
|
Initializes a new instance of the DataStream class.
public DataStream(DataPointer dataPointer)
Type | Name | Description |
---|---|---|
DataPointer | dataPointer | The data pointer. |
Initializes a new instance of the DataStream class, using an unmanaged buffer as a backing store.
public DataStream(IntPtr userBuffer, long sizeInBytes, bool canRead, bool canWrite)
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 |
|
bool | canWrite |
|