public class examples.BufferExamples
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: examples.BufferExamples
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lexamples/BufferExamples;
public void example1();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic io.vertx.core.buffer.Buffer.buffer:()Lio/vertx/core/buffer/Buffer;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/BufferExamples;
public void example2();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "some string"
invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/BufferExamples;
public void example3();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "some string"
ldc "UTF-16"
invokestatic io.vertx.core.buffer.Buffer.buffer:(Ljava/lang/String;Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/BufferExamples;
public void example5();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: sipush 10000
invokestatic io.vertx.core.buffer.Buffer.buffer:(I)Lio/vertx/core/buffer/Buffer;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lexamples/BufferExamples;
public void example6(io.vertx.core.net.NetSocket);
descriptor: (Lio/vertx/core/net/NetSocket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: invokestatic io.vertx.core.buffer.Buffer.buffer:()Lio/vertx/core/buffer/Buffer;
astore 2
start local 2 1: aload 2
bipush 123
invokeinterface io.vertx.core.buffer.Buffer.appendInt:(I)Lio/vertx/core/buffer/Buffer;
ldc "hello\n"
invokeinterface io.vertx.core.buffer.Buffer.appendString:(Ljava/lang/String;)Lio/vertx/core/buffer/Buffer;
pop
2: aload 1
aload 2
invokeinterface io.vertx.core.net.NetSocket.write:(Lio/vertx/core/buffer/Buffer;)Lio/vertx/core/net/NetSocket;
pop
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lexamples/BufferExamples;
0 4 1 socket Lio/vertx/core/net/NetSocket;
1 4 2 buff Lio/vertx/core/buffer/Buffer;
MethodParameters:
Name Flags
socket
public void example7();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: invokestatic io.vertx.core.buffer.Buffer.buffer:()Lio/vertx/core/buffer/Buffer;
astore 1
start local 1 1: aload 1
sipush 1000
bipush 123
invokeinterface io.vertx.core.buffer.Buffer.setInt:(II)Lio/vertx/core/buffer/Buffer;
pop
2: aload 1
iconst_0
ldc "hello"
invokeinterface io.vertx.core.buffer.Buffer.setString:(ILjava/lang/String;)Lio/vertx/core/buffer/Buffer;
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lexamples/BufferExamples;
1 4 1 buff Lio/vertx/core/buffer/Buffer;
public void example8();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic io.vertx.core.buffer.Buffer.buffer:()Lio/vertx/core/buffer/Buffer;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 5
3: StackMap locals: io.vertx.core.buffer.Buffer int
StackMap stack:
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "int value at "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " is "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
iload 2
invokeinterface io.vertx.core.buffer.Buffer.getInt:(I)I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: iinc 2 4
StackMap locals:
StackMap stack:
5: iload 2
aload 1
invokeinterface io.vertx.core.buffer.Buffer.length:()I
if_icmplt 3
end local 2 6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lexamples/BufferExamples;
1 7 1 buff Lio/vertx/core/buffer/Buffer;
2 6 2 i I
public void example9();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: sipush 128
invokestatic io.vertx.core.buffer.Buffer.buffer:(I)Lio/vertx/core/buffer/Buffer;
astore 1
start local 1 1: bipush 15
istore 2
start local 2 2: aload 1
iload 2
sipush 200
invokeinterface io.vertx.core.buffer.Buffer.setUnsignedByte:(IS)Lio/vertx/core/buffer/Buffer;
pop
3: getstatic java.lang.System.out:Ljava/io/PrintStream;
aload 1
iload 2
invokeinterface io.vertx.core.buffer.Buffer.getUnsignedByte:(I)S
invokevirtual java.io.PrintStream.println:(I)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lexamples/BufferExamples;
1 5 1 buff Lio/vertx/core/buffer/Buffer;
2 5 2 pos I
}
SourceFile: "BufferExamples.java"