19 #ifndef INCLUDED_RTL_BYTESEQ_HXX 20 #define INCLUDED_RTL_BYTESEQ_HXX 43 #if defined LIBO_INTERNAL_ONLY 45 : _pSequence(rSeq._pSequence)
47 rSeq._pSequence =
nullptr;
52 : _pSequence( pSequence )
61 if (_pSequence == NULL)
62 throw ::std::bad_alloc();
69 if (_pSequence == NULL)
70 throw ::std::bad_alloc();
74 : _pSequence( pSequence )
82 if (_pSequence == NULL)
83 throw ::std::bad_alloc();
97 #if defined LIBO_INTERNAL_ONLY 101 _pSequence = rSeq._pSequence;
102 rSeq._pSequence =
nullptr;
115 if (_pSequence == NULL)
116 throw ::std::bad_alloc();
123 if (_pSequence == NULL)
124 throw ::std::bad_alloc();
134 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:147
signed char sal_Int8
Definition: types.h:43
This is the binary specification of a SAL sequence.
Definition: types.h:321
bool operator==(const ByteSequence &rSeq) const
Equality operator: Compares two sequences.
Definition: byteseq.hxx:107
sal_Int8 * getArray()
Gets a pointer to elements array for READING AND WRITING.
Definition: byteseq.hxx:112
char elements[1]
elements array
Definition: types.h:331
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:132
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:120
C++ class representing a SAL byte sequence.
Definition: byteseq.h:165
__ByteSequence_NoDefault
Definition: byteseq.h:140
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:29
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:31
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:127
ByteSequence & operator=(const ByteSequence &rSeq)
Assignment operator: Acquires given sequence handle and releases a previously set handle...
Definition: byteseq.hxx:91
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:86