23 #ifndef INCLUDED_RTL_BYTESEQ_HXX 24 #define INCLUDED_RTL_BYTESEQ_HXX 47 #if defined LIBO_INTERNAL_ONLY 49 : _pSequence(rSeq._pSequence)
51 rSeq._pSequence =
nullptr;
56 : _pSequence( pSequence )
65 if (_pSequence == NULL)
66 throw ::std::bad_alloc();
73 if (_pSequence == NULL)
74 throw ::std::bad_alloc();
78 : _pSequence( pSequence )
86 if (_pSequence == NULL)
87 throw ::std::bad_alloc();
101 #if defined LIBO_INTERNAL_ONLY 105 _pSequence = rSeq._pSequence;
106 rSeq._pSequence =
nullptr;
119 if (_pSequence == NULL)
120 throw ::std::bad_alloc();
127 if (_pSequence == NULL)
128 throw ::std::bad_alloc();
138 return (!
operator == ( rSeq ));
SAL_DLLPUBLIC void rtl_byte_sequence_acquire(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Acquires the byte sequence.
__ByteSequence_NoAcquire
Definition: byteseq.h:151
signed char sal_Int8
Definition: types.h:43
This is the binary specification of a SAL sequence.
Definition: types.h:303
bool operator==(const ByteSequence &rSeq) const
Equality operator: Compares two sequences.
Definition: byteseq.hxx:111
sal_Int8 * getArray()
Gets a pointer to elements array for READING AND WRITING.
Definition: byteseq.hxx:116
char elements[1]
elements array
Definition: types.h:313
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.
bool operator!=(const ByteSequence &rSeq) const
Unequality operator: Compares two sequences.
Definition: byteseq.hxx:136
SAL_DLLPUBLIC void rtl_byte_sequence_construct(sal_Sequence **ppSequence, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a bytes sequence with length nLength.
void realloc(sal_Int32 nSize)
Reallocates sequence to new length.
Definition: byteseq.hxx:124
C++ class representing a SAL byte sequence.
Definition: byteseq.h:169
__ByteSequence_NoDefault
Definition: byteseq.h:144
SAL_DLLPUBLIC sal_Bool rtl_byte_sequence_equals(sal_Sequence *pSequence1, sal_Sequence *pSequence2) SAL_THROW_EXTERN_C()
Compares two byte sequences.
Definition: bootstrap.hxx:33
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.
SAL_DLLPUBLIC void rtl_byte_sequence_realloc(sal_Sequence **ppSequence, sal_Int32 nSize) SAL_THROW_EXTERN_C()
Reallocates length of byte sequence.
ByteSequence()
Default constructor: Creates an empty sequence.
Definition: byteseq.hxx:35
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_assign(sal_Sequence **ppSequence, sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Assigns the byte sequence pSequence to *ppSequence.
sal_Int8 & operator[](sal_Int32 nIndex)
Non-const index operator: Obtains a reference to byte indexed at given position.
Definition: byteseq.hxx:131
ByteSequence & operator=(const ByteSequence &rSeq)
Assignment operator: Acquires given sequence handle and releases a previously set handle...
Definition: byteseq.hxx:95
SAL_DLLPUBLIC void rtl_byte_sequence_release(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Releases the byte sequence.
~ByteSequence()
Destructor: Releases sequence handle.
Definition: byteseq.hxx:90