MCPcopy Create free account
hub / github.com/LibreOffice/core / readInt16

Method readInt16

scripting/source/stringresource/stringresource.cxx:1305–1317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1303
1304
1305sal_Int16 BinaryInput::readInt16()
1306{
1307 sal_Int16 nRet = 0;
1308 if( m_nCurPos + 2 <= m_nSize )
1309 {
1310 nRet = nRet + sal_Int16( sal_uInt8( m_pData[m_nCurPos++] ) );
1311 nRet += 256 * sal_Int16( sal_uInt8( m_pData[m_nCurPos++] ) );
1312 }
1313 else
1314 OSL_FAIL( "BinaryInput::readInt16(): Read past end" );
1315
1316 return nRet;
1317}
1318
1319sal_Int32 BinaryInput::readInt32()
1320{

Callers 6

importBinaryMethod · 0.80
importPCDFieldMethod · 0.80
importColorMethod · 0.80
importNameXTokenMethod · 0.80
readSheetRangeMethod · 0.80
importOleTargetLinkMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected