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

GP< ByteStream > ByteStream::create ( void const *const   buffer,
const size_t  size 
) [static, inherited]

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

Definition at line 993 of file ByteStream.cpp.

References ByteStream::Memory::init().

{
  Memory *mbs=new Memory();
  GP<ByteStream> retval=mbs;
  mbs->init(buffer,size);
  return retval;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index