- All Superinterfaces:
DataElement,Iterable<Byte>
Interface for the HLA data type HLAopaqueData.
-
Method Summary
Modifier and TypeMethodDescriptionbyteget(int index) Returns thebyteat the specified position in this array.byte[]getValue()Returns the byte[] value of this element.iterator()Returns an iterator over the bytes in this array in a proper sequence.voidsetValue(byte[] value) Sets the byte[] value of this element.intsize()Returns the number of bytes in this array.Methods inherited from interface hla.rti1516e.encoding.DataElement
decode, decode, encode, getEncodedLength, getOctetBoundary, toByteArrayMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
size
int size()Returns the number of bytes in this array.- Returns:
- the number of bytes in this array.
-
get
byte get(int index) Returns thebyteat the specified position in this array.- Parameters:
index- index ofbyteto return- Returns:
byteat the specified index
-
iterator
Returns an iterator over the bytes in this array in a proper sequence. -
getValue
byte[] getValue()Returns the byte[] value of this element.- Returns:
- byte[] value
-
setValue
void setValue(byte[] value) Sets the byte[] value of this element.- Parameters:
value- new value
-