19 #ifndef INCLUDED_RTL_BYTESEQ_HXX 20 #define INCLUDED_RTL_BYTESEQ_HXX 44 : _pSequence( pSequence )
53 if (_pSequence == NULL)
54 throw ::std::bad_alloc();
61 if (_pSequence == NULL)
62 throw ::std::bad_alloc();
66 : _pSequence( pSequence )
74 if (_pSequence == NULL)
75 throw ::std::bad_alloc();
97 if (_pSequence == NULL)
98 throw ::std::bad_alloc();
105 if (_pSequence == NULL)
106 throw ::std::bad_alloc();
116 return (!
operator == ( rSeq ));
char elements[1]
elements array
Definition: types.h:355
SAL_DLLPUBLIC void rtl_byte_sequence_acquire(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Acquires the byte sequence.
bool operator!=(const ByteSequence &rSeq) const
Unequality operator: Compares two sequences.
Definition: byteseq.hxx:114
signed char sal_Int8
Definition: types.h:53
void realloc(sal_Int32 nSize)
Reallocates sequence to new length.
Definition: byteseq.hxx:102
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 & operator[](sal_Int32 nIndex)
Non-const index operator: Obtains a reference to byte indexed at given position.
Definition: byteseq.hxx:109
SAL_DLLPUBLIC void rtl_byte_sequence_construct(sal_Sequence **ppSequence, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a bytes sequence with length nLength.
C++ class representing a SAL byte sequence.
Definition: byteseq.h:165
bool operator==(const ByteSequence &rSeq) const
Equality operator: Compares two sequences.
Definition: byteseq.hxx:89
SAL_DLLPUBLIC sal_Bool rtl_byte_sequence_equals(sal_Sequence *pSequence1, sal_Sequence *pSequence2) SAL_THROW_EXTERN_C()
Compares two byte sequences.
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.
__ByteSequence_NoDefault
Definition: byteseq.h:141
SAL_DLLPUBLIC void rtl_byte_sequence_realloc(sal_Sequence **ppSequence, sal_Int32 nSize) SAL_THROW_EXTERN_C()
Reallocates length of byte sequence.
This is the binary specification of a SAL sequence.
Definition: types.h:345
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.
ByteSequence & operator=(const ByteSequence &rSeq)
Assignment operator: Acquires given sequence handle and releases a previously set handle...
Definition: byteseq.hxx:83
__ByteSequence_NoAcquire
Definition: byteseq.h:148
Definition: bootstrap.hxx:29
ByteSequence()
Default constructor: Creates an empty sequence.
Definition: byteseq.hxx:31
SAL_DLLPUBLIC void rtl_byte_sequence_release(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Releases the byte sequence.
sal_Int8 * getArray()
Gets a pointer to elements array for READING AND WRITING.
Definition: byteseq.hxx:94
~ByteSequence()
Destructor: Releases sequence handle.
Definition: byteseq.hxx:78