Top Description Constructors Methods
org.apache.coyote.http2

pack-priv Class ByteUtil

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer

Utility class for extracting values from byte arrays.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static int
get31Bits(byte[] input, int firstByte)

pack-priv static int
get31Bits(ByteBuffer input, int firstByte)

pack-priv static long
getFourBytes(byte[] input, int firstByte)

pack-priv static int
getOneByte(byte[] input, int pos)

pack-priv static int
getOneByte(ByteBuffer input, int pos)

pack-priv static int
getThreeBytes(byte[] input, int firstByte)

pack-priv static int
getThreeBytes(ByteBuffer input, int firstByte)

pack-priv static int
getTwoBytes(byte[] input, int firstByte)

pack-priv static boolean
isBit7Set(byte input)

pack-priv static void
set31Bits(byte[] output, int firstByte, int value)

pack-priv static void
setFourBytes(byte[] output, int firstByte, long value)

pack-priv static void
setThreeBytes(byte[] output, int firstByte, int value)

pack-priv static void
setTwoBytes(byte[] output, int firstByte, int value)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ByteUtilback to summary
private ByteUtil()

Method Detail

get31Bitsback to summary
pack-priv static int get31Bits(byte[] input, int firstByte)
get31Bitsback to summary
pack-priv static int get31Bits(ByteBuffer input, int firstByte)
getFourBytesback to summary
pack-priv static long getFourBytes(byte[] input, int firstByte)
getOneByteback to summary
pack-priv static int getOneByte(byte[] input, int pos)
getOneByteback to summary
pack-priv static int getOneByte(ByteBuffer input, int pos)
getThreeBytesback to summary
pack-priv static int getThreeBytes(byte[] input, int firstByte)
getThreeBytesback to summary
pack-priv static int getThreeBytes(ByteBuffer input, int firstByte)
getTwoBytesback to summary
pack-priv static int getTwoBytes(byte[] input, int firstByte)
isBit7Setback to summary
pack-priv static boolean isBit7Set(byte input)
set31Bitsback to summary
pack-priv static void set31Bits(byte[] output, int firstByte, int value)
setFourBytesback to summary
pack-priv static void setFourBytes(byte[] output, int firstByte, long value)
setThreeBytesback to summary
pack-priv static void setThreeBytes(byte[] output, int firstByte, int value)
setTwoBytesback to summary
pack-priv static void setTwoBytes(byte[] output, int firstByte, int value)