public abstract class io.netty.channel.unix.SocketWritableByteChannel implements java.nio.channels.WritableByteChannel
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: io.netty.channel.unix.SocketWritableByteChannel
super_class: java.lang.Object
{
private final io.netty.channel.unix.FileDescriptor fd;
descriptor: Lio/netty/channel/unix/FileDescriptor;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(io.netty.channel.unix.FileDescriptor);
descriptor: (Lio/netty/channel/unix/FileDescriptor;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
ldc "fd"
invokestatic io.netty.util.internal.ObjectUtil.checkNotNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast io.netty.channel.unix.FileDescriptor
putfield io.netty.channel.unix.SocketWritableByteChannel.fd:Lio/netty/channel/unix/FileDescriptor;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/netty/channel/unix/SocketWritableByteChannel;
0 3 1 fd Lio/netty/channel/unix/FileDescriptor;
MethodParameters:
Name Flags
fd
public final int write(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.ByteBuffer.position:()I
istore 3
start local 3 1: aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
istore 4
start local 4 2: aload 1
invokevirtual java.nio.ByteBuffer.isDirect:()Z
ifeq 5
3: aload 0
getfield io.netty.channel.unix.SocketWritableByteChannel.fd:Lio/netty/channel/unix/FileDescriptor;
aload 1
iload 3
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual io.netty.channel.unix.FileDescriptor.write:(Ljava/nio/ByteBuffer;II)I
istore 2
start local 2 4: goto 27
end local 2 5: StackMap locals: io.netty.channel.unix.SocketWritableByteChannel java.nio.ByteBuffer top int int
StackMap stack:
iload 4
iload 3
isub
istore 5
start local 5 6: aconst_null
astore 6
start local 6 7: iload 5
ifne 10
8: getstatic io.netty.buffer.Unpooled.EMPTY_BUFFER:Lio/netty/buffer/ByteBuf;
astore 6
9: goto 17
10: StackMap locals: int io.netty.buffer.ByteBuf
StackMap stack:
aload 0
invokevirtual io.netty.channel.unix.SocketWritableByteChannel.alloc:()Lio/netty/buffer/ByteBufAllocator;
astore 7
start local 7 11: aload 7
invokeinterface io.netty.buffer.ByteBufAllocator.isDirectBufferPooled:()Z
ifeq 14
12: aload 7
iload 5
invokeinterface io.netty.buffer.ByteBufAllocator.directBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
13: goto 17
14: StackMap locals: io.netty.buffer.ByteBufAllocator
StackMap stack:
invokestatic io.netty.buffer.ByteBufUtil.threadLocalDirectBuffer:()Lio/netty/buffer/ByteBuf;
astore 6
15: aload 6
ifnonnull 17
16: iload 5
invokestatic io.netty.buffer.Unpooled.directBuffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
end local 7 17: StackMap locals:
StackMap stack:
aload 6
aload 1
invokevirtual java.nio.ByteBuffer.duplicate:()Ljava/nio/ByteBuffer;
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf;
pop
18: aload 6
aload 6
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 5
invokevirtual io.netty.buffer.ByteBuf.internalNioBuffer:(II)Ljava/nio/ByteBuffer;
astore 7
start local 7 19: aload 0
getfield io.netty.channel.unix.SocketWritableByteChannel.fd:Lio/netty/channel/unix/FileDescriptor;
aload 7
aload 7
invokevirtual java.nio.ByteBuffer.position:()I
aload 7
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual io.netty.channel.unix.FileDescriptor.write:(Ljava/nio/ByteBuffer;II)I
istore 2
end local 7 start local 2 20: goto 25
end local 2 StackMap locals:
StackMap stack: java.lang.Throwable
21: astore 8
22: aload 6
ifnull 24
23: aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
24: StackMap locals: io.netty.channel.unix.SocketWritableByteChannel java.nio.ByteBuffer top int int int io.netty.buffer.ByteBuf top java.lang.Throwable
StackMap stack:
aload 8
athrow
start local 2 25: StackMap locals: io.netty.channel.unix.SocketWritableByteChannel java.nio.ByteBuffer int int int int io.netty.buffer.ByteBuf
StackMap stack:
aload 6
ifnull 27
26: aload 6
invokevirtual io.netty.buffer.ByteBuf.release:()Z
pop
end local 6 end local 5 27: StackMap locals:
StackMap stack:
iload 2
ifle 29
28: aload 1
iload 3
iload 2
iadd
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
29: StackMap locals:
StackMap stack:
iload 2
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/netty/channel/unix/SocketWritableByteChannel;
0 30 1 src Ljava/nio/ByteBuffer;
4 5 2 written I
20 21 2 written I
25 30 2 written I
1 30 3 position I
2 30 4 limit I
6 27 5 readableBytes I
7 27 6 buffer Lio/netty/buffer/ByteBuf;
11 17 7 alloc Lio/netty/buffer/ByteBufAllocator;
19 20 7 nioBuffer Ljava/nio/ByteBuffer;
Exception table:
from to target type
7 21 21 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
src
public final boolean isOpen();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.unix.SocketWritableByteChannel.fd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.isOpen:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/unix/SocketWritableByteChannel;
public final void close();
descriptor: ()V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.unix.SocketWritableByteChannel.fd:Lio/netty/channel/unix/FileDescriptor;
invokevirtual io.netty.channel.unix.FileDescriptor.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/unix/SocketWritableByteChannel;
Exceptions:
throws java.io.IOException
protected abstract io.netty.buffer.ByteBufAllocator alloc();
descriptor: ()Lio/netty/buffer/ByteBufAllocator;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
}
SourceFile: "SocketWritableByteChannel.java"