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

unsigned int ByteStream::read8 (  )  [inherited]

Reads a one-byte integer from a ByteStream.

Definition at line 547 of file ByteStream.cpp.

References ByteStream::EndOfFile, and ByteStream::readall().

Referenced by DjVmDir0::decode(), and DjVmDir::decode().

  unsigned char c[1];
  if (readall((void*)c, sizeof(c)) != sizeof(c))
    G_THROW( ByteStream::EndOfFile );
  return c[0];

Generated by  Doxygen 1.6.0   Back to index