DataStream Constructor(IntPtr,Int64,Boolean,Boolean)
In This Topic
Initializes a new instance of the
DataStream class, using an unmanaged buffer as a backing store.
Syntax
'Declaration
Public Function New( _
ByVal As System.IntPtr, _
ByVal As System.Long, _
ByVal As System.Boolean, _
ByVal As System.Boolean _
)
public DataStream(
System.IntPtr ,
System.long ,
System.bool ,
System.bool
)
Parameters
- userBuffer
- A pointer to the buffer to be used as a backing store.
- sizeInBytes
- The size of the buffer provided, in bytes.
- canRead
true
if reading from the buffer should be allowed; otherwise, false
.- canWrite
true
if writing to the buffer should be allowed; otherwise, false
.
See Also