libopc
Typedefs | Functions
outputstream.h File Reference
#include <opc/config.h>

Go to the source code of this file.

Typedefs

typedef struct OPC_CONTAINER_OUTPUTSTREAM_STRUCT opcContainerOutputStream
 

Functions

opcContainerOutputStreamopcContainerCreateOutputStream (opcContainer *container, const xmlChar *name, opcCompressionOption_t compression_option)
 
opc_uint32_t opcContainerWriteOutputStream (opcContainerOutputStream *stream, const opc_uint8_t *buffer, opc_uint32_t buffer_len)
 
opc_error_t opcContainerCloseOutputStream (opcContainerOutputStream *stream)
 

Typedef Documentation

Internal type which represents a binary output stream.

Function Documentation

opc_error_t opcContainerCloseOutputStream ( opcContainerOutputStream stream)

Close the stream and free all associated resources.

opcContainerOutputStream* opcContainerCreateOutputStream ( opcContainer container,
const xmlChar *  name,
opcCompressionOption_t  compression_option 
)

Open the part name or writing in container with compression compression_option.

Note
Make sure the part exists!
See also
opcPartCreate.
opc_uint32_t opcContainerWriteOutputStream ( opcContainerOutputStream stream,
const opc_uint8_t buffer,
opc_uint32_t  buffer_len 
)

Write buffer_len bytes from buffer to stream.

Returns
Returns the number of bytes written.