Logo Search packages:      
Sourcecode: djvulibre version File versions

size_t IFFByteStream::copy ( ByteStream bsfrom,
size_t  size = 0 
) [inline]

Copy data from another ByteStream. A maximum of size# bytes are read from the ByteStream bsfrom# and are written to the ByteStream #*this# at the current position. Less than size# bytes may be written if an end-of-file mark is reached on bsfrom#. This function returns the total number of bytes copied. Setting argument size# to zero (the default value) has a special meaning: the copying process will continue until reaching the end-of-file mark on ByteStream bsfrom#, regardless of the number of bytes transferred.

Reimplemented from ByteStream.

Definition at line 266 of file IFFByteStream.h.

Referenced by DjVuFile::insert_file(), DjVuFile::remove_anno(), DjVuFile::remove_meta(), DjVuFile::remove_text(), DjVuFile::unlink_file(), and DjVmDoc::write().

  { return get_bytestream()->copy(bsfrom,size); }

Generated by  Doxygen 1.6.0   Back to index