public final class org.terracotta.offheapstore.util.ByteBufferUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.terracotta.offheapstore.util.ByteBufferUtils
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/terracotta/offheapstore/util/ByteBufferUtils;
public static int totalLength(java.nio.ByteBuffer[]);
descriptor: ([Ljava/nio/ByteBuffer;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 5
StackMap locals: java.nio.ByteBuffer[] int top int int java.nio.ByteBuffer[]
StackMap stack:
2: aload 5
iload 3
aaload
astore 2
start local 2 3: iload 1
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
istore 1
end local 2 4: iinc 3 1
StackMap locals:
StackMap stack:
5: iload 3
iload 4
if_icmplt 2
6: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 buffers [Ljava/nio/ByteBuffer;
1 7 1 total I
3 4 2 buffer Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffers
public static java.nio.ByteBuffer aggregate(java.nio.ByteBuffer[]);
descriptor: ([Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
arraylength
iconst_1
if_icmpne 2
1: aload 0
iconst_0
aaload
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic org.terracotta.offheapstore.util.ByteBufferUtils.totalLength:([Ljava/nio/ByteBuffer;)I
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 1
start local 1 3: aload 0
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 7
StackMap locals: java.nio.ByteBuffer[] java.nio.ByteBuffer top int int java.nio.ByteBuffer[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 1
aload 2
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
end local 2 6: iinc 3 1
StackMap locals:
StackMap stack:
7: iload 3
iload 4
if_icmplt 4
8: aload 1
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
checkcast java.nio.ByteBuffer
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 buffers [Ljava/nio/ByteBuffer;
3 9 1 aggregate Ljava/nio/ByteBuffer;
5 6 2 element Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
buffers
}
SourceFile: "ByteBufferUtils.java"