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