Top Description Inners Fields Constructors Methods
org.eclipse.jetty.http3.internal

public Class VarLenInt

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, java.util.function.LongConsumer

Encodes and decodes long values as specified by QUIC.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private int
private static final int
private int
public static final int
private long
private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
decode(ByteBuffer buffer, LongConsumer consumer)

public static void
encode(ByteBuffer buffer, long value)

public static int
length(long value)

public void
private boolean
result(LongConsumer consumer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

encodingback to summary
private int encoding
ENCODING_MASKback to summary
private static final int ENCODING_MASK
lengthback to summary
private int length
MAX_LENGTHback to summary
public static final int MAX_LENGTH
valueback to summary
private long value
VALUE_MASKback to summary
private static final int VALUE_MASK

Constructor Detail

VarLenIntback to summary
public VarLenInt()

Method Detail

decodeback to summary
public boolean decode(ByteBuffer buffer, LongConsumer consumer)
encodeback to summary
public static void encode(ByteBuffer buffer, long value)
lengthback to summary
public static int length(long value)
resetback to summary
public void reset()
resultback to summary
private boolean result(LongConsumer consumer)
org.eclipse.jetty.http3.internal back to summary

public Class VarLenInt.InvalidException

extends RuntimeException
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Constructor Detail

InvalidExceptionback to summary
public InvalidException(String message)