public class io.netty.handler.codec.compression.Lz4FrameEncoder extends io.netty.handler.codec.MessageToByteEncoder
{
static final int DEFAULT_MAX_ENCODE_SIZE;
private final int blockSize;
private final net.jpountz.lz.LZ4Compressor compressor;
private final io.netty.handler.codec.compression.ByteBufChecksum checksum;
private final int compressionLevel;
private io.netty.buffer.ByteBuf buffer;
private final int maxEncodeSize;
private volatile boolean finished;
private volatile io.netty.channel.ChannelHandlerContext ctx;
public void <init>()
{
io.netty.handler.codec.compression.Lz4FrameEncoder v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void <init>(boolean)>(0);
return;
}
public void <init>(boolean)
{
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.handler.codec.compression.Lz4XXHash v;
net.jpountz.lz.LZ4Factory v;
boolean v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: boolean;
v = staticinvoke <net.jpountz.lz.LZ4Factory: net.jpountz.lz.LZ4Factory fastestInstance()>();
v = new io.netty.handler.codec.compression.Lz4XXHash;
specialinvoke v.<io.netty.handler.codec.compression.Lz4XXHash32: void <init>(int)>(-1756908916);
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void <init>(net.jpountz.lz.LZ4Factory,boolean,int,java.util.zip.Checksum)>(v, v, 65536, v);
return;
}
public void <init>(net.jpountz.lz.LZ4Factory, boolean, int, java.util.zip.Checksum)
{
java.util.zip.Checksum v;
int v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
net.jpountz.lz.LZ4Factory v;
boolean v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: net.jpountz.lz.LZ4Factory;
v := @parameter: boolean;
v := @parameter: int;
v := @parameter: java.util.zip.Checksum;
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void <init>(net.jpountz.lz.LZ4Factory,boolean,int,java.util.zip.Checksum,int)>(v, v, v, v, 2147483647);
return;
}
public void <init>(net.jpountz.lz.LZ4Factory, boolean, int, java.util.zip.Checksum, int)
{
net.jpountz.lz.LZ4Compressor v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
net.jpountz.lz.LZ4Factory v;
io.netty.handler.codec.compression.ByteBufChecksum v;
java.util.zip.Checksum v;
int v, v, v, v;
boolean v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: net.jpountz.lz.LZ4Factory;
v := @parameter: boolean;
v := @parameter: int;
v := @parameter: java.util.zip.Checksum;
v := @parameter: int;
specialinvoke v.<io.netty.handler.codec.MessageToByteEncoder: void <init>()>();
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "factory");
staticinvoke <io.netty.util.internal.ObjectUtil: java.lang.Object checkNotNull(java.lang.Object,java.lang.String)>(v, "checksum");
if v == 0 goto label;
v = virtualinvoke v.<net.jpountz.lz.LZ4Factory: net.jpountz.lz.LZ4Compressor highCompressor()>();
goto label;
label:
v = virtualinvoke v.<net.jpountz.lz.LZ4Factory: net.jpountz.lz.LZ4Compressor fastCompressor()>();
label:
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: net.jpountz.lz.LZ4Compressor compressor> = v;
v = staticinvoke <io.netty.handler.codec.compression.ByteBufChecksum: io.netty.handler.codec.compression.ByteBufChecksum wrapChecksum(java.util.zip.Checksum)>(v);
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.handler.codec.compression.ByteBufChecksum checksum> = v;
v = staticinvoke <io.netty.handler.codec.compression.Lz4FrameEncoder: int compressionLevel(int)>(v);
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int compressionLevel> = v;
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int blockSize> = v;
v = staticinvoke <io.netty.util.internal.ObjectUtil: int checkPositive(int,java.lang.String)>(v, "maxEncodeSize");
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int maxEncodeSize> = v;
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean finished> = 0;
return;
}
private static int compressionLevel(int)
{
java.lang.Object[] v;
java.lang.IllegalArgumentException v;
java.lang.Integer v, v, v;
int v, v, v, v, v, v;
java.lang.String v;
v := @parameter: int;
if v < 64 goto label;
if v <= 33554432 goto label;
label:
v = new java.lang.IllegalArgumentException;
v = newarray (java.lang.Object)[3];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(64);
v[1] = v;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(33554432);
v[2] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("blockSize: %d (expected: %d-%d)", v);
specialinvoke v.<java.lang.IllegalArgumentException: void <init>(java.lang.String)>(v);
throw v;
label:
v = v - 1;
v = staticinvoke <java.lang.Integer: int numberOfLeadingZeros(int)>(v);
v = 32 - v;
v = v - 10;
v = staticinvoke <java.lang.Math: int max(int,int)>(0, v);
return v;
}
protected io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, boolean)
{
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
boolean v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.buffer.ByteBuf;
v := @parameter: boolean;
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,boolean,boolean)>(v, v, v, 1);
return v;
}
private io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, boolean, boolean)
{
io.netty.handler.codec.EncoderException v, v;
net.jpountz.lz.LZ4Compressor v;
java.lang.Object[] v;
io.netty.buffer.ByteBufAllocator v, v;
java.lang.Integer v, v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v, v, v, v;
int v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v;
boolean v, v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.buffer.ByteBuf;
v := @parameter: boolean;
v := @parameter: boolean;
v = 0;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = v + v;
if v >= 0 goto label;
v = new io.netty.handler.codec.EncoderException;
specialinvoke v.<io.netty.handler.codec.EncoderException: void <init>(java.lang.String)>("too much data to allocate a buffer for compression");
throw v;
label:
if v <= 0 goto label;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int blockSize>;
v = staticinvoke <java.lang.Math: int min(int,int)>(v, v);
v = v - v;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: net.jpountz.lz.LZ4Compressor compressor>;
v = virtualinvoke v.<net.jpountz.lz.LZ4Compressor: int maxCompressedLength(int)>(v);
v = v + 21;
v = v + v;
goto label;
label:
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int maxEncodeSize>;
if v > v goto label;
if 0 <= v goto label;
label:
v = new io.netty.handler.codec.EncoderException;
v = newarray (java.lang.Object)[2];
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[0] = v;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int maxEncodeSize>;
v = staticinvoke <java.lang.Integer: java.lang.Integer valueOf(int)>(v);
v[1] = v;
v = staticinvoke <java.lang.String: java.lang.String format(java.lang.String,java.lang.Object[])>("requested encode buffer size (%d bytes) exceeds the maximum allowable size (%d bytes)", v);
specialinvoke v.<io.netty.handler.codec.EncoderException: void <init>(java.lang.String)>(v);
throw v;
label:
if v == 0 goto label;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int blockSize>;
if v >= v goto label;
v = <io.netty.buffer.Unpooled: io.netty.buffer.ByteBuf EMPTY_BUFFER>;
return v;
label:
if v == 0 goto label;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.buffer.ByteBufAllocator alloc()>();
v = interfaceinvoke v.<io.netty.buffer.ByteBufAllocator: io.netty.buffer.ByteBuf ioBuffer(int,int)>(v, v);
return v;
label:
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.buffer.ByteBufAllocator alloc()>();
v = interfaceinvoke v.<io.netty.buffer.ByteBufAllocator: io.netty.buffer.ByteBuf heapBuffer(int,int)>(v, v);
return v;
}
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf) throws java.lang.Exception
{
java.lang.IllegalStateException v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v, v;
int v, v, v, v;
boolean v, v, v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.buffer.ByteBuf;
v := @parameter: io.netty.buffer.ByteBuf;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean finished>;
if v == 0 goto label;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = virtualinvoke v.<io.netty.buffer.ByteBuf: boolean isWritable(int)>(v);
if v != 0 goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("encode finished and not enough space to write remaining data");
throw v;
label:
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writeBytes(io.netty.buffer.ByteBuf)>(v);
return;
label:
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
label:
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
if v <= 0 goto label;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int writableBytes()>();
v = staticinvoke <java.lang.Math: int min(int,int)>(v, v);
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf readBytes(io.netty.buffer.ByteBuf,int)>(v, v);
v = virtualinvoke v.<io.netty.buffer.ByteBuf: boolean isWritable()>();
if v != 0 goto label;
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void flushBufferedData(io.netty.buffer.ByteBuf)>(v);
goto label;
label:
return;
}
private void flushBufferedData(io.netty.buffer.ByteBuf)
{
net.jpountz.lz.LZ4Compressor v, v;
io.netty.handler.codec.compression.CompressionException v;
java.nio.ByteBuffer v, v;
byte v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
java.lang.Throwable v;
long v;
io.netty.buffer.ByteBuf v, v, v, v, v, v, v, v, v;
int v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
io.netty.handler.codec.compression.ByteBufChecksum v, v, v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.buffer.ByteBuf;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
if v != 0 goto label;
return;
label:
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.handler.codec.compression.ByteBufChecksum checksum>;
virtualinvoke v.<io.netty.handler.codec.compression.ByteBufChecksum: void reset()>();
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.handler.codec.compression.ByteBufChecksum checksum>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readerIndex()>();
virtualinvoke v.<io.netty.handler.codec.compression.ByteBufChecksum: void update(io.netty.buffer.ByteBuf,int,int)>(v, v, v);
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.handler.codec.compression.ByteBufChecksum checksum>;
v = virtualinvoke v.<io.netty.handler.codec.compression.ByteBufChecksum: long getValue()>();
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: net.jpountz.lz.LZ4Compressor compressor>;
v = virtualinvoke v.<net.jpountz.lz.LZ4Compressor: int maxCompressedLength(int)>(v);
v = v + 21;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf ensureWritable(int)>(v);
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int writerIndex()>();
label:
v = v + 21;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int writableBytes()>();
v = v - 21;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: java.nio.ByteBuffer internalNioBuffer(int,int)>(v, v);
v = virtualinvoke v.<java.nio.ByteBuffer: int position()>();
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: net.jpountz.lz.LZ4Compressor compressor>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readerIndex()>();
v = virtualinvoke v.<io.netty.buffer.ByteBuf: java.nio.ByteBuffer internalNioBuffer(int,int)>(v, v);
virtualinvoke v.<net.jpountz.lz.LZ4Compressor: void compress(java.nio.ByteBuffer,java.nio.ByteBuffer)>(v, v);
v = virtualinvoke v.<java.nio.ByteBuffer: int position()>();
v = v - v;
label:
goto label;
label:
v := @caughtexception;
v = new io.netty.handler.codec.compression.CompressionException;
specialinvoke v.<io.netty.handler.codec.compression.CompressionException: void <init>(java.lang.Throwable)>(v);
throw v;
label:
if v < v goto label;
v = v;
v = v + 21;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readerIndex()>();
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setBytes(int,io.netty.buffer.ByteBuf,int,int)>(v, v, v, v);
label:
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setLong(int,long)>(v, 5501767354678207339L);
v = v + 8;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setByte(int,int)>(v, v);
v = v + 9;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setIntLE(int,int)>(v, v);
v = v + 13;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setIntLE(int,int)>(v, v);
v = v + 17;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setIntLE(int,int)>(v, v);
v = v + 21;
v = v + v;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writerIndex(int)>(v);
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf clear()>();
return;
catch net.jpountz.lz.LZ4Exception from label to label with label;
}
public void flush(io.netty.channel.ChannelHandlerContext) throws java.lang.Exception
{
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v, v, v;
boolean v, v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
if v == null goto label;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: boolean isReadable()>();
if v == 0 goto label;
v = <io.netty.buffer.Unpooled: io.netty.buffer.ByteBuf EMPTY_BUFFER>;
v = virtualinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean isPreferDirect()>();
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf allocateBuffer(io.netty.channel.ChannelHandlerContext,io.netty.buffer.ByteBuf,boolean,boolean)>(v, v, v, 0);
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void flushBufferedData(io.netty.buffer.ByteBuf)>(v);
interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelFuture write(java.lang.Object)>(v);
label:
interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelHandlerContext flush()>();
return;
}
private io.netty.channel.ChannelFuture finishEncode(io.netty.channel.ChannelHandlerContext, io.netty.channel.ChannelPromise)
{
net.jpountz.lz.LZ4Compressor v;
io.netty.buffer.ByteBufAllocator v;
io.netty.channel.ChannelHandlerContext v;
byte v;
io.netty.buffer.ByteBuf v, v;
io.netty.channel.ChannelPromise v;
int v, v, v, v, v, v, v, v, v;
boolean v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.channel.ChannelFuture v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.channel.ChannelPromise;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean finished>;
if v == 0 goto label;
interfaceinvoke v.<io.netty.channel.ChannelPromise: io.netty.channel.ChannelPromise setSuccess()>();
return v;
label:
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean finished> = 1;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.buffer.ByteBufAllocator alloc()>();
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: net.jpountz.lz.LZ4Compressor compressor>;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int readableBytes()>();
v = virtualinvoke v.<net.jpountz.lz.LZ4Compressor: int maxCompressedLength(int)>(v);
v = v + 21;
v = interfaceinvoke v.<io.netty.buffer.ByteBufAllocator: io.netty.buffer.ByteBuf heapBuffer(int)>(v);
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: void flushBufferedData(io.netty.buffer.ByteBuf)>(v);
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf ensureWritable(int)>(21);
v = virtualinvoke v.<io.netty.buffer.ByteBuf: int writerIndex()>();
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setLong(int,long)>(v, 5501767354678207339L);
v = v + 8;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setByte(int,int)>(v, v);
v = v + 9;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setInt(int,int)>(v, 0);
v = v + 13;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setInt(int,int)>(v, 0);
v = v + 17;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf setInt(int,int)>(v, 0);
v = v + 21;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf writerIndex(int)>(v);
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelFuture writeAndFlush(java.lang.Object,io.netty.channel.ChannelPromise)>(v, v);
return v;
}
public boolean isClosed()
{
io.netty.handler.codec.compression.Lz4FrameEncoder v;
boolean v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: boolean finished>;
return v;
}
public io.netty.channel.ChannelFuture close()
{
io.netty.channel.ChannelHandlerContext v;
io.netty.channel.ChannelPromise v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.channel.ChannelFuture v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelHandlerContext ctx()>();
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelPromise newPromise()>();
v = virtualinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise)>(v);
return v;
}
public io.netty.channel.ChannelFuture close(io.netty.channel.ChannelPromise)
{
io.netty.util.concurrent.EventExecutor v;
io.netty.channel.ChannelHandlerContext v;
io.netty.channel.ChannelPromise v;
io.netty.handler.codec.compression.Lz4FrameEncoder$1 v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
boolean v;
io.netty.channel.ChannelFuture v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelPromise;
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelHandlerContext ctx()>();
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.util.concurrent.EventExecutor executor()>();
v = interfaceinvoke v.<io.netty.util.concurrent.EventExecutor: boolean inEventLoop()>();
if v == 0 goto label;
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelFuture finishEncode(io.netty.channel.ChannelHandlerContext,io.netty.channel.ChannelPromise)>(v, v);
return v;
label:
v = new io.netty.handler.codec.compression.Lz4FrameEncoder$1;
specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder$1: void <init>(io.netty.handler.codec.compression.Lz4FrameEncoder,io.netty.channel.ChannelPromise)>(v, v);
interfaceinvoke v.<io.netty.util.concurrent.EventExecutor: void execute(java.lang.Runnable)>(v);
return v;
}
public void close(io.netty.channel.ChannelHandlerContext, io.netty.channel.ChannelPromise) throws java.lang.Exception
{
io.netty.channel.ChannelHandlerContext v;
io.netty.channel.ChannelPromise v, v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.channel.ChannelFuture v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v := @parameter: io.netty.channel.ChannelPromise;
v = interfaceinvoke v.<io.netty.channel.ChannelHandlerContext: io.netty.channel.ChannelPromise newPromise()>();
v = specialinvoke v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelFuture finishEncode(io.netty.channel.ChannelHandlerContext,io.netty.channel.ChannelPromise)>(v, v);
staticinvoke <io.netty.handler.codec.compression.EncoderUtil: void closeAfterFinishEncode(io.netty.channel.ChannelHandlerContext,io.netty.channel.ChannelFuture,io.netty.channel.ChannelPromise)>(v, v, v);
return;
}
private io.netty.channel.ChannelHandlerContext ctx()
{
io.netty.channel.ChannelHandlerContext v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
java.lang.IllegalStateException v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelHandlerContext ctx>;
if v != null goto label;
v = new java.lang.IllegalStateException;
specialinvoke v.<java.lang.IllegalStateException: void <init>(java.lang.String)>("not added to a pipeline");
throw v;
label:
return v;
}
public void handlerAdded(io.netty.channel.ChannelHandlerContext)
{
byte[] v;
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v;
int v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.channel.ChannelHandlerContext ctx> = v;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: int blockSize>;
v = newarray (byte)[v];
v = staticinvoke <io.netty.buffer.Unpooled: io.netty.buffer.ByteBuf wrappedBuffer(byte[])>(v);
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer> = v;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
virtualinvoke v.<io.netty.buffer.ByteBuf: io.netty.buffer.ByteBuf clear()>();
return;
}
public void handlerRemoved(io.netty.channel.ChannelHandlerContext) throws java.lang.Exception
{
io.netty.channel.ChannelHandlerContext v;
io.netty.buffer.ByteBuf v, v;
io.netty.handler.codec.compression.Lz4FrameEncoder v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v := @parameter: io.netty.channel.ChannelHandlerContext;
specialinvoke v.<io.netty.handler.codec.MessageToByteEncoder: void handlerRemoved(io.netty.channel.ChannelHandlerContext)>(v);
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
if v == null goto label;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
virtualinvoke v.<io.netty.buffer.ByteBuf: boolean release()>();
v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer> = null;
label:
return;
}
final io.netty.buffer.ByteBuf getBackingBuffer()
{
io.netty.handler.codec.compression.Lz4FrameEncoder v;
io.netty.buffer.ByteBuf v;
v := @this: io.netty.handler.codec.compression.Lz4FrameEncoder;
v = v.<io.netty.handler.codec.compression.Lz4FrameEncoder: io.netty.buffer.ByteBuf buffer>;
return v;
}
}