public final class SimpleTLV extends com.neurotec.lang.NObject implements Cloneable
| Constructor and Description |
|---|
SimpleTLV(byte[] buffer)
Deprecated.
|
SimpleTLV(ByteBuffer buffer)
Initializes a new instance of the SimpleTLV class.
|
SimpleTLV(int tag)
Initializes a new instance of the SimpleTLV class.
|
SimpleTLV(int tag,
int flags)
Initializes a new instance of the SimpleTLV class.
|
SimpleTLV(com.neurotec.io.NBuffer buffer)
Initializes a new instance of the SimpleTLV class.
|
SimpleTLV(com.neurotec.io.NBuffer buffer,
int flags)
Initializes a new instance of the SimpleTLV class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLength()
Gets the SIMPLE-TLV data object length field.
|
byte |
getTag()
Gets the SIMPLE-TLV data object tag field.
|
com.neurotec.io.NBuffer |
getValue()
Gets the value field of a SIMPLE-TLV data object.
|
boolean |
isUseThreeByteLengthAlways()
Gets the option specifying whether 3 bytes size length field should always be used in the SIMPLE-TLV.
|
static SimpleTLV[] |
loadMany(byte[] buffer)
Deprecated.
|
static SimpleTLV[] |
loadMany(ByteBuffer buffer)
Creates an array of SIMPLE-TLV data objects from memory buffer.
|
static SimpleTLV[] |
loadMany(com.neurotec.io.NBuffer buffer)
Creates an array of SIMPLE-TLV data objects from NBuffer.
|
static SimpleTLV[] |
loadMany(com.neurotec.io.NBuffer buffer,
int flags)
Creates an array of SIMPLE-TLV data objects from NBuffer.
|
static com.neurotec.lang.NType |
nativeTypeOf()
Retrieves a function which retrieves NType object for the enclosing type.
|
void |
setUseThreeByteLengthAlways(boolean value)
Sets the option specifying whether 3 bytes size length field should always be used in the SIMPLE-TLV.
|
void |
setValue(com.neurotec.io.NBuffer value)
Sets the value field of a SIMPLE-TLV data object and updates the length field and the size of a SIMPLE-TLV respectively.
|
addListener, addPropertyChangeListener, captureProperties, claimHandle, clone, compareTo, copyProperties, dispose, disposeArray, equals, fromHandle, fromHandle, fromObject, getFlags, getHandle, getNativeType, getOwner, getProperty, getProperty, getSize, getSize, getSizeMany, getSizeMany, hashCode, invoke, invoke, invoke, isDisposed, nObjectCallbackNativeTypeOf, nObjectPropertyChangedCallbackNativeTypeOf, ref, removeListener, removePropertyChangeListener, reset, resetProperty, save, save, save, save, save, save, save, save, save, save, save, save, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, saveMany, setFlags, setProperty, setProperty, toHandle, toObject, toString, toString, unref, unrefArray, unrefElementspublic SimpleTLV(int tag)
tag - SimpleTag object.public SimpleTLV(int tag,
int flags)
tag - SimpleTag object.@Deprecated public SimpleTLV(byte[] buffer)
buffer - Byte array with SIMPLE-TLV data object.public SimpleTLV(ByteBuffer buffer)
buffer - Byte buffer with SIMPLE-TLV data object.public SimpleTLV(com.neurotec.io.NBuffer buffer)
buffer - NBuffer with SIMPLE-TLV data object.public SimpleTLV(com.neurotec.io.NBuffer buffer,
int flags)
buffer - NBuffer with SIMPLE-TLV data object.flags - Reserved, must be zero.public static com.neurotec.lang.NType nativeTypeOf()
@Deprecated public static SimpleTLV[] loadMany(byte[] buffer)
buffer - Byte array to read SIMPLE-TLVs data from.public static SimpleTLV[] loadMany(ByteBuffer buffer)
buffer - Byte buffer to read SIMPLE-TLVs data from.public static SimpleTLV[] loadMany(com.neurotec.io.NBuffer buffer)
buffer - NBuffer to read SIMPLE-TLVs data from.public static SimpleTLV[] loadMany(com.neurotec.io.NBuffer buffer, int flags)
buffer - NBuffer to read SIMPLE-TLVs data from.flags - Reserved, must be zero.public com.neurotec.io.NBuffer getValue()
public void setValue(com.neurotec.io.NBuffer value)
value - Byte buffer to be set to the SIMPLE-TLV value field.public byte getTag()
public int getLength()
public boolean isUseThreeByteLengthAlways()
public void setUseThreeByteLengthAlways(boolean value)
value - true if 3 bytes size length field should always be used in the SIMPLE-TLV; else false.Copyright © 2016 Neurotechnology. All rights reserved.