public class com.mongodb.internal.connection.tlschannel.impl.ByteBufferUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.mongodb.internal.connection.tlschannel.impl.ByteBufferUtil
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/tlschannel/impl/ByteBufferUtil;
public static void copy(java.nio.ByteBuffer, java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifge 2
1: new java.lang.IllegalArgumentException
dup
ldc "negative length"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 2
if_icmpge 6
3: new java.lang.IllegalArgumentException
dup
4: ldc "source buffer does not have enough remaining capacity (%d < %d)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.nio.ByteBuffer.remaining:()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
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 2
if_icmpge 10
7: new java.lang.IllegalArgumentException
dup
8: ldc "destination buffer does not have enough remaining capacity (%d < %d)"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()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
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 2
ifne 12
11: return
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
astore 3
start local 3 13: aload 3
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iload 2
iadd
invokevirtual java.nio.Buffer.limit:(I)Ljava/nio/Buffer;
pop
14: aload 1
aload 3
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
15: aload 0
aload 0
invokevirtual java.nio.ByteBuffer.position:()I
iload 2
iadd
invokevirtual java.nio.Buffer.position:(I)Ljava/nio/Buffer;
pop
16: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 src Ljava/nio/ByteBuffer;
0 17 1 dst Ljava/nio/ByteBuffer;
0 17 2 length I
13 17 3 tmp Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
src final
dst final
length final
}
SourceFile: "ByteBufferUtil.java"