19 #ifndef INCLUDED_RTL_BYTESEQ_HXX
20 #define INCLUDED_RTL_BYTESEQ_HXX
45 : _pSequence( pSequence )
55 throw ::std::bad_alloc();
63 throw ::std::bad_alloc();
67 : _pSequence( pSequence )
76 throw ::std::bad_alloc();
99 throw ::std::bad_alloc();
107 throw ::std::bad_alloc();
117 return (!
operator == ( rSeq ));
__ByteSequence_NoAcquire
Definition: byteseq.h:148
C++ class representing a SAL byte sequence.
Definition: byteseq.h:161
Definition: bootstrap.hxx:24
~ByteSequence() SAL_THROW(())
Destructor: Releases sequence handle.
Definition: byteseq.hxx:79
SAL_DLLPUBLIC void rtl_byte_sequence_acquire(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Acquires the byte sequence.
SAL_DLLPUBLIC void rtl_byte_sequence_construct(sal_Sequence **ppSequence, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a bytes sequence with length nLength.
bool operator!=(const ByteSequence &rSeq) const SAL_THROW(())
Unequality operator: Compares two sequences.
Definition: byteseq.hxx:115
SAL_DLLPUBLIC void rtl_byte_sequence_realloc(sal_Sequence **ppSequence, sal_Int32 nSize) SAL_THROW_EXTERN_C()
Reallocates length of byte sequence.
bool operator==(const ByteSequence &rSeq) const SAL_THROW(())
Equality operator: Compares two sequences.
Definition: byteseq.hxx:90
SAL_DLLPUBLIC sal_Bool rtl_byte_sequence_equals(sal_Sequence *pSequence1, sal_Sequence *pSequence2) SAL_THROW_EXTERN_C()
Compares two byte sequences.
This is the binary specification of a SAL sequence.
Definition: types.h:327
signed char sal_Int8
Definition: types.h:51
char elements[1]
elements array
Definition: types.h:337
SAL_DLLPUBLIC void rtl_byte_sequence_reference2One(sal_Sequence **ppSequence) SAL_THROW_EXTERN_C()
Assures that the reference count of the given byte sequence is one.
#define SAL_THROW(x)
Exception specification documentation.
Definition: types.h:361
ByteSequence & operator=(const ByteSequence &rSeq) SAL_THROW(())
Assignment operator: Acquires given sequence handle and releases a previously set handle...
Definition: byteseq.hxx:84
ByteSequence() SAL_THROW(())
Default constructor: Creates an empty sequence.
Definition: byteseq.hxx:32
SAL_DLLPUBLIC void rtl_byte_sequence_constructNoDefault(sal_Sequence **ppSequence, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a bytes sequence with length nLength.
SAL_DLLPUBLIC void rtl_byte_sequence_release(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Releases the byte sequence.
__ByteSequence_NoDefault
Definition: byteseq.h:141
sal_Int8 & operator[](sal_Int32 nIndex)
Non-const index operator: Obtains a reference to byte indexed at given position.
Definition: byteseq.hxx:110
void realloc(sal_Int32 nSize)
Reallocates sequence to new length.
Definition: byteseq.hxx:103
SAL_DLLPUBLIC void rtl_byte_sequence_assign(sal_Sequence **ppSequence, sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Assigns the byte sequence pSequence to *ppSequence.
SAL_DLLPUBLIC void rtl_byte_sequence_constructFromArray(sal_Sequence **ppSequence, const sal_Int8 *pData, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a byte sequence with length nLength and copies nLength bytes from pData.
sal_Int8 * getArray()
Gets a pointer to elements array for READING AND WRITING.
Definition: byteseq.hxx:95