Go to the source code of this file.
◆ rtl_byte_sequence_acquire()
Acquires the byte sequence.
- Parameters
-
| pSequence | sequence, that is to be acquired |
◆ rtl_byte_sequence_assign()
Assigns the byte sequence pSequence to *ppSequence.
- Parameters
-
| ppSequence | inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence references pSequence |
| pSequence | the source sequence |
◆ rtl_byte_sequence_construct()
Constructs a bytes sequence with length nLength.
All bytes are set to zero.
- Parameters
-
| ppSequence | inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence contains the newly constructed sequence |
| nLength | length of new sequence |
◆ rtl_byte_sequence_constructFromArray()
Constructs a byte sequence with length nLength and copies nLength bytes from pData.
- Parameters
-
| ppSequence | inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence contains the newly constructed sequence |
| pData | initial data |
| nLength | length of new sequence |
◆ rtl_byte_sequence_constructNoDefault()
Constructs a bytes sequence with length nLength.
The data is not initialized.
- Parameters
-
| ppSequence | inout sequence; on entry *ppSequence may be null, otherwise it is released; after the call, *ppSequence contains the newly constructed sequence |
| nLength | length of new sequence |
◆ rtl_byte_sequence_equals()
Compares two byte sequences.
- Returns
- true, if the data within the sequences are identical; false otherwise
◆ rtl_byte_sequence_getConstArray()
Returns the data array pointer of the sequence.
- Returns
- read-pointer to the data array of the sequence. If rtl_byte_sequence_reference2One() has been called before, the pointer may be casted to a non const pointer and the sequence may be modified
◆ rtl_byte_sequence_getLength()
Returns the length of the sequence.
- Parameters
-
- Returns
- length of the sequence
◆ rtl_byte_sequence_realloc()
Reallocates length of byte sequence.
- Parameters
-
| ppSequence | sequence |
| nSize | new size of sequence |
◆ rtl_byte_sequence_reference2One()
Assures that the reference count of the given byte sequence is one.
Otherwise a new copy of the sequence is created with a reference count of one.
- Parameters
-
◆ rtl_byte_sequence_release()
Releases the byte sequence.
If the refcount drops to zero, the sequence is freed.
- Parameters
-
| pSequence | sequence, that is to be released; invalid after call |