|
RTI Connext Java API
Version 6.0.1
|
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < byte >
More...
Public Member Functions | |
| ByteSeq () | |
| Constructs an empty sequence of bytes with an initial maximum of zero. | |
| ByteSeq (int initialMaximum) | |
| Constructs an empty sequence of bytes with the given initial maximum. | |
| ByteSeq (byte[] bytes) | |
| Construct a new sequence containing the given bytes. | |
| boolean | addAllByte (byte[] elements, int offset, int length) |
Append length elements from the given array to this sequence, starting at index offset in that array. | |
| boolean | addAllByte (byte[] elements) |
| void | addByte (byte element) |
| Append the element to the end of the sequence. | |
| void | addByte (int index, byte element) |
| Shift all elements in the sequence starting from the given index and add the element to the given index. | |
| byte | getByte (int index) |
| Returns the byte at the given index. | |
| byte | setByte (int index, byte element) |
| Set the new byte at the given index and return the old byte. | |
| void | setByte (int dstIndex, byte[] elements, int srcIndex, int length) |
| Copy a portion of the given array into this sequence. | |
| byte[] | toArrayByte (byte[] array) |
| Return an array containing copy of the contents of this sequence. | |
| Object | get (int index) |
| A wrapper for getByte(int) that returns a java.lang.Byte. | |
| Object | set (int index, Object element) |
| A wrapper for setByte(). | |
| void | add (int index, Object element) |
| A wrapper for addByte(int, int). | |
Public Member Functions inherited from AbstractPrimitiveSequence | |
| final Class | getElementType () |
| void | loan (Object buffer, int new_length) |
| Loan a contiguous buffer to this sequence. | |
| void | unloan () |
| Return the loaned buffer in the sequence and set the maximum to 0. | |
| final boolean | hasOwnership () |
| Return the value of the owned flag. | |
| final void | clear () |
| final void | setSize (int newSize) |
| final int | size () |
| final Object | copy_from (Object src) |
Public Member Functions inherited from AbstractSequence | |
| void | add (int index, Object element) |
| Inserts the specified element at the specified position in this sequence. | |
| boolean | add (Object element) |
| Appends the specified element to the end of this sequence. | |
| final Object | remove (int index) |
| Remove the element at the given index by shifting all subsequent elements "left" by one. | |
Public Member Functions inherited from Sequence | |
| int | getMaximum () |
| Get the current maximum number of elements that can be stored in this sequence. | |
| void | setMaximum (int new_max) |
| Resize this sequence to a new desired maximum. | |
| Class | getElementType () |
Instantiates com.rti.dds.infrastructure.com.rti.dds.util.Sequence < byte >
| ByteSeq | ( | ) |
Constructs an empty sequence of bytes with an initial maximum of zero.
| ByteSeq | ( | int | initialMaximum | ) |
Constructs an empty sequence of bytes with the given initial maximum.
| ByteSeq | ( | byte[] | bytes | ) |
Construct a new sequence containing the given bytes.
| bytes | the initial contents of this sequence |
| NullPointerException | if the input array is null |
| boolean addAllByte | ( | byte[] | elements, |
| int | offset, | ||
| int | length | ||
| ) |
Append length elements from the given array to this sequence, starting at index offset in that array.
| NullPointerException | if the given array is null. |
| boolean addAllByte | ( | byte[] | elements | ) |
| NullPointerException | if the given array is null |
| void addByte | ( | byte | element | ) |
Append the element to the end of the sequence.
| void addByte | ( | int | index, |
| byte | element | ||
| ) |
Shift all elements in the sequence starting from the given index and add the element to the given index.
| byte getByte | ( | int | index | ) |
Returns the byte at the given index.
| IndexOutOfBoundsException | if the index is out of bounds. |
| byte setByte | ( | int | index, |
| byte | element | ||
| ) |
Set the new byte at the given index and return the old byte.
| IndexOutOfBoundsException | if the index is out of bounds. |
| void setByte | ( | int | dstIndex, |
| byte[] | elements, | ||
| int | srcIndex, | ||
| int | length | ||
| ) |
Copy a portion of the given array into this sequence.
| dstIndex | the index at which to start copying into this sequence. |
| elements | an array of primitive elements. |
| srcIndex | the index at which to start copying from the given array. |
| length | the number of elements to copy. |
| IndexOutOfBoundsException | if copying would cause access of data outside array bounds. |
| byte [] toArrayByte | ( | byte[] | array | ) |
Return an array containing copy of the contents of this sequence.
| array | The array into which this sequence should be copied. It may be null. If it is, or if array length is too small, the array will be ignored, and a new array of the necessary length will be created and copied into instead. |
|
virtual |
A wrapper for getByte(int) that returns a java.lang.Byte.
Implements AbstractPrimitiveSequence.
|
virtual |
A wrapper for setByte().
| ClassCastException | if the element is not of type Byte. |
Implements AbstractPrimitiveSequence.
|
virtual |
A wrapper for addByte(int, int).
| ClassCastException | if the element is not of type Byte. |
Implements AbstractPrimitiveSequence.