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

void ByteStream::write24 ( unsigned int  card24 ) [inherited]

Writes a three-bytes integer to a ByteStream. The integer most significant byte is written first, regardless of the processor endianness.

Definition at line 521 of file ByteStream.cpp.

References ByteStream::writall().

Referenced by DjVuTXT::encode(), DjVuPalette::encode(), and DjVmDir::encode().

{
  unsigned char c[3];
  c[0] = (card>>16) & 0xff;
  c[1] = (card>>8) & 0xff;
  c[2] = (card) & 0xff;
  if (writall((void*)c, sizeof(c)) != sizeof(c))
    G_THROW(strerror(errno));   //  (No error in the DjVuMessageFile)
}

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