ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / DataStream Class / DataStream Constructor / DataStream Constructor(IntPtr,Int64,Boolean,Boolean)
A pointer to the buffer to be used as a backing store.
The size of the buffer provided, in bytes.
true if reading from the buffer should be allowed; otherwise, false.
true if writing to the buffer should be allowed; otherwise, false.

In This Topic
    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 userBuffer As System.IntPtr, _
       ByVal sizeInBytes As System.Long, _
       ByVal canRead As System.Boolean, _
       ByVal canWrite As System.Boolean _
    )
    public DataStream( 
       System.IntPtr userBuffer,
       System.long sizeInBytes,
       System.bool canRead,
       System.bool canWrite
    )

    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