Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

void IFRConversion_ByteCharDataConverter::moveDataToBuffer ( IFRPacket_DataPart datapart,
char *  buffer 
) [private]

Moves data from the data part, hereby converting it to ASCII characters.

Parameters:
datapart The source data part.
buffer The target buffer.

Definition at line 1389 of file IFRConversion_ByteCharDataConverter.cpp.

References IFR_ShortInfo::bufpos, IFRPacket_DataPart::getOutputData(), IFR_ENCODING, IFR_StringEncodingAscii, IFR_ShortInfo::iolength, IFR_ShortInfo::length, IFRConversion_Converter::m_shortinfo, and IFR_ShortInfo::pos.

{
    IFR_UInt4 destbyteswritten;
    IFR_UInt4 srcbytesparsed;
    tsp78ConversionResult rc =
        sp78convertString(IFR_ENCODING(IFR_StringEncodingAscii),
                          buffer,
                          m_shortinfo.length+1,
                          &destbyteswritten,
                          true,
                          IFR_ENCODING(m_partencoding),
                          datapart.getOutputData(m_shortinfo.pos.bufpos),
                          m_shortinfo.iolength-1,
                          &srcbytesparsed);
}


Generated by  Doxygen 1.6.0   Back to index