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

void PoDoFo::NonPublic::PdfTTFWriter::WriteTableDirectory ( PdfOutputDevice pDevice ) [private]

Writes the table directory at the current position of the output device, handling any necessary conversion from big to little endian.

Parameters:
pDevicewrite at the current position of this device.
See also:
m_tTableDirectory

Definition at line 294 of file PdfTTFWriter.cpp.

References PoDoFo::NonPublic::PdfTTFWriter::TTableDirectory::entrySelector, m_tTableDirectory, PoDoFo::NonPublic::PdfTTFWriter::TTableDirectory::numTables, PoDoFo::NonPublic::PdfTTFWriter::TTableDirectory::rangeShift, PoDoFo::NonPublic::PdfTTFWriter::TTableDirectory::searchRange, SwapUShort(), and PoDoFo::PdfOutputDevice::Write().

Referenced by Write().

{
    if( podofo_is_little_endian() ) 
    {
        // Swap bytes
        SwapUShort( &m_tTableDirectory.numTables );
        SwapUShort( &m_tTableDirectory.searchRange );
        SwapUShort( &m_tTableDirectory.entrySelector );
        SwapUShort( &m_tTableDirectory.rangeShift );
    }

    pDevice->Write( reinterpret_cast<char*>(&m_tTableDirectory), sizeof(TTableDirectory) );
}

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