StreamMem.with_buffer
Description:
[ CCode ( has_construct_function = false , type = "CamelStream*" ) ]
public StreamMem.with_buffer (uint8[] buffer)
public StreamMem.with_buffer (uint8[] buffer)
Create a new memory stream using buffer as the stream data.
Note: buffer will be copied into an internal ByteArray structure for use
as the stream backing. This may have resource implications you may wish to consider.
Parameters:
| buffer |
a memory buffer to use as the stream data |
| len |
length of |
Returns:
|
a new StreamMem |