
com.groupbyinc.flux.common.netty.handler.codec.LengthFieldPrepender.class Maven / Gradle / Ivy
???? 2 ? Ccom/groupbyinc/flux/common/netty/handler/codec/LengthFieldPrepender {Lcom/groupbyinc/flux/common/netty/handler/codec/MessageToMessageEncoder; Fcom/groupbyinc/flux/common/netty/handler/codec/MessageToMessageEncoder LengthFieldPrepender.java BLcom/groupbyinc/flux/common/netty/channel/ChannelHandler$Sharable; @com/groupbyinc/flux/common/netty/channel/ChannelHandler$Sharable 7com/groupbyinc/flux/common/netty/channel/ChannelHandler
Sharable byteOrder Ljava/nio/ByteOrder; lengthFieldLength I lengthIncludesLengthFieldLength Z lengthAdjustment (I)V (IZ)V
this ELcom/groupbyinc/flux/common/netty/handler/codec/LengthFieldPrepender; (IIZ)V
(II)V java/nio/ByteOrder
BIG_ENDIAN ! " (Ljava/nio/ByteOrder;IIZ)V $
% ()V '
( "java/lang/IllegalArgumentException * java/lang/StringBuilder ,
- ( 3lengthFieldLength must be either 1, 2, 3, 4, or 8: / append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 1 2
- 3 (I)Ljava/lang/StringBuilder; 1 5
- 6 toString ()Ljava/lang/String; 8 9
- : (Ljava/lang/String;)V <
+ =
9com/groupbyinc/flux/common/netty/util/internal/ObjectUtil @ checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; B C
A D
F H J L encode ?(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;Ljava/util/List;)V java/lang/Exception P /com/groupbyinc/flux/common/netty/buffer/ByteBuf R
readableBytes ()I T U
S V Adjusted frame length ( X ) is less than zero Z !length does not fit into a byte: \ >com/groupbyinc/flux/common/netty/channel/ChannelHandlerContext ^ alloc <()Lcom/groupbyinc/flux/common/netty/buffer/ByteBufAllocator; ` a _ b 8com/groupbyinc/flux/common/netty/buffer/ByteBufAllocator d buffer 4(I)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; f g e h order G(Ljava/nio/ByteOrder;)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; j k
S l writeByte n g
S o java/util/List q add (Ljava/lang/Object;)Z s t r u *length does not fit into a short integer: x
writeShort z g
S { +length does not fit into a medium integer: ~ writeMedium ? g
S ? writeInt ? g
S ? writeLong 4(J)Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
S ? java/lang/Error ? should not reach here ?
? = retain 3()Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; ? ?
S ? ctx @Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext; msg 1Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf; out $Ljava/util/List; Ljava/util/List; length e(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V N O
? Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature ?(Lcom/groupbyinc/flux/common/netty/channel/ChannelHandlerContext;Lcom/groupbyinc/flux/common/netty/buffer/ByteBuf;Ljava/util/List;)V
SourceFile InnerClasses RuntimeVisibleAnnotations !
? ? *? ? ? ?
G H ? J *? ? ? ?
X Y ? J *? ? ? ?
g h ? W *? #? &? ? * ?
z
{ $ ? ? V*? )? 3? .? )? $? ? +Y? -Y? .0? 4? 7? ;? >?+?? EW*+? G*? I*? K*? M? ? 4 V V
V V V ? &