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

unsigned int ByteStream::read32 (  ) [inherited]

Reads a four-bytes integer from a ByteStream. The integer most significant bytes are read first, regardless of the processor endianness.

Definition at line 571 of file ByteStream.cpp.

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

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

  unsigned char c[4];
  if (readall((void*)c, sizeof(c)) != sizeof(c))
    G_THROW( ByteStream::EndOfFile );
  return (((((c[0]<<8)+c[1])<<8)+c[2])<<8)+c[3];

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