public final class io.netty.buffer.ByteBufUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.buffer.ByteBufUtil
super_class: java.lang.Object
{
private static final io.netty.util.internal.logging.InternalLogger logger;
descriptor: Lio/netty/util/internal/logging/InternalLogger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.util.concurrent.FastThreadLocal<java.nio.CharBuffer> CHAR_BUFFERS;
descriptor: Lio/netty/util/concurrent/FastThreadLocal;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lio/netty/util/concurrent/FastThreadLocal<Ljava/nio/CharBuffer;>;
private static final byte WRITE_UTF_UNKNOWN;
descriptor: B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 63
private static final int MAX_CHAR_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int THREAD_LOCAL_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int MAX_BYTES_PER_CHAR_UTF8;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final int WRITE_CHUNK_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 8192
static final io.netty.buffer.ByteBufAllocator DEFAULT_ALLOCATOR;
descriptor: Lio/netty/buffer/ByteBufAllocator;
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final io.netty.util.ByteProcessor FIND_NON_ASCII;
descriptor: Lio/netty/util/ByteProcessor;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: ldc Lio/netty/buffer/ByteBufUtil;
invokestatic io.netty.util.internal.logging.InternalLoggerFactory.getInstance:(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger;
putstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
1: new io.netty.buffer.ByteBufUtil$1
dup
invokespecial io.netty.buffer.ByteBufUtil$1.<init>:()V
putstatic io.netty.buffer.ByteBufUtil.CHAR_BUFFERS:Lio/netty/util/concurrent/FastThreadLocal;
2: getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokestatic io.netty.util.CharsetUtil.encoder:(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
f2i
3: putstatic io.netty.buffer.ByteBufUtil.MAX_BYTES_PER_CHAR_UTF8:I
4: ldc "io.netty.allocator.type"
invokestatic io.netty.util.internal.PlatformDependent.isAndroid:()Z
ifeq 5
ldc "unpooled"
goto 6
StackMap locals:
StackMap stack: java.lang.String
5: ldc "pooled"
6: StackMap locals:
StackMap stack: java.lang.String java.lang.String
invokestatic io.netty.util.internal.SystemPropertyUtil.get:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 7: aload 0
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 0
8: ldc "unpooled"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 12
9: getstatic io.netty.buffer.UnpooledByteBufAllocator.DEFAULT:Lio/netty/buffer/UnpooledByteBufAllocator;
astore 1
start local 1 10: getstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.type: {}"
aload 0
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
11: goto 18
end local 1 StackMap locals: java.lang.String
StackMap stack:
12: ldc "pooled"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 16
13: getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT:Lio/netty/buffer/PooledByteBufAllocator;
astore 1
start local 1 14: getstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.type: {}"
aload 0
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
15: goto 18
end local 1 16: StackMap locals:
StackMap stack:
getstatic io.netty.buffer.PooledByteBufAllocator.DEFAULT:Lio/netty/buffer/PooledByteBufAllocator;
astore 1
start local 1 17: getstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.allocator.type: pooled (unknown: {})"
aload 0
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
18: StackMap locals: io.netty.buffer.ByteBufAllocator
StackMap stack:
aload 1
putstatic io.netty.buffer.ByteBufUtil.DEFAULT_ALLOCATOR:Lio/netty/buffer/ByteBufAllocator;
19: ldc "io.netty.threadLocalDirectBufferSize"
iconst_0
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.ByteBufUtil.THREAD_LOCAL_BUFFER_SIZE:I
20: getstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.threadLocalDirectBufferSize: {}"
getstatic io.netty.buffer.ByteBufUtil.THREAD_LOCAL_BUFFER_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
21: ldc "io.netty.maxThreadLocalCharBufferSize"
sipush 16384
invokestatic io.netty.util.internal.SystemPropertyUtil.getInt:(Ljava/lang/String;I)I
putstatic io.netty.buffer.ByteBufUtil.MAX_CHAR_BUFFER_SIZE:I
22: getstatic io.netty.buffer.ByteBufUtil.logger:Lio/netty/util/internal/logging/InternalLogger;
ldc "-Dio.netty.maxThreadLocalCharBufferSize: {}"
getstatic io.netty.buffer.ByteBufUtil.MAX_CHAR_BUFFER_SIZE:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface io.netty.util.internal.logging.InternalLogger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
end local 1 end local 0 23: new io.netty.buffer.ByteBufUtil$2
dup
invokespecial io.netty.buffer.ByteBufUtil$2.<init>:()V
putstatic io.netty.buffer.ByteBufUtil.FIND_NON_ASCII:Lio/netty/util/ByteProcessor;
24: return
LocalVariableTable:
Start End Slot Name Signature
7 23 0 allocType Ljava/lang/String;
10 12 1 alloc Lio/netty/buffer/ByteBufAllocator;
14 16 1 alloc Lio/netty/buffer/ByteBufAllocator;
17 23 1 alloc Lio/netty/buffer/ByteBufAllocator;
public static java.lang.String hexDump(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokestatic io.netty.buffer.ByteBufUtil.hexDump:(Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
buffer
public static java.lang.String hexDump(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil$HexUtil.hexDump:(Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer Lio/netty/buffer/ByteBuf;
0 1 1 fromIndex I
0 1 2 length I
MethodParameters:
Name Flags
buffer
fromIndex
length
public static java.lang.String hexDump(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
arraylength
invokestatic io.netty.buffer.ByteBufUtil.hexDump:([BII)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 array [B
MethodParameters:
Name Flags
array
public static java.lang.String hexDump(byte[], int, int);
descriptor: ([BII)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil$HexUtil.hexDump:([BII)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 array [B
0 1 1 fromIndex I
0 1 2 length I
MethodParameters:
Name Flags
array
fromIndex
length
public static byte decodeHexByte(java.lang.CharSequence, int);
descriptor: (Ljava/lang/CharSequence;I)B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic io.netty.util.internal.StringUtil.decodeHexByte:(Ljava/lang/CharSequence;I)B
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/CharSequence;
0 1 1 pos I
MethodParameters:
Name Flags
s
pos
public static byte[] decodeHexDump(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
aload 0
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.util.internal.StringUtil.decodeHexDump:(Ljava/lang/CharSequence;II)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 hexDump Ljava/lang/CharSequence;
MethodParameters:
Name Flags
hexDump
public static byte[] decodeHexDump(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic io.netty.util.internal.StringUtil.decodeHexDump:(Ljava/lang/CharSequence;II)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 hexDump Ljava/lang/CharSequence;
0 1 1 fromIndex I
0 1 2 length I
MethodParameters:
Name Flags
hexDump
fromIndex
length
public static boolean ensureWritableSuccess(int);
descriptor: (I)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
ifeq 1
iload 0
iconst_2
if_icmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ensureWritableResult I
MethodParameters:
Name Flags
ensureWritableResult
public static int hashCode(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 1
start local 1 1: iload 1
iconst_2
iushr
istore 2
start local 2 2: iload 1
iconst_3
iand
istore 3
start local 3 3: iconst_1
istore 4
start local 4 4: aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
istore 5
start local 5 5: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
if_acmpne 13
6: iload 2
istore 6
start local 6 7: goto 11
8: StackMap locals: io.netty.buffer.ByteBuf int int int int int int
StackMap stack:
bipush 31
iload 4
imul
aload 0
iload 5
invokevirtual io.netty.buffer.ByteBuf.getInt:(I)I
iadd
istore 4
9: iinc 5 4
10: iinc 6 -1
StackMap locals:
StackMap stack:
11: iload 6
ifgt 8
end local 6 12: goto 19
13: StackMap locals:
StackMap stack:
iload 2
istore 6
start local 6 14: goto 18
15: StackMap locals: int
StackMap stack:
bipush 31
iload 4
imul
aload 0
iload 5
invokevirtual io.netty.buffer.ByteBuf.getInt:(I)I
invokestatic io.netty.buffer.ByteBufUtil.swapInt:(I)I
iadd
istore 4
16: iinc 5 4
17: iinc 6 -1
StackMap locals:
StackMap stack:
18: iload 6
ifgt 15
end local 6 19: StackMap locals:
StackMap stack:
iload 3
istore 6
start local 6 20: goto 23
21: StackMap locals: int
StackMap stack:
bipush 31
iload 4
imul
aload 0
iload 5
iinc 5 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
iadd
istore 4
22: iinc 6 -1
StackMap locals:
StackMap stack:
23: iload 6
ifgt 21
end local 6 24: iload 4
ifne 26
25: iconst_1
istore 4
26: StackMap locals:
StackMap stack:
iload 4
ireturn
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 27 0 buffer Lio/netty/buffer/ByteBuf;
1 27 1 aLen I
2 27 2 intCount I
3 27 3 byteCount I
4 27 4 hashCode I
5 27 5 arrayIndex I
7 12 6 i I
14 19 6 i I
20 24 6 i I
MethodParameters:
Name Flags
buffer
public static int indexOf(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
isub
iconst_1
iadd
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 10
3: StackMap locals: int int
StackMap stack:
aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
4: aload 1
aload 1
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 3
iadd
5: aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
6: invokestatic io.netty.buffer.ByteBufUtil.equals:(Lio/netty/buffer/ByteBuf;ILio/netty/buffer/ByteBuf;II)Z
7: ifeq 9
8: aload 1
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 3
iadd
ireturn
9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
iload 2
if_icmplt 3
end local 3 11: iconst_m1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 needle Lio/netty/buffer/ByteBuf;
0 12 1 haystack Lio/netty/buffer/ByteBuf;
1 12 2 attempts I
2 11 3 i I
MethodParameters:
Name Flags
needle
haystack
public static boolean equals(io.netty.buffer.ByteBuf, int, io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;ILio/netty/buffer/ByteBuf;II)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 1
iflt 1
iload 3
iflt 1
iload 4
ifge 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "All indexes and lengths must be non-negative"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iload 4
isub
iload 1
if_icmplt 3
aload 2
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
iload 4
isub
iload 3
if_icmpge 4
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iload 4
iconst_3
iushr
istore 5
start local 5 5: iload 4
bipush 7
iand
istore 6
start local 6 6: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
aload 2
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
if_acmpne 16
7: iload 5
istore 7
start local 7 8: goto 14
9: StackMap locals: int int int
StackMap stack:
aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.getLong:(I)J
aload 2
iload 3
invokevirtual io.netty.buffer.ByteBuf.getLong:(I)J
lcmp
ifeq 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
iinc 1 8
12: iinc 3 8
13: iinc 7 -1
StackMap locals:
StackMap stack:
14: iload 7
ifgt 9
end local 7 15: goto 24
16: StackMap locals:
StackMap stack:
iload 5
istore 7
start local 7 17: goto 23
18: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.getLong:(I)J
aload 2
iload 3
invokevirtual io.netty.buffer.ByteBuf.getLong:(I)J
invokestatic io.netty.buffer.ByteBufUtil.swapLong:(J)J
lcmp
ifeq 20
19: iconst_0
ireturn
20: StackMap locals:
StackMap stack:
iinc 1 8
21: iinc 3 8
22: iinc 7 -1
StackMap locals:
StackMap stack:
23: iload 7
ifgt 18
end local 7 24: StackMap locals:
StackMap stack:
iload 6
istore 7
start local 7 25: goto 31
26: StackMap locals: int
StackMap stack:
aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
aload 2
iload 3
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
if_icmpeq 28
27: iconst_0
ireturn
28: StackMap locals:
StackMap stack:
iinc 1 1
29: iinc 3 1
30: iinc 7 -1
StackMap locals:
StackMap stack:
31: iload 7
ifgt 26
end local 7 32: iconst_1
ireturn
end local 6 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 33 0 a Lio/netty/buffer/ByteBuf;
0 33 1 aStartIndex I
0 33 2 b Lio/netty/buffer/ByteBuf;
0 33 3 bStartIndex I
0 33 4 length I
5 33 5 longCount I
6 33 6 byteCount I
8 15 7 i I
17 24 7 i I
25 32 7 i I
MethodParameters:
Name Flags
a
aStartIndex
b
bStartIndex
length
public static boolean equals(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 2
start local 2 1: iload 2
aload 1
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
if_icmpeq 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 1
aload 1
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 2
invokestatic io.netty.buffer.ByteBufUtil.equals:(Lio/netty/buffer/ByteBuf;ILio/netty/buffer/ByteBuf;II)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 bufferA Lio/netty/buffer/ByteBuf;
0 4 1 bufferB Lio/netty/buffer/ByteBuf;
1 4 2 aLen I
MethodParameters:
Name Flags
bufferA
bufferB
public static int compare(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=13, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 2
start local 2 1: aload 1
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 3
start local 3 2: iload 2
iload 3
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 3: iload 4
iconst_2
iushr
istore 5
start local 5 4: iload 4
iconst_3
iand
istore 6
start local 6 5: aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
istore 7
start local 7 6: aload 1
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
istore 8
start local 8 7: iload 5
ifle 24
8: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
if_acmpne 9
iconst_1
goto 10
StackMap locals: io.netty.buffer.ByteBuf io.netty.buffer.ByteBuf int int int int int int int
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 9
start local 9 11: iload 5
iconst_2
ishl
istore 12
start local 12 12: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
aload 1
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
if_acmpne 17
13: iload 9
ifeq 14
aload 0
aload 1
iload 7
iload 8
iload 12
invokestatic io.netty.buffer.ByteBufUtil.compareUintBigEndian:(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
goto 15
14: StackMap locals: io.netty.buffer.ByteBuf io.netty.buffer.ByteBuf int int int int int int int int top top int
StackMap stack:
aload 0
aload 1
iload 7
iload 8
iload 12
invokestatic io.netty.buffer.ByteBufUtil.compareUintLittleEndian:(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
15: StackMap locals:
StackMap stack: long
lstore 10
start local 10 16: goto 20
end local 10 17: StackMap locals:
StackMap stack:
iload 9
ifeq 18
aload 0
aload 1
iload 7
iload 8
iload 12
invokestatic io.netty.buffer.ByteBufUtil.compareUintBigEndianA:(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
goto 19
18: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 7
iload 8
iload 12
invokestatic io.netty.buffer.ByteBufUtil.compareUintBigEndianB:(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
19: StackMap locals:
StackMap stack: long
lstore 10
start local 10 20: StackMap locals: io.netty.buffer.ByteBuf io.netty.buffer.ByteBuf int int int int int int int int long int
StackMap stack:
lload 10
lconst_0
lcmp
ifeq 22
21: ldc 2147483647
ldc -2147483648
lload 10
invokestatic java.lang.Math.max:(JJ)J
invokestatic java.lang.Math.min:(JJ)J
l2i
ireturn
22: StackMap locals:
StackMap stack:
iload 7
iload 12
iadd
istore 7
23: iload 8
iload 12
iadd
istore 8
end local 12 end local 10 end local 9 24: StackMap locals:
StackMap stack:
iload 7
iload 6
iadd
istore 9
start local 9 25: goto 30
26: StackMap locals: int
StackMap stack:
aload 0
iload 7
invokevirtual io.netty.buffer.ByteBuf.getUnsignedByte:(I)S
aload 1
iload 8
invokevirtual io.netty.buffer.ByteBuf.getUnsignedByte:(I)S
isub
istore 10
start local 10 27: iload 10
ifeq 29
28: iload 10
ireturn
end local 10 29: StackMap locals:
StackMap stack:
iinc 7 1
iinc 8 1
StackMap locals:
StackMap stack:
30: iload 7
iload 9
if_icmplt 26
end local 9 31: iload 2
iload 3
isub
ireturn
end local 8 end local 7 end local 6 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 32 0 bufferA Lio/netty/buffer/ByteBuf;
0 32 1 bufferB Lio/netty/buffer/ByteBuf;
1 32 2 aLen I
2 32 3 bLen I
3 32 4 minLength I
4 32 5 uintCount I
5 32 6 byteCount I
6 32 7 aIndex I
7 32 8 bIndex I
11 24 9 bufferAIsBigEndian Z
16 17 10 res J
20 24 10 res J
12 24 12 uintCountIncrement I
25 31 9 aEnd I
27 29 10 comp I
MethodParameters:
Name Flags
bufferA
bufferB
private static long compareUintBigEndian(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf, int, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iload 4
iadd
istore 5
start local 5 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual io.netty.buffer.ByteBuf.getUnsignedInt:(I)J
aload 1
iload 3
invokevirtual io.netty.buffer.ByteBuf.getUnsignedInt:(I)J
lsub
lstore 6
start local 6 3: lload 6
lconst_0
lcmp
ifeq 5
4: lload 6
lreturn
end local 6 5: StackMap locals:
StackMap stack:
iinc 2 4
iinc 3 4
StackMap locals:
StackMap stack:
6: iload 2
iload 5
if_icmplt 2
end local 5 7: lconst_0
lreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 bufferA Lio/netty/buffer/ByteBuf;
0 8 1 bufferB Lio/netty/buffer/ByteBuf;
0 8 2 aIndex I
0 8 3 bIndex I
0 8 4 uintCountIncrement I
1 7 5 aEnd I
3 5 6 comp J
MethodParameters:
Name Flags
bufferA
bufferB
aIndex
bIndex
uintCountIncrement
private static long compareUintLittleEndian(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf, int, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iload 4
iadd
istore 5
start local 5 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual io.netty.buffer.ByteBuf.getUnsignedIntLE:(I)J
aload 1
iload 3
invokevirtual io.netty.buffer.ByteBuf.getUnsignedIntLE:(I)J
lsub
lstore 6
start local 6 3: lload 6
lconst_0
lcmp
ifeq 5
4: lload 6
lreturn
end local 6 5: StackMap locals:
StackMap stack:
iinc 2 4
iinc 3 4
StackMap locals:
StackMap stack:
6: iload 2
iload 5
if_icmplt 2
end local 5 7: lconst_0
lreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 bufferA Lio/netty/buffer/ByteBuf;
0 8 1 bufferB Lio/netty/buffer/ByteBuf;
0 8 2 aIndex I
0 8 3 bIndex I
0 8 4 uintCountIncrement I
1 7 5 aEnd I
3 5 6 comp J
MethodParameters:
Name Flags
bufferA
bufferB
aIndex
bIndex
uintCountIncrement
private static long compareUintBigEndianA(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf, int, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iload 4
iadd
istore 5
start local 5 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual io.netty.buffer.ByteBuf.getUnsignedInt:(I)J
aload 1
iload 3
invokevirtual io.netty.buffer.ByteBuf.getUnsignedIntLE:(I)J
lsub
lstore 6
start local 6 3: lload 6
lconst_0
lcmp
ifeq 5
4: lload 6
lreturn
end local 6 5: StackMap locals:
StackMap stack:
iinc 2 4
iinc 3 4
StackMap locals:
StackMap stack:
6: iload 2
iload 5
if_icmplt 2
end local 5 7: lconst_0
lreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 bufferA Lio/netty/buffer/ByteBuf;
0 8 1 bufferB Lio/netty/buffer/ByteBuf;
0 8 2 aIndex I
0 8 3 bIndex I
0 8 4 uintCountIncrement I
1 7 5 aEnd I
3 5 6 comp J
MethodParameters:
Name Flags
bufferA
bufferB
aIndex
bIndex
uintCountIncrement
private static long compareUintBigEndianB(io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf, int, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 2
iload 4
iadd
istore 5
start local 5 1: goto 6
2: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual io.netty.buffer.ByteBuf.getUnsignedIntLE:(I)J
aload 1
iload 3
invokevirtual io.netty.buffer.ByteBuf.getUnsignedInt:(I)J
lsub
lstore 6
start local 6 3: lload 6
lconst_0
lcmp
ifeq 5
4: lload 6
lreturn
end local 6 5: StackMap locals:
StackMap stack:
iinc 2 4
iinc 3 4
StackMap locals:
StackMap stack:
6: iload 2
iload 5
if_icmplt 2
end local 5 7: lconst_0
lreturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 bufferA Lio/netty/buffer/ByteBuf;
0 8 1 bufferB Lio/netty/buffer/ByteBuf;
0 8 2 aIndex I
0 8 3 bIndex I
0 8 4 uintCountIncrement I
1 7 5 aEnd I
3 5 6 comp J
MethodParameters:
Name Flags
bufferA
bufferB
aIndex
bIndex
uintCountIncrement
public static int indexOf(io.netty.buffer.ByteBuf, int, int, byte);
descriptor: (Lio/netty/buffer/ByteBuf;IIB)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
if_icmpgt 2
1: aload 0
iload 1
iload 2
iload 3
invokestatic io.netty.buffer.ByteBufUtil.firstIndexOf:(Lio/netty/buffer/ByteBuf;IIB)I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
iload 3
invokestatic io.netty.buffer.ByteBufUtil.lastIndexOf:(Lio/netty/buffer/ByteBuf;IIB)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buffer Lio/netty/buffer/ByteBuf;
0 3 1 fromIndex I
0 3 2 toIndex I
0 3 3 value B
MethodParameters:
Name Flags
buffer
fromIndex
toIndex
value
public static short swapShort(short);
descriptor: (S)S
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Short.reverseBytes:(S)S
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value S
MethodParameters:
Name Flags
value
public static int swapMedium(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iload 0
bipush 16
ishl
ldc 16711680
iand
iload 0
ldc 65280
iand
ior
iload 0
bipush 16
iushr
sipush 255
iand
ior
istore 1
start local 1 1: iload 1
ldc 8388608
iand
ifeq 3
2: iload 1
ldc -16777216
ior
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 value I
1 4 1 swapped I
MethodParameters:
Name Flags
value
public static int swapInt(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.reverseBytes:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value I
MethodParameters:
Name Flags
value
public static long swapLong(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
invokestatic java.lang.Long.reverseBytes:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 value J
MethodParameters:
Name Flags
value
public static io.netty.buffer.ByteBuf writeShortBE(io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
if_acmpne 1
aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeShortLE:(I)Lio/netty/buffer/ByteBuf;
StackMap locals:
StackMap stack: io.netty.buffer.ByteBuf
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Lio/netty/buffer/ByteBuf;
0 3 1 shortValue I
MethodParameters:
Name Flags
buf
shortValue
public static io.netty.buffer.ByteBuf setShortBE(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
if_acmpne 1
aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.setShort:(II)Lio/netty/buffer/ByteBuf;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.setShortLE:(II)Lio/netty/buffer/ByteBuf;
StackMap locals:
StackMap stack: io.netty.buffer.ByteBuf
2: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Lio/netty/buffer/ByteBuf;
0 3 1 index I
0 3 2 shortValue I
MethodParameters:
Name Flags
buf
index
shortValue
public static io.netty.buffer.ByteBuf writeMediumBE(io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual io.netty.buffer.ByteBuf.order:()Ljava/nio/ByteOrder;
getstatic java.nio.ByteOrder.BIG_ENDIAN:Ljava/nio/ByteOrder;
if_acmpne 1
aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeMedium:(I)Lio/netty/buffer/ByteBuf;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeMediumLE:(I)Lio/netty/buffer/ByteBuf;
StackMap locals:
StackMap stack: io.netty.buffer.ByteBuf
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 buf Lio/netty/buffer/ByteBuf;
0 3 1 mediumValue I
MethodParameters:
Name Flags
buf
mediumValue
public static io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBufAllocator, io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
istore 3
start local 3 1: aload 0
iload 2
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 4
start local 4 2: aload 1
aload 4
invokevirtual io.netty.buffer.ByteBuf.readBytes:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
pop
3: iconst_0
istore 3
4: aload 4
astore 6
5: iload 3
ifeq 7
6: aload 4
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
7: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.buffer.ByteBuf int int io.netty.buffer.ByteBuf top io.netty.buffer.ByteBuf
StackMap stack:
aload 6
areturn
8: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.buffer.ByteBuf int int io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
astore 5
9: iload 3
ifeq 11
10: aload 4
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
11: StackMap locals: java.lang.Throwable
StackMap stack:
aload 5
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 12 1 buffer Lio/netty/buffer/ByteBuf;
0 12 2 length I
1 12 3 release Z
2 12 4 dst Lio/netty/buffer/ByteBuf;
Exception table:
from to target type
2 5 8 any
MethodParameters:
Name Flags
alloc
buffer
length
private static int firstIndexOf(io.netty.buffer.ByteBuf, int, int, byte);
descriptor: (Lio/netty/buffer/ByteBuf;IIB)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iconst_0
invokestatic java.lang.Math.max:(II)I
istore 1
1: iload 1
iload 2
if_icmpge 2
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
ifne 3
2: StackMap locals:
StackMap stack:
iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
iload 1
iload 2
iload 1
isub
new io.netty.util.ByteProcessor$IndexOfProcessor
dup
iload 3
invokespecial io.netty.util.ByteProcessor$IndexOfProcessor.<init>:(B)V
invokevirtual io.netty.buffer.ByteBuf.forEachByte:(IILio/netty/util/ByteProcessor;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 buffer Lio/netty/buffer/ByteBuf;
0 4 1 fromIndex I
0 4 2 toIndex I
0 4 3 value B
MethodParameters:
Name Flags
buffer
fromIndex
toIndex
value
private static int lastIndexOf(io.netty.buffer.ByteBuf, int, int, byte);
descriptor: (Lio/netty/buffer/ByteBuf;IIB)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
invokestatic java.lang.Math.min:(II)I
istore 1
1: iload 1
iflt 2
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
ifne 3
2: StackMap locals:
StackMap stack:
iconst_m1
ireturn
3: StackMap locals:
StackMap stack:
aload 0
iload 2
iload 1
iload 2
isub
new io.netty.util.ByteProcessor$IndexOfProcessor
dup
iload 3
invokespecial io.netty.util.ByteProcessor$IndexOfProcessor.<init>:(B)V
invokevirtual io.netty.buffer.ByteBuf.forEachByteDesc:(IILio/netty/util/ByteProcessor;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 buffer Lio/netty/buffer/ByteBuf;
0 4 1 fromIndex I
0 4 2 toIndex I
0 4 3 value B
MethodParameters:
Name Flags
buffer
fromIndex
toIndex
value
public static io.netty.buffer.ByteBuf writeUtf8(io.netty.buffer.ByteBufAllocator, java.lang.CharSequence);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Ljava/lang/CharSequence;)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic io.netty.buffer.ByteBufUtil.utf8MaxBytes:(Ljava/lang/CharSequence;)I
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 2
start local 2 1: aload 2
aload 1
invokestatic io.netty.buffer.ByteBufUtil.writeUtf8:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 3 1 seq Ljava/lang/CharSequence;
1 3 2 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
alloc
seq
public static int writeUtf8(io.netty.buffer.ByteBuf, java.lang.CharSequence);
descriptor: (Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokestatic io.netty.buffer.ByteBufUtil.utf8MaxBytes:(Ljava/lang/CharSequence;)I
invokestatic io.netty.buffer.ByteBufUtil.reserveAndWriteUtf8:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;I)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Lio/netty/buffer/ByteBuf;
0 1 1 seq Ljava/lang/CharSequence;
MethodParameters:
Name Flags
buf
seq
public static int reserveAndWriteUtf8(io.netty.buffer.ByteBuf, java.lang.CharSequence, int);
descriptor: (Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: StackMap locals:
StackMap stack:
aload 0
instanceof io.netty.buffer.AbstractByteBuf
ifeq 6
1: aload 0
checkcast io.netty.buffer.AbstractByteBuf
astore 3
start local 3 2: aload 3
iload 2
invokevirtual io.netty.buffer.AbstractByteBuf.ensureWritable0:(I)V
3: aload 3
aload 3
getfield io.netty.buffer.AbstractByteBuf.writerIndex:I
aload 1
aload 1
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.buffer.ByteBufUtil.writeUtf8:(Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I
istore 4
start local 4 4: aload 3
dup
getfield io.netty.buffer.AbstractByteBuf.writerIndex:I
iload 4
iadd
putfield io.netty.buffer.AbstractByteBuf.writerIndex:I
5: iload 4
ireturn
end local 4 end local 3 6: StackMap locals:
StackMap stack:
aload 0
instanceof io.netty.buffer.WrappedByteBuf
ifeq 9
7: aload 0
invokevirtual io.netty.buffer.ByteBuf.unwrap:()Lio/netty/buffer/ByteBuf;
astore 0
8: goto 0
9: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 3
start local 3 10: aload 0
aload 3
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
11: aload 3
arraylength
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 buf Lio/netty/buffer/ByteBuf;
0 12 1 seq Ljava/lang/CharSequence;
0 12 2 reserveBytes I
2 6 3 byteBuf Lio/netty/buffer/AbstractByteBuf;
4 6 4 written I
10 12 3 bytes [B
MethodParameters:
Name Flags
buf
seq
reserveBytes
static int writeUtf8(io.netty.buffer.AbstractByteBuf, int, java.lang.CharSequence, int);
descriptor: (Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
istore 4
start local 4 1: iconst_0
istore 5
start local 5 2: goto 36
3: StackMap locals: int int
StackMap stack:
aload 2
iload 5
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 6
start local 6 4: iload 6
sipush 128
if_icmpge 7
5: aload 0
iload 1
iinc 1 1
iload 6
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
6: goto 35
StackMap locals: int
StackMap stack:
7: iload 6
sipush 2048
if_icmpge 11
8: aload 0
iload 1
iinc 1 1
sipush 192
iload 6
bipush 6
ishr
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
9: aload 0
iload 1
iinc 1 1
sipush 128
iload 6
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
10: goto 35
StackMap locals:
StackMap stack:
11: iload 6
invokestatic io.netty.util.internal.StringUtil.isSurrogate:(C)Z
ifeq 32
12: iload 6
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifne 15
13: aload 0
iload 1
iinc 1 1
bipush 63
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
14: goto 35
15: StackMap locals:
StackMap stack:
aload 2
iinc 5 1
iload 5
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 7
start local 7 16: goto 20
end local 7 StackMap locals:
StackMap stack: java.lang.IndexOutOfBoundsException
17: pop
18: aload 0
iload 1
iinc 1 1
bipush 63
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
19: goto 37
start local 7 20: StackMap locals: int
StackMap stack:
iload 7
invokestatic java.lang.Character.isLowSurrogate:(C)Z
ifne 26
21: aload 0
iload 1
iinc 1 1
bipush 63
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
22: aload 0
iload 1
iinc 1 1
iload 7
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifeq 23
bipush 63
goto 24
StackMap locals: io.netty.buffer.AbstractByteBuf int java.lang.CharSequence int int int int int
StackMap stack: io.netty.buffer.AbstractByteBuf int
23: iload 7
StackMap locals: io.netty.buffer.AbstractByteBuf int java.lang.CharSequence int int int int int
StackMap stack: io.netty.buffer.AbstractByteBuf int int
24: invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
25: goto 35
26: StackMap locals:
StackMap stack:
iload 6
iload 7
invokestatic java.lang.Character.toCodePoint:(CC)I
istore 8
start local 8 27: aload 0
iload 1
iinc 1 1
sipush 240
iload 8
bipush 18
ishr
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
28: aload 0
iload 1
iinc 1 1
sipush 128
iload 8
bipush 12
ishr
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
29: aload 0
iload 1
iinc 1 1
sipush 128
iload 8
bipush 6
ishr
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
30: aload 0
iload 1
iinc 1 1
sipush 128
iload 8
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
end local 8 end local 7 31: goto 35
32: StackMap locals:
StackMap stack:
aload 0
iload 1
iinc 1 1
sipush 224
iload 6
bipush 12
ishr
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
33: aload 0
iload 1
iinc 1 1
sipush 128
iload 6
bipush 6
ishr
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
34: aload 0
iload 1
iinc 1 1
sipush 128
iload 6
bipush 63
iand
ior
i2b
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
end local 6 35: StackMap locals:
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
36: iload 5
iload 3
if_icmplt 3
end local 5 37: StackMap locals:
StackMap stack:
iload 1
iload 4
isub
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 38 0 buffer Lio/netty/buffer/AbstractByteBuf;
0 38 1 writerIndex I
0 38 2 seq Ljava/lang/CharSequence;
0 38 3 len I
1 38 4 oldWriterIndex I
2 37 5 i I
4 35 6 c C
16 17 7 c2 C
20 31 7 c2 C
27 31 8 codePoint I
Exception table:
from to target type
15 16 17 Class java.lang.IndexOutOfBoundsException
MethodParameters:
Name Flags
buffer
writerIndex
seq
len
public static int utf8MaxBytes(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
getstatic io.netty.buffer.ByteBufUtil.MAX_BYTES_PER_CHAR_UTF8:I
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 seqLength I
MethodParameters:
Name Flags
seqLength final
public static int utf8MaxBytes(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.lang.CharSequence.length:()I
invokestatic io.netty.buffer.ByteBufUtil.utf8MaxBytes:(I)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 seq Ljava/lang/CharSequence;
MethodParameters:
Name Flags
seq
public static int utf8Bytes(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
instanceof io.netty.util.AsciiString
ifeq 2
1: aload 0
invokeinterface java.lang.CharSequence.length:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.lang.CharSequence.length:()I
istore 1
start local 1 3: iconst_0
istore 2
start local 2 4: goto 6
5: StackMap locals: int int
StackMap stack:
iinc 2 1
6: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmpge 7
aload 0
iload 2
invokeinterface java.lang.CharSequence.charAt:(I)C
sipush 128
if_icmplt 5
7: StackMap locals:
StackMap stack:
iload 2
iload 1
if_icmpge 8
iload 2
aload 0
iload 2
iload 1
invokestatic io.netty.buffer.ByteBufUtil.utf8Bytes:(Ljava/lang/CharSequence;II)I
iadd
goto 9
StackMap locals:
StackMap stack:
8: iload 2
StackMap locals:
StackMap stack: int
9: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 seq Ljava/lang/CharSequence;
3 10 1 seqLength I
4 10 2 i I
MethodParameters:
Name Flags
seq final
private static int utf8Bytes(java.lang.CharSequence, int, int);
descriptor: (Ljava/lang/CharSequence;II)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: iload 1
istore 4
start local 4 2: goto 23
3: StackMap locals: int int
StackMap stack:
aload 0
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 5
start local 5 4: iload 5
sipush 2048
if_icmpge 7
5: iload 3
bipush 127
iload 5
isub
bipush 31
iushr
iconst_1
iadd
iadd
istore 3
6: goto 22
StackMap locals: int
StackMap stack:
7: iload 5
invokestatic io.netty.util.internal.StringUtil.isSurrogate:(C)Z
ifeq 21
8: iload 5
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifne 11
9: iinc 3 1
10: goto 22
11: StackMap locals:
StackMap stack:
aload 0
iinc 4 1
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
istore 6
start local 6 12: goto 16
end local 6 StackMap locals:
StackMap stack: java.lang.IndexOutOfBoundsException
13: pop
14: iinc 3 1
15: goto 24
start local 6 16: StackMap locals: int
StackMap stack:
iload 6
invokestatic java.lang.Character.isLowSurrogate:(C)Z
ifne 19
17: iinc 3 2
18: goto 22
19: StackMap locals:
StackMap stack:
iinc 3 4
end local 6 20: goto 22
21: StackMap locals:
StackMap stack:
iinc 3 3
end local 5 22: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
23: iload 4
iload 2
if_icmplt 3
end local 4 24: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 seq Ljava/lang/CharSequence;
0 25 1 start I
0 25 2 length I
1 25 3 encodedLength I
2 24 4 i I
4 22 5 c C
12 13 6 c2 C
16 20 6 c2 C
Exception table:
from to target type
11 12 13 Class java.lang.IndexOutOfBoundsException
MethodParameters:
Name Flags
seq final
start final
length final
public static io.netty.buffer.ByteBuf writeAscii(io.netty.buffer.ByteBufAllocator, java.lang.CharSequence);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Ljava/lang/CharSequence;)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.lang.CharSequence.length:()I
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 2
start local 2 1: aload 2
aload 1
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 3 1 seq Ljava/lang/CharSequence;
1 3 2 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
alloc
seq
public static int writeAscii(io.netty.buffer.ByteBuf, java.lang.CharSequence);
descriptor: (Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.lang.CharSequence.length:()I
istore 2
start local 2 1: aload 1
instanceof io.netty.util.AsciiString
ifeq 5
2: aload 1
checkcast io.netty.util.AsciiString
astore 3
start local 3 3: aload 0
aload 3
invokevirtual io.netty.util.AsciiString.array:()[B
aload 3
invokevirtual io.netty.util.AsciiString.arrayOffset:()I
iload 2
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
end local 3 4: goto 17
5: StackMap locals: int
StackMap stack:
aload 0
instanceof io.netty.buffer.AbstractByteBuf
ifeq 11
6: aload 0
checkcast io.netty.buffer.AbstractByteBuf
astore 3
start local 3 7: aload 3
iload 2
invokevirtual io.netty.buffer.AbstractByteBuf.ensureWritable0:(I)V
8: aload 3
aload 3
getfield io.netty.buffer.AbstractByteBuf.writerIndex:I
aload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil.writeAscii:(Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I
istore 4
start local 4 9: aload 3
dup
getfield io.netty.buffer.AbstractByteBuf.writerIndex:I
iload 4
iadd
putfield io.netty.buffer.AbstractByteBuf.writerIndex:I
10: iload 4
ireturn
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 0
instanceof io.netty.buffer.WrappedByteBuf
ifeq 14
12: aload 0
invokevirtual io.netty.buffer.ByteBuf.unwrap:()Lio/netty/buffer/ByteBuf;
astore 0
13: goto 5
14: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 3
start local 3 15: aload 0
aload 3
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
16: aload 3
arraylength
ireturn
end local 3 17: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 buf Lio/netty/buffer/ByteBuf;
0 18 1 seq Ljava/lang/CharSequence;
1 18 2 len I
3 4 3 asciiString Lio/netty/util/AsciiString;
7 11 3 byteBuf Lio/netty/buffer/AbstractByteBuf;
9 11 4 written I
15 17 3 bytes [B
MethodParameters:
Name Flags
buf
seq
static int writeAscii(io.netty.buffer.AbstractByteBuf, int, java.lang.CharSequence, int);
descriptor: (Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iconst_0
istore 4
start local 4 1: goto 4
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
iinc 1 1
aload 2
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
invokestatic io.netty.util.AsciiString.c2b:(C)B
invokevirtual io.netty.buffer.AbstractByteBuf._setByte:(II)V
3: iinc 4 1
StackMap locals:
StackMap stack:
4: iload 4
iload 3
if_icmplt 2
end local 4 5: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 buffer Lio/netty/buffer/AbstractByteBuf;
0 6 1 writerIndex I
0 6 2 seq Ljava/lang/CharSequence;
0 6 3 len I
1 5 4 i I
MethodParameters:
Name Flags
buffer
writerIndex
seq
len
public static io.netty.buffer.ByteBuf encodeString(io.netty.buffer.ByteBufAllocator, java.nio.CharBuffer, java.nio.charset.Charset);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
aload 1
aload 2
iconst_0
invokestatic io.netty.buffer.ByteBufUtil.encodeString0:(Lio/netty/buffer/ByteBufAllocator;ZLjava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 1 1 src Ljava/nio/CharBuffer;
0 1 2 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
alloc
src
charset
public static io.netty.buffer.ByteBuf encodeString(io.netty.buffer.ByteBufAllocator, java.nio.CharBuffer, java.nio.charset.Charset, int);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iconst_0
aload 1
aload 2
iload 3
invokestatic io.netty.buffer.ByteBufUtil.encodeString0:(Lio/netty/buffer/ByteBufAllocator;ZLjava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 1 1 src Ljava/nio/CharBuffer;
0 1 2 charset Ljava/nio/charset/Charset;
0 1 3 extraCapacity I
MethodParameters:
Name Flags
alloc
src
charset
extraCapacity
static io.netty.buffer.ByteBuf encodeString0(io.netty.buffer.ByteBufAllocator, boolean, java.nio.CharBuffer, java.nio.charset.Charset, int);
descriptor: (Lio/netty/buffer/ByteBufAllocator;ZLjava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=14, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 3
invokestatic io.netty.util.CharsetUtil.encoder:(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder;
astore 5
start local 5 1: aload 2
invokevirtual java.nio.CharBuffer.remaining:()I
i2d
aload 5
invokevirtual java.nio.charset.CharsetEncoder.maxBytesPerChar:()F
f2d
dmul
d2i
iload 4
iadd
istore 6
start local 6 2: iconst_1
istore 7
start local 7 3: iload 1
ifeq 6
4: aload 0
iload 6
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 8
start local 8 5: goto 7
end local 8 6: StackMap locals: java.nio.charset.CharsetEncoder int int
StackMap stack:
aload 0
iload 6
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 8
start local 8 7: StackMap locals: io.netty.buffer.ByteBuf
StackMap stack:
aload 8
aload 8
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 6
invokevirtual io.netty.buffer.ByteBuf.internalNioBuffer:(II)Ljava/nio/ByteBuffer;
astore 9
start local 9 8: aload 9
invokevirtual java.nio.ByteBuffer.position:()I
istore 10
start local 10 9: aload 5
aload 2
aload 9
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 11
start local 11 10: aload 11
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 12
11: aload 11
invokevirtual java.nio.charset.CoderResult.throwException:()V
12: StackMap locals: java.nio.ByteBuffer int java.nio.charset.CoderResult
StackMap stack:
aload 5
aload 9
invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 11
13: aload 11
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 15
14: aload 11
invokevirtual java.nio.charset.CoderResult.throwException:()V
15: StackMap locals:
StackMap stack:
aload 8
aload 8
invokevirtual io.netty.buffer.ByteBuf.writerIndex:()I
aload 9
invokevirtual java.nio.ByteBuffer.position:()I
iadd
iload 10
isub
invokevirtual io.netty.buffer.ByteBuf.writerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
16: iconst_0
istore 7
17: aload 8
astore 13
18: iload 7
ifeq 20
19: aload 8
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
20: StackMap locals: io.netty.buffer.ByteBufAllocator int java.nio.CharBuffer java.nio.charset.Charset int java.nio.charset.CharsetEncoder int int io.netty.buffer.ByteBuf java.nio.ByteBuffer int java.nio.charset.CoderResult top io.netty.buffer.ByteBuf
StackMap stack:
aload 13
areturn
end local 11 end local 10 end local 9 21: StackMap locals: io.netty.buffer.ByteBufAllocator int java.nio.CharBuffer java.nio.charset.Charset int java.nio.charset.CharsetEncoder int int io.netty.buffer.ByteBuf
StackMap stack: java.nio.charset.CharacterCodingException
astore 9
start local 9 22: new java.lang.IllegalStateException
dup
aload 9
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 9 23: StackMap locals:
StackMap stack: java.lang.Throwable
astore 12
24: iload 7
ifeq 26
25: aload 8
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
26: StackMap locals: io.netty.buffer.ByteBufAllocator int java.nio.CharBuffer java.nio.charset.Charset int java.nio.charset.CharsetEncoder int int io.netty.buffer.ByteBuf top top top java.lang.Throwable
StackMap stack:
aload 12
athrow
end local 8 end local 7 end local 6 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 27 0 alloc Lio/netty/buffer/ByteBufAllocator;
0 27 1 enforceHeap Z
0 27 2 src Ljava/nio/CharBuffer;
0 27 3 charset Ljava/nio/charset/Charset;
0 27 4 extraCapacity I
1 27 5 encoder Ljava/nio/charset/CharsetEncoder;
2 27 6 length I
3 27 7 release Z
5 6 8 dst Lio/netty/buffer/ByteBuf;
7 27 8 dst Lio/netty/buffer/ByteBuf;
8 21 9 dstBuf Ljava/nio/ByteBuffer;
9 21 10 pos I
10 21 11 cr Ljava/nio/charset/CoderResult;
22 23 9 x Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
7 18 21 Class java.nio.charset.CharacterCodingException
7 18 23 any
21 23 23 any
MethodParameters:
Name Flags
alloc
enforceHeap
src
charset
extraCapacity
static java.lang.String decodeString(io.netty.buffer.ByteBuf, int, int, java.nio.charset.Charset);
descriptor: (Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 2
ifne 2
1: ldc ""
areturn
2: StackMap locals:
StackMap stack:
aload 3
invokestatic io.netty.util.CharsetUtil.decoder:(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetDecoder;
astore 4
start local 4 3: iload 2
i2d
aload 4
invokevirtual java.nio.charset.CharsetDecoder.maxCharsPerByte:()F
f2d
dmul
d2i
istore 5
start local 5 4: getstatic io.netty.buffer.ByteBufUtil.CHAR_BUFFERS:Lio/netty/util/concurrent/FastThreadLocal;
invokevirtual io.netty.util.concurrent.FastThreadLocal.get:()Ljava/lang/Object;
checkcast java.nio.CharBuffer
astore 6
start local 6 5: aload 6
invokevirtual java.nio.CharBuffer.length:()I
iload 5
if_icmpge 10
6: iload 5
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 6
7: iload 5
getstatic io.netty.buffer.ByteBufUtil.MAX_CHAR_BUFFER_SIZE:I
if_icmpgt 11
8: getstatic io.netty.buffer.ByteBufUtil.CHAR_BUFFERS:Lio/netty/util/concurrent/FastThreadLocal;
aload 6
invokevirtual io.netty.util.concurrent.FastThreadLocal.set:(Ljava/lang/Object;)V
9: goto 11
10: StackMap locals: java.nio.charset.CharsetDecoder int java.nio.CharBuffer
StackMap stack:
aload 6
invokevirtual java.nio.CharBuffer.clear:()Ljava/nio/Buffer;
pop
11: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.nioBufferCount:()I
iconst_1
if_icmpne 14
12: aload 4
aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.nioBuffer:(II)Ljava/nio/ByteBuffer;
aload 6
invokestatic io.netty.buffer.ByteBufUtil.decodeString:(Ljava/nio/charset/CharsetDecoder;Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)V
13: goto 22
14: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.alloc:()Lio/netty/buffer/ByteBufAllocator;
iload 2
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 7
start local 7 15: aload 7
aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
pop
16: aload 4
aload 7
aload 7
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 2
invokevirtual io.netty.buffer.ByteBuf.internalNioBuffer:(II)Ljava/nio/ByteBuffer;
aload 6
invokestatic io.netty.buffer.ByteBufUtil.decodeString:(Ljava/nio/charset/CharsetDecoder;Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)V
17: goto 21
StackMap locals: io.netty.buffer.ByteBuf int int java.nio.charset.Charset java.nio.charset.CharsetDecoder int java.nio.CharBuffer io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
18: astore 8
19: aload 7
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
20: aload 8
athrow
21: StackMap locals:
StackMap stack:
aload 7
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
end local 7 22: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
end local 6 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 23 0 src Lio/netty/buffer/ByteBuf;
0 23 1 readerIndex I
0 23 2 len I
0 23 3 charset Ljava/nio/charset/Charset;
3 23 4 decoder Ljava/nio/charset/CharsetDecoder;
4 23 5 maxLength I
5 23 6 dst Ljava/nio/CharBuffer;
15 22 7 buffer Lio/netty/buffer/ByteBuf;
Exception table:
from to target type
15 18 18 any
MethodParameters:
Name Flags
src
readerIndex
len
charset
private static void decodeString(java.nio.charset.CharsetDecoder, java.nio.ByteBuffer, java.nio.CharBuffer);
descriptor: (Ljava/nio/charset/CharsetDecoder;Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 3
start local 3 1: aload 3
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 3
2: aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
3: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 0
aload 2
invokevirtual java.nio.charset.CharsetDecoder.flush:(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult;
astore 3
4: aload 3
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifne 9
5: aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 3 6: goto 9
StackMap locals: java.nio.charset.CharsetDecoder java.nio.ByteBuffer java.nio.CharBuffer
StackMap stack: java.nio.charset.CharacterCodingException
7: astore 3
start local 3 8: new java.lang.IllegalStateException
dup
aload 3
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 9: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 decoder Ljava/nio/charset/CharsetDecoder;
0 10 1 src Ljava/nio/ByteBuffer;
0 10 2 dst Ljava/nio/CharBuffer;
1 6 3 cr Ljava/nio/charset/CoderResult;
8 9 3 x Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
0 6 7 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
decoder
src
dst
public static io.netty.buffer.ByteBuf threadLocalDirectBuffer();
descriptor: ()Lio/netty/buffer/ByteBuf;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic io.netty.buffer.ByteBufUtil.THREAD_LOCAL_BUFFER_SIZE:I
ifgt 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
invokestatic io.netty.util.internal.PlatformDependent.hasUnsafe:()Z
ifeq 4
3: invokestatic io.netty.buffer.ByteBufUtil$ThreadLocalUnsafeDirectByteBuf.newInstance:()Lio/netty/buffer/ByteBufUtil$ThreadLocalUnsafeDirectByteBuf;
areturn
4: StackMap locals:
StackMap stack:
invokestatic io.netty.buffer.ByteBufUtil$ThreadLocalDirectByteBuf.newInstance:()Lio/netty/buffer/ByteBufUtil$ThreadLocalDirectByteBuf;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static byte[] getBytes(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokestatic io.netty.buffer.ByteBufUtil.getBytes:(Lio/netty/buffer/ByteBuf;II)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
buf
public static byte[] getBytes(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
iconst_1
invokestatic io.netty.buffer.ByteBufUtil.getBytes:(Lio/netty/buffer/ByteBuf;IIZ)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Lio/netty/buffer/ByteBuf;
0 1 1 start I
0 1 2 length I
MethodParameters:
Name Flags
buf
start
length
public static byte[] getBytes(io.netty.buffer.ByteBuf, int, int, boolean);
descriptor: (Lio/netty/buffer/ByteBuf;IIZ)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 2
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
invokestatic io.netty.util.internal.MathUtil.isOutOfBounds:(III)Z
ifeq 4
1: new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "expected: 0 <= start("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") <= start + length("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
2: ldc ") <= "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "buf.capacity("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.hasArray:()Z
ifeq 9
5: iload 3
ifne 6
iload 1
ifne 6
iload 2
aload 0
invokevirtual io.netty.buffer.ByteBuf.capacity:()I
if_icmpeq 8
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
iload 1
iadd
istore 4
start local 4 7: aload 0
invokevirtual io.netty.buffer.ByteBuf.array:()[B
iload 4
iload 4
iload 2
iadd
invokestatic java.util.Arrays.copyOfRange:([BII)[B
areturn
end local 4 8: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.array:()[B
areturn
9: StackMap locals:
StackMap stack:
iload 2
newarray 8
astore 4
start local 4 10: aload 0
iload 1
aload 4
invokevirtual io.netty.buffer.ByteBuf.getBytes:(I[B)Lio/netty/buffer/ByteBuf;
pop
11: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 buf Lio/netty/buffer/ByteBuf;
0 12 1 start I
0 12 2 length I
0 12 3 copy Z
7 8 4 baseOffset I
10 12 4 v [B
MethodParameters:
Name Flags
buf
start
length
copy
public static void copy(io.netty.util.AsciiString, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/util/AsciiString;Lio/netty/buffer/ByteBuf;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
aload 1
aload 0
invokevirtual io.netty.util.AsciiString.length:()I
invokestatic io.netty.buffer.ByteBufUtil.copy:(Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 src Lio/netty/util/AsciiString;
0 2 1 dst Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
src
dst
public static void copy(io.netty.util.AsciiString, int, io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;II)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iload 1
iload 4
aload 0
invokevirtual io.netty.util.AsciiString.length:()I
invokestatic io.netty.util.internal.MathUtil.isOutOfBounds:(III)Z
ifeq 4
1: new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "expected: 0 <= srcIdx("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") <= srcIdx + length("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") <= srcLen("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.netty.util.AsciiString.length:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
ldc "dst"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.buffer.ByteBuf
iload 3
aload 0
invokevirtual io.netty.util.AsciiString.array:()[B
iload 1
aload 0
invokevirtual io.netty.util.AsciiString.arrayOffset:()I
iadd
iload 4
invokevirtual io.netty.buffer.ByteBuf.setBytes:(I[BII)Lio/netty/buffer/ByteBuf;
pop
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 src Lio/netty/util/AsciiString;
0 6 1 srcIdx I
0 6 2 dst Lio/netty/buffer/ByteBuf;
0 6 3 dstIdx I
0 6 4 length I
MethodParameters:
Name Flags
src
srcIdx
dst
dstIdx
length
public static void copy(io.netty.util.AsciiString, int, io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;I)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 1
iload 3
aload 0
invokevirtual io.netty.util.AsciiString.length:()I
invokestatic io.netty.util.internal.MathUtil.isOutOfBounds:(III)Z
ifeq 4
1: new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "expected: 0 <= srcIdx("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") <= srcIdx + length("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ") <= srcLen("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual io.netty.util.AsciiString.length:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
bipush 41
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 2
ldc "dst"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.buffer.ByteBuf
aload 0
invokevirtual io.netty.util.AsciiString.array:()[B
iload 1
aload 0
invokevirtual io.netty.util.AsciiString.arrayOffset:()I
iadd
iload 3
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 src Lio/netty/util/AsciiString;
0 6 1 srcIdx I
0 6 2 dst Lio/netty/buffer/ByteBuf;
0 6 3 length I
MethodParameters:
Name Flags
src
srcIdx
dst
length
public static java.lang.String prettyHexDump(io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/buffer/ByteBuf;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokestatic io.netty.buffer.ByteBufUtil.prettyHexDump:(Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
buffer
public static java.lang.String prettyHexDump(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil$HexUtil.prettyHexDump:(Lio/netty/buffer/ByteBuf;II)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer Lio/netty/buffer/ByteBuf;
0 1 1 offset I
0 1 2 length I
MethodParameters:
Name Flags
buffer
offset
length
public static void appendPrettyHexDump(java.lang.StringBuilder, io.netty.buffer.ByteBuf);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 1
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
invokestatic io.netty.buffer.ByteBufUtil.appendPrettyHexDump:(Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;II)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 dump Ljava/lang/StringBuilder;
0 2 1 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
dump
buf
public static void appendPrettyHexDump(java.lang.StringBuilder, io.netty.buffer.ByteBuf, int, int);
descriptor: (Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;II)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
invokestatic io.netty.buffer.ByteBufUtil$HexUtil.appendPrettyHexDump:(Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;II)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 dump Ljava/lang/StringBuilder;
0 2 1 buf Lio/netty/buffer/ByteBuf;
0 2 2 offset I
0 2 3 length I
MethodParameters:
Name Flags
dump
buf
offset
length
public static boolean isText(io.netty.buffer.ByteBuf, java.nio.charset.Charset);
descriptor: (Lio/netty/buffer/ByteBuf;Ljava/nio/charset/Charset;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
aload 1
invokestatic io.netty.buffer.ByteBufUtil.isText:(Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf Lio/netty/buffer/ByteBuf;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
buf
charset
public static boolean isText(io.netty.buffer.ByteBuf, int, int, java.nio.charset.Charset);
descriptor: (Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
ldc "buf"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
1: aload 3
ldc "charset"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
pop
2: aload 0
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
aload 0
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
iadd
istore 4
start local 4 3: iload 1
iflt 4
iload 2
iflt 4
iload 1
iload 4
iload 2
isub
if_icmple 5
4: StackMap locals: int
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
new java.lang.StringBuilder
dup
ldc "index: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " length: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IndexOutOfBoundsException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 3
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
ifeq 7
6: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil.isUtf8:(Lio/netty/buffer/ByteBuf;II)Z
ireturn
7: StackMap locals:
StackMap stack:
aload 3
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
ifeq 9
8: aload 0
iload 1
iload 2
invokestatic io.netty.buffer.ByteBufUtil.isAscii:(Lio/netty/buffer/ByteBuf;II)Z
ireturn
9: StackMap locals:
StackMap stack:
aload 3
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokestatic io.netty.util.CharsetUtil.decoder:(Ljava/nio/charset/Charset;Ljava/nio/charset/CodingErrorAction;Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
astore 5
start local 5 10: aload 0
invokevirtual io.netty.buffer.ByteBuf.nioBufferCount:()I
iconst_1
if_icmpne 13
11: aload 5
aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.nioBuffer:(II)Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
pop
12: goto 21
13: StackMap locals: java.nio.charset.CharsetDecoder
StackMap stack:
aload 0
invokevirtual io.netty.buffer.ByteBuf.alloc:()Lio/netty/buffer/ByteBufAllocator;
iload 2
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
start local 6 14: aload 6
aload 0
iload 1
iload 2
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
pop
15: aload 5
aload 6
aload 6
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 2
invokevirtual io.netty.buffer.ByteBuf.internalNioBuffer:(II)Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
pop
16: goto 20
StackMap locals: io.netty.buffer.ByteBuf int int java.nio.charset.Charset int java.nio.charset.CharsetDecoder io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
17: astore 7
18: aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
19: aload 7
athrow
20: StackMap locals:
StackMap stack:
aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
end local 6 21: StackMap locals:
StackMap stack:
iconst_1
ireturn
22: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
pop
23: iconst_0
ireturn
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 24 0 buf Lio/netty/buffer/ByteBuf;
0 24 1 index I
0 24 2 length I
0 24 3 charset Ljava/nio/charset/Charset;
3 24 4 maxIndex I
10 24 5 decoder Ljava/nio/charset/CharsetDecoder;
14 21 6 heapBuffer Lio/netty/buffer/ByteBuf;
Exception table:
from to target type
14 17 17 any
10 21 22 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
buf
index
length
charset
private static boolean isAscii(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
getstatic io.netty.buffer.ByteBufUtil.FIND_NON_ASCII:Lio/netty/util/ByteProcessor;
invokevirtual io.netty.buffer.ByteBuf.forEachByte:(IILio/netty/util/ByteProcessor;)I
iconst_m1
if_icmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buf Lio/netty/buffer/ByteBuf;
0 2 1 index I
0 2 2 length I
MethodParameters:
Name Flags
buf
index
length
private static boolean isUtf8(io.netty.buffer.ByteBuf, int, int);
descriptor: (Lio/netty/buffer/ByteBuf;II)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
iadd
istore 3
start local 3 1: goto 37
2: StackMap locals: int
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 4
start local 4 3: iload 4
sipush 128
iand
ifne 5
4: goto 37
5: StackMap locals: int
StackMap stack:
iload 4
sipush 224
iand
sipush 192
if_icmpne 13
6: iload 1
iload 3
if_icmplt 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 5
start local 5 9: iload 5
sipush 192
iand
sipush 128
if_icmpeq 11
10: iconst_0
ireturn
11: StackMap locals: int
StackMap stack:
iload 4
sipush 255
iand
sipush 194
if_icmpge 37
12: iconst_0
ireturn
end local 5 13: StackMap locals:
StackMap stack:
iload 4
sipush 240
iand
sipush 224
if_icmpne 24
14: iload 1
iload 3
iconst_2
isub
if_icmple 16
15: iconst_0
ireturn
16: StackMap locals:
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 5
start local 5 17: aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 6
start local 6 18: iload 5
sipush 192
iand
sipush 128
if_icmpne 19
iload 6
sipush 192
iand
sipush 128
if_icmpeq 20
19: StackMap locals: int int
StackMap stack:
iconst_0
ireturn
20: StackMap locals:
StackMap stack:
iload 4
bipush 15
iand
ifne 22
iload 5
sipush 255
iand
sipush 160
if_icmpge 22
21: iconst_0
ireturn
22: StackMap locals:
StackMap stack:
iload 4
bipush 15
iand
bipush 13
if_icmpne 37
iload 5
sipush 255
iand
sipush 159
if_icmple 37
23: iconst_0
ireturn
end local 6 end local 5 24: StackMap locals:
StackMap stack:
iload 4
sipush 248
iand
sipush 240
if_icmpne 36
25: iload 1
iload 3
iconst_3
isub
if_icmple 27
26: iconst_0
ireturn
27: StackMap locals:
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 5
start local 5 28: aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 6
start local 6 29: aload 0
iload 1
iinc 1 1
invokevirtual io.netty.buffer.ByteBuf.getByte:(I)B
istore 7
start local 7 30: iload 5
sipush 192
iand
sipush 128
if_icmpne 31
iload 6
sipush 192
iand
sipush 128
if_icmpne 31
iload 7
sipush 192
iand
sipush 128
if_icmpeq 32
31: StackMap locals: int int int
StackMap stack:
iconst_0
ireturn
32: StackMap locals:
StackMap stack:
iload 4
sipush 255
iand
sipush 244
if_icmpgt 35
33: iload 4
sipush 255
iand
sipush 240
if_icmpne 34
iload 5
sipush 255
iand
sipush 144
if_icmplt 35
34: StackMap locals:
StackMap stack:
iload 4
sipush 255
iand
sipush 244
if_icmpne 37
iload 5
sipush 255
iand
sipush 143
if_icmple 37
35: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 7 end local 6 end local 5 36: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 37: StackMap locals:
StackMap stack:
iload 1
iload 3
if_icmplt 2
38: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 39 0 buf Lio/netty/buffer/ByteBuf;
0 39 1 index I
0 39 2 length I
1 39 3 endIndex I
3 37 4 b1 B
9 13 5 b2 B
17 24 5 b2 B
28 36 5 b2 B
18 24 6 b3 B
29 36 6 b3 B
30 36 7 b4 B
MethodParameters:
Name Flags
buf
index
length
static void readBytes(io.netty.buffer.ByteBufAllocator, java.nio.ByteBuffer, int, int, java.io.OutputStream);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;IILjava/io/OutputStream;)V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=10, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 3
1: aload 4
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
iload 2
aload 1
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
iadd
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
2: goto 17
3: StackMap locals:
StackMap stack:
iload 3
sipush 8192
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 4: aload 1
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
iload 2
invokevirtual java.nio.Buffer.position:(I)Ljava/nio/Buffer;
pop
5: aload 0
invokeinterface io.netty.buffer.ByteBufAllocator.isDirectBufferPooled:()Z
ifeq 16
6: aload 0
iload 5
invokeinterface io.netty.buffer.ByteBufAllocator.heapBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
start local 6 7: aload 6
invokevirtual io.netty.buffer.ByteBuf.array:()[B
astore 7
start local 7 8: aload 6
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
istore 8
start local 8 9: aload 1
aload 7
iload 8
iload 5
aload 4
iload 3
invokestatic io.netty.buffer.ByteBufUtil.getBytes:(Ljava/nio/ByteBuffer;[BIILjava/io/OutputStream;I)V
end local 8 end local 7 10: goto 14
StackMap locals: io.netty.buffer.ByteBufAllocator java.nio.ByteBuffer int int java.io.OutputStream int io.netty.buffer.ByteBuf
StackMap stack: java.lang.Throwable
11: astore 9
12: aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
13: aload 9
athrow
14: StackMap locals:
StackMap stack:
aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
end local 6 15: goto 17
16: StackMap locals:
StackMap stack:
aload 1
iload 5
newarray 8
iconst_0
iload 5
aload 4
iload 3
invokestatic io.netty.buffer.ByteBufUtil.getBytes:(Ljava/nio/ByteBuffer;[BIILjava/io/OutputStream;I)V
end local 5 17: 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 18 0 allocator Lio/netty/buffer/ByteBufAllocator;
0 18 1 buffer Ljava/nio/ByteBuffer;
0 18 2 position I
0 18 3 length I
0 18 4 out Ljava/io/OutputStream;
4 17 5 chunkLen I
7 15 6 tmpBuf Lio/netty/buffer/ByteBuf;
8 10 7 tmp [B
9 10 8 offset I
Exception table:
from to target type
7 11 11 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
allocator
buffer
position
length
out
private static void getBytes(java.nio.ByteBuffer, byte[], int, int, java.io.OutputStream, int);
descriptor: (Ljava/nio/ByteBuffer;[BIILjava/io/OutputStream;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: StackMap locals:
StackMap stack:
iload 3
iload 5
invokestatic java.lang.Math.min:(II)I
istore 6
start local 6 1: aload 0
aload 1
iload 2
iload 6
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
2: aload 4
aload 1
iload 2
iload 6
invokevirtual java.io.OutputStream.write:([BII)V
3: iload 5
iload 6
isub
istore 5
end local 6 4: iload 5
5: ifgt 0
6: return
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 inBuffer Ljava/nio/ByteBuffer;
0 7 1 in [B
0 7 2 inOffset I
0 7 3 inLen I
0 7 4 out Ljava/io/OutputStream;
0 7 5 outLen I
1 4 6 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inBuffer
in
inOffset
inLen
out
outLen
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
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/buffer/ByteBufUtil;
}
SourceFile: "ByteBufUtil.java"
NestMembers:
io.netty.buffer.ByteBufUtil$1 io.netty.buffer.ByteBufUtil$2 io.netty.buffer.ByteBufUtil$HexUtil io.netty.buffer.ByteBufUtil$ThreadLocalDirectByteBuf io.netty.buffer.ByteBufUtil$ThreadLocalDirectByteBuf$1 io.netty.buffer.ByteBufUtil$ThreadLocalUnsafeDirectByteBuf io.netty.buffer.ByteBufUtil$ThreadLocalUnsafeDirectByteBuf$1
InnerClasses:
io.netty.buffer.ByteBufUtil$1
io.netty.buffer.ByteBufUtil$2
private final HexUtil = io.netty.buffer.ByteBufUtil$HexUtil of io.netty.buffer.ByteBufUtil
final ThreadLocalDirectByteBuf = io.netty.buffer.ByteBufUtil$ThreadLocalDirectByteBuf of io.netty.buffer.ByteBufUtil
final ThreadLocalUnsafeDirectByteBuf = io.netty.buffer.ByteBufUtil$ThreadLocalUnsafeDirectByteBuf of io.netty.buffer.ByteBufUtil
public IndexOfProcessor = io.netty.util.ByteProcessor$IndexOfProcessor of io.netty.util.ByteProcessor