Simple C Expat Wrapper (SCEW)  1.1.7
Files | Functions
Memory

Read data from memory buffers. More...

Files

file  reader_buffer.h
 SCEW reader functions for memory buffers.
 

Functions

SCEW_API scew_readerscew_reader_buffer_create (XML_Char const *buffer, size_t size)
 Creates a new SCEW reader for the given memory buffer of the specified size. More...
 

Detailed Description

Read data from memory buffers.

Function Documentation

SCEW_API scew_reader* scew_reader_buffer_create ( XML_Char const *  buffer,
size_t  size 
)

Creates a new SCEW reader for the given memory buffer of the specified size.

Once the writer is created, any of the Readers functions might be called in order to read data from the buffer.

Precondition
buffer != NULL
size > 0
Parameters
bufferthe memory area where the new SCEW reader should read data from.
sizethe size of the memory area.
Returns
a new SCEW reader for the given buffer or NULL if the reader could not be created.