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;
 
  113    return ::rtl_byte_sequence_equals( _pSequence, rSeq._pSequence );
 
 
  119    if (_pSequence == NULL)
 
  120        throw ::std::bad_alloc();
 
  121    return reinterpret_cast<sal_Int8 *
>(_pSequence->elements);
 
 
  127    if (_pSequence == NULL)
 
  128        throw ::std::bad_alloc();
 
 
  138    return (! 
operator == ( rSeq ));
 
 
struct _sal_Sequence sal_Sequence
This is the binary specification of a SAL sequence.
signed char sal_Int8
Definition types.h:43
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_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_construct(sal_Sequence **ppSequence, sal_Int32 nLength) SAL_THROW_EXTERN_C()
Constructs a bytes sequence with length nLength.
SAL_DLLPUBLIC void rtl_byte_sequence_acquire(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Acquires the byte sequence.
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_realloc(sal_Sequence **ppSequence, sal_Int32 nSize) SAL_THROW_EXTERN_C()
Reallocates length of byte sequence.
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_release(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Releases the byte sequence.
Definition bootstrap.hxx:34
__ByteSequence_NoDefault
Definition byteseq.h:145
__ByteSequence_NoAcquire
Definition byteseq.h:152
C++ class representing a SAL byte sequence.
Definition byteseq.h:170
sal_Int8 & operator[](sal_Int32 nIndex)
Non-const index operator: Obtains a reference to byte indexed at given position.
Definition byteseq.hxx:131
bool operator==(const ByteSequence &rSeq) const
Equality operator: Compares two sequences.
Definition byteseq.hxx:111
ByteSequence & operator=(const ByteSequence &rSeq)
Assignment operator: Acquires given sequence handle and releases a previously set handle.
Definition byteseq.hxx:95
void realloc(sal_Int32 nSize)
Reallocates sequence to new length.
Definition byteseq.hxx:124
sal_Int8 * getArray()
Gets a pointer to elements array for READING AND WRITING.
Definition byteseq.hxx:116
bool operator!=(const ByteSequence &rSeq) const
Unequality operator: Compares two sequences.
Definition byteseq.hxx:136
~ByteSequence()
Destructor: Releases sequence handle.
Definition byteseq.hxx:90
ByteSequence()
Default constructor: Creates an empty sequence.
Definition byteseq.hxx:35