class com.mongodb.internal.connection.ZstdCompressor extends com.mongodb.internal.connection.Compressor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.mongodb.internal.connection.ZstdCompressor
super_class: com.mongodb.internal.connection.Compressor
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial com.mongodb.internal.connection.Compressor.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "zstd"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
public byte getId();
descriptor: ()B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_3
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
public void compress(java.util.List<org.bson.ByteBuf>, org.bson.io.BsonOutput);
descriptor: (Ljava/util/List;Lorg/bson/io/BsonOutput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokevirtual com.mongodb.internal.connection.ZstdCompressor.getUncompressedSize:(Ljava/util/List;)I
istore 3
start local 3 1: iload 3
newarray 8
astore 4
start local 4 2: aload 0
aload 1
aload 4
invokevirtual com.mongodb.internal.connection.ZstdCompressor.copy:(Ljava/util/List;[B)V
3: iload 3
i2l
invokestatic com.github.luben.zstd.Zstd.compressBound:(J)J
l2i
newarray 8
astore 5
start local 5 4: aload 5
aload 4
invokestatic com.github.luben.zstd.Zstd.maxCompressionLevel:()I
invokestatic com.github.luben.zstd.Zstd.compress:([B[BI)J
l2i
istore 6
start local 6 5: aload 2
aload 5
iconst_0
iload 6
invokeinterface org.bson.io.BsonOutput.writeBytes:([BII)V
end local 6 end local 5 6: goto 9
StackMap locals: com.mongodb.internal.connection.ZstdCompressor java.util.List org.bson.io.BsonOutput int byte[]
StackMap stack: java.lang.RuntimeException
7: astore 5
start local 5 8: new com.mongodb.MongoInternalException
dup
ldc "Unexpected RuntimeException"
aload 5
invokespecial com.mongodb.MongoInternalException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
0 10 1 source Ljava/util/List<Lorg/bson/ByteBuf;>;
0 10 2 target Lorg/bson/io/BsonOutput;
1 10 3 uncompressedSize I
2 10 4 singleByteArraySource [B
4 6 5 out [B
5 6 6 compressedSize I
8 9 5 e Ljava/lang/RuntimeException;
Exception table:
from to target type
3 6 7 Class java.lang.RuntimeException
Signature: (Ljava/util/List<Lorg/bson/ByteBuf;>;Lorg/bson/io/BsonOutput;)V
MethodParameters:
Name Flags
source final
target final
private int getUncompressedSize(java.util.List<org.bson.ByteBuf>);
descriptor: (Ljava/util/List;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: com.mongodb.internal.connection.ZstdCompressor java.util.List int top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.ByteBuf
astore 3
start local 3 3: iload 2
aload 3
invokeinterface org.bson.ByteBuf.remaining:()I
iadd
istore 2
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
0 6 1 source Ljava/util/List<Lorg/bson/ByteBuf;>;
1 6 2 uncompressedSize I
3 4 3 cur Lorg/bson/ByteBuf;
Signature: (Ljava/util/List<Lorg/bson/ByteBuf;>;)I
MethodParameters:
Name Flags
source final
private void copy(java.util.List<org.bson.ByteBuf>, );
descriptor: (Ljava/util/List;[B)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 6
StackMap locals: com.mongodb.internal.connection.ZstdCompressor java.util.List byte[] int top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.bson.ByteBuf
astore 4
start local 4 3: aload 4
invokeinterface org.bson.ByteBuf.remaining:()I
istore 6
start local 6 4: aload 4
aload 2
iload 3
iload 6
invokeinterface org.bson.ByteBuf.get:([BII)Lorg/bson/ByteBuf;
pop
5: iload 3
iload 6
iadd
istore 3
end local 6 end local 4 6: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
0 8 1 source Ljava/util/List<Lorg/bson/ByteBuf;>;
0 8 2 in [B
1 8 3 offset I
3 6 4 cur Lorg/bson/ByteBuf;
4 6 6 remaining I
Signature: (Ljava/util/List<Lorg/bson/ByteBuf;>;[B)V
MethodParameters:
Name Flags
source final
in final
java.io.InputStream getInputStream(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/io/InputStream;
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new com.github.luben.zstd.ZstdInputStream
dup
aload 1
invokespecial com.github.luben.zstd.ZstdInputStream.<init>:(Ljava/io/InputStream;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/mongodb/internal/connection/ZstdCompressor;
0 1 1 source Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
source final
}
SourceFile: "ZstdCompressor.java"