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

void ByteStream::write8 ( unsigned int  card8 ) [inherited]

Writes a one-byte integer to a ByteStream.

Definition at line 502 of file ByteStream.cpp.

References ByteStream::write().

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

{
  unsigned char c[1];
  c[0] = (card) & 0xff;
  if (write((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