ByteArrayOutputStream_getBytes()

Returns the data in the ByteArrayOutputStream.

Syntax

C++

 #include "InterfaceFactory.h"
 
 DIRXML_EXPORT 
 int IFAPI ByteArrayOutputStream_getBytes ( 
    OutputStream    *outputStream,
    unsigned char   *buffer);
 
 

Parameters

outputStream
(IN) Points to the pointer returned by the ByteArrayOutputStream_new method.
buffer
(OUT) Points to the buffer for the data.

Return Values

Returns the amount of data returned in the passed buffer.

Remarks

Notes: The passed buffer must be at least as large as the value returned from ByteArrayOutputStream_getDataSize().