Overview | Namespace | Class | Index | Help |
PUBLIC MEMBERS: | CLASSES | STRUCTS | UNIONS | ENUMS | TYPEDEFS | METHODS | STATIC METHODS | DATA | STATIC DATA |
virtual | abstract | interface | template |
NO | NO | NO | NO |
Enums |
|
__ByteSequence_NoDefault | |
__ByteSequence_NoAcquire |
Methods |
|
ByteSequence( ) throw( ); |
Default constructor: Creates an empty sequence. |
ByteSequence( const ByteSequence & rSeq ) throw( ); |
Copy constructor: Creates a copy of given sequence. |
ByteSequence( sal_Sequence * pSequence ) throw( ); |
Copy constructor Creates a copy from the C-Handle. |
ByteSequence( const sal_Int8 * pElements, sal_Int32 len ); |
Constructor: Creates a copy of given data bytes. |
ByteSequence( sal_Int32 len ); |
Constructor: Creates sequence of given length and initializes all bytes to 0. |
ByteSequence( sal_Int32 len, __ByteSequence_NoDefault nodefault ); |
Constructor: Creates sequence of given length and does NOT initialize data. Use this ctor for performance optimization only. |
ByteSequence( sal_Sequence * pSequence, __ByteSequence_NoAcquire noacquire ) throw( ); |
|
~ByteSequence( ) throw( ); |
Destructor: Releases sequence handle. Last handle will free memory. |
ByteSequence & operator=( const ByteSequence & rSeq ) throw( ); |
Assignment operator: Acquires given sequence handle and releases a previously set handle. |
sal_Int32 getLength( ) const throw( ); |
Gets the length of sequence. |
const sal_Int8 * getConstArray( ) const throw( ); |
Gets a pointer to byte array for READING. If the sequence has a length of 0, then the returned pointer is undefined. |
sal_Int8 * getArray( ); |
|
sal_Int8 & operator[]( sal_Int32 nIndex ); |
|
const sal_Int8 & operator[]( sal_Int32 nIndex ) const throw( ); |
Const index operator: Obtains a reference to byte indexed at given position. The implementation does NOT check for array bounds! |
sal_Bool operator==( const ByteSequence & rSeq ) const throw( ); |
Equality operator: Compares two sequences. |
sal_Bool operator!=( const ByteSequence & rSeq ) const throw( ); |
Unequality operator: Compares two sequences. |
void realloc( sal_Int32 nSize ); |
|
sal_Sequence * getHandle( ) const throw( ); |
Returns the UNnacquired C handle of the sequence |
sal_Sequence * get( ) const throw( ); |
Returns the UNnacquired C handle of the sequence (for compatibility reasons) |
Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.