StreamMem.with_byte_array


Description:

[ CCode ( has_construct_function = false , type = "CamelStream*" ) ]
public StreamMem.with_byte_array (owned ByteArray buffer)

Create a new StreamMem using buffer as the stream data.

Note: The newly created StreamMem will destroy buffer when destroyed.

Parameters:

buffer

a ByteArray to use as the stream data

Returns:

a new StreamMem