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

Method writeInt32

scripting/source/stringresource/stringresource.cxx:1096–1110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095
1096void BinaryOutput::writeInt32( sal_Int32 n )
1097{
1098 if( !m_xOutputStream.is() )
1099 return;
1100
1101 Sequence< sal_Int8 > aSeq( 4 );
1102 sal_Int8* p = aSeq.getArray();
1103
1104 for( sal_Int16 i = 0 ; i < 4 ; i++ )
1105 {
1106 p[i] = sal_Int8( n & 0xff );
1107 n >>= 8;
1108 }
1109 m_xOutputStream->writeBytes( aSeq );
1110}
1111
1112void BinaryOutput::writeString( const OUString& aStr )
1113{

Callers 1

exportBinaryMethod · 0.80

Calls 3

isMethod · 0.45
getArrayMethod · 0.45
writeBytesMethod · 0.45

Tested by

no test coverage detected