final class jdk.internal.net.http.SocketTube$SliceBufferSource implements jdk.internal.net.http.SocketTube$BufferSource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.SocketTube$SliceBufferSource
super_class: java.lang.Object
{
private final java.util.function.Supplier<java.nio.ByteBuffer> factory;
descriptor: Ljava/util/function/Supplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
private volatile java.nio.ByteBuffer current;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/SocketTube;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.net.http.SocketTube$SliceBufferSource.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/internal/net/http/common/Utils.getBuffer()Ljava/nio/ByteBuffer; (6)
()Ljava/nio/ByteBuffer;
invokespecial jdk.internal.net.http.SocketTube$SliceBufferSource.<init>:(Ljava/util/function/Supplier;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/SocketTube$SliceBufferSource;
public void <init>(java.util.function.Supplier<java.nio.ByteBuffer>);
descriptor: (Ljava/util/function/Supplier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Supplier
putfield jdk.internal.net.http.SocketTube$SliceBufferSource.factory:Ljava/util/function/Supplier;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/SocketTube$SliceBufferSource;
0 3 1 factory Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/function/Supplier<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
factory
public final java.nio.ByteBuffer getBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.SocketTube$SliceBufferSource.current:Ljava/nio/ByteBuffer;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 3
2: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 0
aload 0
getfield jdk.internal.net.http.SocketTube$SliceBufferSource.factory:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
dup_x1
putfield jdk.internal.net.http.SocketTube$SliceBufferSource.current:Ljava/nio/ByteBuffer;
goto 4
StackMap locals:
StackMap stack:
3: aload 1
4: StackMap locals:
StackMap stack: java.nio.ByteBuffer
astore 1
5: getstatic jdk.internal.net.http.SocketTube$SliceBufferSource.$assertionsDisabled:Z
ifne 6
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/SocketTube$SliceBufferSource;
1 7 1 buf Ljava/nio/ByteBuffer;
public final java.util.List<java.nio.ByteBuffer> append(java.util.List<java.nio.ByteBuffer>, java.nio.ByteBuffer, int);
descriptor: (Ljava/util/List;Ljava/nio/ByteBuffer;I)Ljava/util/List;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
istore 4
start local 4 1: aload 2
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
2: aload 2
iload 3
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
3: aload 2
invokevirtual java.nio.ByteBuffer.slice:()Ljava/nio/ByteBuffer;
astore 5
start local 5 4: aload 2
aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
5: aload 2
iload 4
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
6: aload 1
aload 5
invokevirtual java.nio.ByteBuffer.asReadOnlyBuffer:()Ljava/nio/ByteBuffer;
invokestatic jdk.internal.net.http.SocketTube.listOf:(Ljava/util/List;Ljava/lang/Object;)Ljava/util/List;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/SocketTube$SliceBufferSource;
0 7 1 list Ljava/util/List<Ljava/nio/ByteBuffer;>;
0 7 2 buf Ljava/nio/ByteBuffer;
0 7 3 start I
1 7 4 limit I
4 7 5 slice Ljava/nio/ByteBuffer;
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;Ljava/nio/ByteBuffer;I)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
list
buf
start
}
SourceFile: "SocketTube.java"
NestHost: jdk.internal.net.http.SocketTube
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BufferSource = jdk.internal.net.http.SocketTube$BufferSource of jdk.internal.net.http.SocketTube
private final SliceBufferSource = jdk.internal.net.http.SocketTube$SliceBufferSource of jdk.internal.net.http.SocketTube