| 1317 | } |
| 1318 | |
| 1319 | sal_Int32 BinaryInput::readInt32() |
| 1320 | { |
| 1321 | sal_Int32 nRet = 0; |
| 1322 | if( m_nCurPos + 4 <= m_nSize ) |
| 1323 | { |
| 1324 | sal_Int32 nFactor = 1; |
| 1325 | for( sal_Int16 i = 0; i < 4; i++ ) |
| 1326 | { |
| 1327 | nRet += sal_uInt8( m_pData[m_nCurPos++] ) * nFactor; |
| 1328 | nFactor *= 256; |
| 1329 | } |
| 1330 | } |
| 1331 | else |
| 1332 | OSL_FAIL( "BinaryInput::readInt32(): Read past end" ); |
| 1333 | |
| 1334 | return nRet; |
| 1335 | } |
| 1336 | |
| 1337 | sal_Unicode BinaryInput::readUnicodeChar() |
| 1338 | { |
no outgoing calls
no test coverage detected