39 std::unique_ptr<char[]>
p(
new( ::std::nothrow )
char[ nLen ]);
40 if (
p && rStm.
ReadBytes(
p.get(), nLen) ==
static_cast<std::size_t
>(nLen))
78 if( !aCbFmt.isEmpty() )
81 RTL_TEXTENCODING_ASCII_US));
82 rStm.
WriteInt32( aAsciiCbFmt.getLength() + 1 );
89 .
WriteInt32(
static_cast<sal_Int32
>(nFormat) );
static OUString GetFormatName(SotClipboardFormatId nFormat)
static SotClipboardFormatId RegisterFormatName(const OUString &rName)
SvStream & WriteInt32(sal_Int32 nInt32)
SvStream & WriteUChar(unsigned char nChar)
SvStream & WriteOString(std::string_view rStr)
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
void SetError(ErrCode nErrorCode)
SvStream & ReadInt32(sal_Int32 &rInt32)
std::size_t ReadBytes(void *pData, std::size_t nSize)
#define SVSTREAM_GENERALERROR
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
SotClipboardFormatId ReadClipboardFormat(SvStream &rStm)
void WriteClipboardFormat(SvStream &rStm, SotClipboardFormatId nFormat)