23 #ifndef INCLUDED_RTL_BYTESEQ_H 24 #define INCLUDED_RTL_BYTESEQ_H 178 static void * SAL_CALL
operator new (
size_t nSize )
180 static void SAL_CALL
operator delete (
void * pMem )
182 static void * SAL_CALL
operator new ( size_t,
void * pMem )
184 static void SAL_CALL
operator delete (
void *,
void * )
196 #if defined LIBO_INTERNAL_ONLY 242 #if defined LIBO_INTERNAL_ONLY 251 {
return _pSequence->nElements; }
259 {
return reinterpret_cast<sal_Int8 *
>(_pSequence->elements); }
267 inline sal_Int8 * SAL_CALL getArray();
281 inline sal_Int8 & SAL_CALL operator [] ( sal_Int32 nIndex );
289 const sal_Int8 & SAL_CALL operator [] ( sal_Int32 nIndex )
const 290 {
return getConstArray()[ nIndex ]; }
311 inline void SAL_CALL realloc( sal_Int32 nSize );
318 {
return _pSequence; }
324 {
return _pSequence; }
#define SAL_THROW_EXTERN_C()
Nothrow specification for C functions.
Definition: types.h:334
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
#define SAL_DLLPUBLIC
Definition: saldllapi.h:34
This enum value can be used to create a bytesequence with uninitialized data.
Definition: byteseq.h:148
This is the binary specification of a SAL sequence.
Definition: types.h:303
bool operator!=(const Any &rAny, const C &value)
Template inequality operator: compares set value of left side any to right side value.
Definition: Any.hxx:675
SAL_DLLPUBLIC sal_Int32 rtl_byte_sequence_getLength(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Returns the length of the sequence.
bool operator==(const TTimeValue &rTimeA, const TTimeValue &rTimeB)
Definition: timer.hxx:113
#define SAL_WARN_UNUSED
Annotate classes where a compiler should warn if an instance is unused.
Definition: types.h:587
sal_Int32 getLength() const
Gets the length of sequence.
Definition: byteseq.h:250
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_allocateMemory(sal_Size Bytes) SAL_THROW_EXTERN_C()
Allocate memory.
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: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.
unsigned char sal_Bool
Definition: types.h:38
sal_Sequence * getHandle() const
Returns the UNacquired C handle of the sequence.
Definition: byteseq.h:317
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.
const sal_Int8 * getConstArray() const
Gets a pointer to byte array for READING.
Definition: byteseq.h:258
This enum value can be used to create a bytesequence from a C-Handle without acquiring the handle...
Definition: byteseq.h:156
SAL_DLLPUBLIC const sal_Int8 * rtl_byte_sequence_getConstArray(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Returns the data array pointer of the sequence.
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_DLLPUBLIC void rtl_freeMemory(void *Ptr) SAL_THROW_EXTERN_C()
Free memory.
SAL_DLLPUBLIC void rtl_byte_sequence_release(sal_Sequence *pSequence) SAL_THROW_EXTERN_C()
Releases the byte sequence.