Initializes a new instance of the
DataStream class, using a managed buffer as a backing store.
シンタックス
'宣言
Public Shared Function Create(Of As {New, Struct})( _
ByVal () As , _
ByVal As System.Boolean, _
ByVal As System.Boolean, _
Optional ByVal As System.Integer, _
Optional ByVal As System.Boolean _
) As DataStream
public static DataStream Create<>(
[] ,
System.bool ,
System.bool ,
System.int ,
System.bool
)
where T: new(), struct
パラメータ
- userBuffer
- A managed array to be used as a backing store.
- canRead
true
if reading from the buffer should be allowed; otherwise, false
.- canWrite
true
if writing to the buffer should be allowed; otherwise, false
.- index
- Index inside the buffer in terms of element count (not size in bytes).
- pinBuffer
- True to keep the managed buffer and pin it, false will allocate unmanaged memory and make a copy of it. Default is true.
型パラメータ
- T
参照