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

Method closeAndGetData

scripting/source/stringresource/stringresource.cxx:1123–1138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1121}
1122
1123Sequence< ::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:

Callers 1

exportBinaryMethod · 0.80

Calls 5

isMethod · 0.45
closeOutputMethod · 0.45
getPositionMethod · 0.45
seekMethod · 0.45
readBytesMethod · 0.45

Tested by

no test coverage detected