final class jdk.internal.net.http.hpack.NaiveHuffman$Writer implements jdk.internal.net.http.hpack.Huffman$Writer
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.hpack.NaiveHuffman$Writer
super_class: java.lang.Object
{
private int pos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int avail;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int curr;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int rem;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int code;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.CharSequence source;
descriptor: Ljava/lang/CharSequence;
flags: (0x0002) ACC_PRIVATE
private int end;
descriptor: I
flags: (0x0002) ACC_PRIVATE
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
bipush 8
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
public jdk.internal.net.http.hpack.NaiveHuffman$Writer from(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
iflt 1
iload 3
iflt 1
iload 3
aload 1
invokeinterface java.lang.CharSequence.length:()I
if_icmpgt 1
iload 2
iload 3
if_icmple 6
1: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
2: ldc "input.length()=%s, start=%s, end=%s"
iconst_3
anewarray java.lang.Object
dup
iconst_0
3: aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
4: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
7: aload 0
iload 3
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.end:I
8: aload 0
aload 1
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.source:Ljava/lang/CharSequence;
9: aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
0 10 1 input Ljava/lang/CharSequence;
0 10 2 start I
0 10 3 end I
MethodParameters:
Name Flags
input
start
end
public boolean write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: goto 24
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
ifne 22
2: getstatic jdk.internal.net.http.hpack.NaiveHuffman.INSTANCE:Ljdk/internal/net/http/hpack/NaiveHuffman;
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.source:Ljava/lang/CharSequence;
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
invokeinterface java.lang.CharSequence.charAt:(I)C
invokevirtual jdk.internal.net.http.hpack.NaiveHuffman.codeOf:(C)Ljdk/internal/net/http/hpack/NaiveHuffman$Code;
astore 2
start local 2 3: aload 0
aload 2
getfield jdk.internal.net.http.hpack.NaiveHuffman$Code.length:I
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
4: aload 0
aload 2
getfield jdk.internal.net.http.hpack.NaiveHuffman$Code.code:I
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
end local 2 5: goto 22
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
if_icmpge 11
7: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
isub
ishl
ior
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
8: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
isub
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
9: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
10: goto 22
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
isub
iushr
ior
istore 2
start local 2 12: aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 15
13: aload 1
iload 2
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
14: goto 16
15: StackMap locals: int
StackMap stack:
iconst_0
ireturn
16: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
17: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
bipush 32
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
isub
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
iadd
ishl
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
18: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
bipush 32
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
isub
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
iadd
iushr
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
19: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
isub
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
20: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
21: aload 0
bipush 8
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
end local 2 22: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.rem:I
ifgt 6
23: aload 0
dup
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
iconst_1
iadd
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
StackMap locals:
StackMap stack:
24: aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.end:I
if_icmplt 1
25: aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
bipush 8
if_icmpge 31
26: aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 30
27: aload 1
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
getstatic jdk.internal.net.http.hpack.NaiveHuffman.INSTANCE:Ljdk/internal/net/http/hpack/NaiveHuffman;
getfield jdk.internal.net.http.hpack.NaiveHuffman.EOS:Ljdk/internal/net/http/hpack/NaiveHuffman$Code;
getfield jdk.internal.net.http.hpack.NaiveHuffman$Code.code:I
getstatic jdk.internal.net.http.hpack.NaiveHuffman.INSTANCE:Ljdk/internal/net/http/hpack/NaiveHuffman;
getfield jdk.internal.net.http.hpack.NaiveHuffman.EOS:Ljdk/internal/net/http/hpack/NaiveHuffman$Code;
getfield jdk.internal.net.http.hpack.NaiveHuffman$Code.length:I
aload 0
getfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
isub
iushr
ior
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
28: aload 0
bipush 8
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
29: goto 31
30: StackMap locals:
StackMap stack:
iconst_0
ireturn
31: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
0 32 1 destination Ljava/nio/ByteBuffer;
3 5 2 desc Ljdk/internal/net/http/hpack/NaiveHuffman$Code;
12 22 2 c I
MethodParameters:
Name Flags
destination
public jdk.internal.net.http.hpack.NaiveHuffman$Writer reset();
descriptor: ()Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.source:Ljava/lang/CharSequence;
1: aload 0
iconst_m1
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.end:I
2: aload 0
iconst_m1
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.pos:I
3: aload 0
bipush 8
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.avail:I
4: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.curr:I
5: aload 0
iconst_0
putfield jdk.internal.net.http.hpack.NaiveHuffman$Writer.code:I
6: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
public int lengthOf(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.internal.net.http.hpack.NaiveHuffman.INSTANCE:Ljdk/internal/net/http/hpack/NaiveHuffman;
aload 1
iload 2
iload 3
invokevirtual jdk.internal.net.http.hpack.NaiveHuffman.lengthOf:(Ljava/lang/CharSequence;II)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
0 1 1 value Ljava/lang/CharSequence;
0 1 2 start I
0 1 3 end I
MethodParameters:
Name Flags
value
start
end
public jdk.internal.net.http.hpack.Huffman$Writer from(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)Ljdk/internal/net/http/hpack/Huffman$Writer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
iload 2
iload 3
invokevirtual jdk.internal.net.http.hpack.NaiveHuffman$Writer.from:(Ljava/lang/CharSequence;II)Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
areturn
LocalVariableTable:
Start End Slot Name Signature
public jdk.internal.net.http.hpack.Huffman$Writer reset();
descriptor: ()Ljdk/internal/net/http/hpack/Huffman$Writer;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.internal.net.http.hpack.NaiveHuffman$Writer.reset:()Ljdk/internal/net/http/hpack/NaiveHuffman$Writer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "NaiveHuffman.java"
NestHost: jdk.internal.net.http.hpack.NaiveHuffman
InnerClasses:
public abstract Writer = jdk.internal.net.http.hpack.Huffman$Writer of jdk.internal.net.http.hpack.Huffman
private final Code = jdk.internal.net.http.hpack.NaiveHuffman$Code of jdk.internal.net.http.hpack.NaiveHuffman
final Writer = jdk.internal.net.http.hpack.NaiveHuffman$Writer of jdk.internal.net.http.hpack.NaiveHuffman