Function Reference


_StreamCreateMemoryBuffer

Creates a memory buffer from binary or string data for use with streams.

_StreamCreateMemoryBuffer($bData, ByRef $iSize)

Parameters

$bData Binary or string data to store in the buffer.
$iSize [out] Size of the allocated buffer in bytes.

Return Value

Success: Pointer to the allocated memory buffer.
Failure: 0, sets @error to 1 (memory allocation failed).

Remarks

Caller must free the returned pointer using _WinAPI_FreeMemory.

Related

_StreamWrite, _WinAPI_GetBufferData