net.named_data.jndn.encoding.tlv
public class TlvStructureDecoder extends Object
Constructor and Description |
---|
TlvStructureDecoder() |
Modifier and Type | Method and Description |
---|---|
boolean |
findElementEnd(ByteBuffer input)
Continue scanning input starting from offset_ to find the element end.
|
int |
getOffset()
Get the current offset into the input buffer.
|
void |
seek(int offset)
Set the offset into the input, used for the next read.
|
public final boolean findElementEnd(ByteBuffer input) throws EncodingException
input
- The input buffer. This reads starting from index 0 (not
index.position()) to input.limit(). This does not update its position().
You have to pass in input each time because the buffer could be
reallocated.EncodingException
public final int getOffset()
public final void seek(int offset)
offset
- The new offset.Copyright © 2016. All rights reserved.