Logo Search packages:      
Sourcecode: djvulibre version File versions  Download package

GUTF8String ByteStream::Memory::init ( const void *const  buffer,
const size_t  size 

Constructs a Memory by copying initial data. The Memory buffer is initialized with size# bytes copied from the memory area pointed to by buffer#.

Definition at line 794 of file ByteStream.cpp.

References ByteStream::writall().

Referenced by ByteStream::create().

  GUTF8String retval;
    writall(buffer, sz);
    where = 0;
  G_CATCH(ex) // The only error that should be thrown is out of memory...
  return retval;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index