Logo Search packages:      
Sourcecode: djvulibre version File versions

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

Writes a one-byte integer to a ByteStream.

Definition at line 505 of file ByteStream.cpp.

References ByteStream::write().

Referenced by DjVuTXT::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)

Generated by  Doxygen 1.6.0   Back to index