public class Opaque<T> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Opaque.Parser<T> |
Constructor and Description |
---|
Opaque(ByteBuffer buffer,
Optional<Integer> length,
Opaque.Parser<T> parser) |
Modifier and Type | Method and Description |
---|---|
static byte[] |
parseBytes(ByteBuffer buffer) |
static <T> T |
parseUnknown(ByteBuffer buffer) |
String |
toString() |
public final int length
public final T value
public Opaque(ByteBuffer buffer, Optional<Integer> length, Opaque.Parser<T> parser) throws InvalidPacketException
InvalidPacketException
public static <T> T parseUnknown(ByteBuffer buffer) throws InvalidPacketException
InvalidPacketException
public static byte[] parseBytes(ByteBuffer buffer) throws InvalidPacketException
InvalidPacketException
Copyright © 2018. All rights reserved.