| 1121 | } |
| 1122 | |
| 1123 | Sequence< ::sal_Int8 > BinaryOutput::closeAndGetData() |
| 1124 | { |
| 1125 | Sequence< ::sal_Int8 > aRetSeq; |
| 1126 | if( !m_xOutputStream.is() ) |
| 1127 | return aRetSeq; |
| 1128 | |
| 1129 | m_xOutputStream->closeOutput(); |
| 1130 | |
| 1131 | sal_Int32 nSize = static_cast<sal_Int32>(m_xTempFile->getPosition()); |
| 1132 | |
| 1133 | m_xTempFile->seek( 0 ); |
| 1134 | sal_Int32 nRead = m_xTempFile->readBytes( aRetSeq, nSize ); |
| 1135 | OSL_ENSURE( nRead == nSize, "BinaryOutput::closeAndGetData: nRead != nSize" ); |
| 1136 | |
| 1137 | return aRetSeq; |
| 1138 | } |
| 1139 | |
| 1140 | |
| 1141 | // Binary format: |
no test coverage detected