Lines Matching refs:buffer
109 static int readCb( void * context, char * buffer, int len );
113 int read( char * buffer, int len );
191 char *buffer = new char [4096];
193 int len = this->read(buffer, 4096);
195 buffer[len] = 0;
196 this->cachedData += buffer;
198 delete[] buffer;
238 int XmlSource::readCb( void * context, char * buffer, int len )
244 retVal = self->read( buffer, len );
258 int XmlSource::read( char *buffer, int len )
267 retVal = cachedData.copy(buffer, len, cachedPos);
273 memcpy( buffer, firstFew, some );
285 buffer[got++] = 0x0ff & single;
291 got = fread( buffer, 1, len, fp );
396 * Reads and parses XML from a buffer, returning it as an Document
398 Document *sp_repr_read_mem (const gchar * buffer, gint length, const gchar *default_ns)
405 g_return_val_if_fail (buffer != NULL, NULL);
407 doc = xmlParseMemory (const_cast<gchar *>(buffer), length);
417 * Reads and parses XML from a buffer, returning it as an Document