public class io.undertow.server.XnioByteBufferPool implements io.undertow.connector.ByteBufferPool
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.undertow.server.XnioByteBufferPool
super_class: java.lang.Object
{
private final org.xnio.Pool<java.nio.ByteBuffer> pool;
descriptor: Lorg/xnio/Pool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/xnio/Pool<Ljava/nio/ByteBuffer;>;
private final io.undertow.connector.ByteBufferPool arrayBackedPool;
descriptor: Lio/undertow/connector/ByteBufferPool;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bufferSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean direct;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.xnio.Pool<java.nio.ByteBuffer>);
descriptor: (Lorg/xnio/Pool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.undertow.server.XnioByteBufferPool.pool:Lorg/xnio/Pool;
2: aload 1
invokeinterface org.xnio.Pool.allocate:()Lorg/xnio/Pooled;
astore 2
start local 2 3: aload 0
aload 2
invokeinterface org.xnio.Pooled.getResource:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.remaining:()I
putfield io.undertow.server.XnioByteBufferPool.bufferSize:I
4: aload 0
aload 2
invokeinterface org.xnio.Pooled.getResource:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 5
iconst_0
goto 6
StackMap locals: io.undertow.server.XnioByteBufferPool org.xnio.Pool org.xnio.Pooled
StackMap stack: io.undertow.server.XnioByteBufferPool
5: iconst_1
StackMap locals: io.undertow.server.XnioByteBufferPool org.xnio.Pool org.xnio.Pooled
StackMap stack: io.undertow.server.XnioByteBufferPool int
6: putfield io.undertow.server.XnioByteBufferPool.direct:Z
7: aload 2
invokeinterface org.xnio.Pooled.free:()V
8: aload 0
getfield io.undertow.server.XnioByteBufferPool.direct:Z
ifeq 11
9: aload 0
new io.undertow.server.DefaultByteBufferPool
dup
iconst_0
aload 0
getfield io.undertow.server.XnioByteBufferPool.bufferSize:I
invokespecial io.undertow.server.DefaultByteBufferPool.<init>:(ZI)V
putfield io.undertow.server.XnioByteBufferPool.arrayBackedPool:Lio/undertow/connector/ByteBufferPool;
10: goto 12
11: StackMap locals:
StackMap stack:
aload 0
aload 0
putfield io.undertow.server.XnioByteBufferPool.arrayBackedPool:Lio/undertow/connector/ByteBufferPool;
12: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/undertow/server/XnioByteBufferPool;
0 13 1 pool Lorg/xnio/Pool<Ljava/nio/ByteBuffer;>;
3 13 2 buf Lorg/xnio/Pooled<Ljava/nio/ByteBuffer;>;
Signature: (Lorg/xnio/Pool<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
pool
public io.undertow.connector.PooledByteBuffer allocate();
descriptor: ()Lio/undertow/connector/PooledByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.XnioByteBufferPool.pool:Lorg/xnio/Pool;
invokeinterface org.xnio.Pool.allocate:()Lorg/xnio/Pooled;
astore 1
start local 1 1: new io.undertow.server.XnioByteBufferPool$1
dup
aload 0
aload 1
invokespecial io.undertow.server.XnioByteBufferPool$1.<init>:(Lio/undertow/server/XnioByteBufferPool;Lorg/xnio/Pooled;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/server/XnioByteBufferPool;
1 2 1 buf Lorg/xnio/Pooled<Ljava/nio/ByteBuffer;>;
public io.undertow.connector.ByteBufferPool getArrayBackedPool();
descriptor: ()Lio/undertow/connector/ByteBufferPool;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.XnioByteBufferPool.arrayBackedPool:Lio/undertow/connector/ByteBufferPool;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/XnioByteBufferPool;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/XnioByteBufferPool;
public int getBufferSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.XnioByteBufferPool.bufferSize:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/XnioByteBufferPool;
public boolean isDirect();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.XnioByteBufferPool.direct:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/XnioByteBufferPool;
}
SourceFile: "XnioByteBufferPool.java"
NestMembers:
io.undertow.server.XnioByteBufferPool$1
InnerClasses:
io.undertow.server.XnioByteBufferPool$1