io.netty.handler.codec.LengthFieldPrepender.class Maven / Gradle / Ivy
???? 2 ? +io/netty/handler/codec/LengthFieldPrepender KLio/netty/handler/codec/MessageToMessageEncoder; .io/netty/handler/codec/MessageToMessageEncoder LengthFieldPrepender.java *Lio/netty/channel/ChannelHandler$Sharable; (io/netty/channel/ChannelHandler$Sharable io/netty/channel/ChannelHandler
Sharable byteOrder Ljava/nio/ByteOrder; lengthFieldLength I lengthIncludesLengthFieldLength Z lengthAdjustment (I)V (IZ)V
this -Lio/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 <
+ =
!io/netty/util/internal/ObjectUtil @ checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; B C
A D
F H J L encode T(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Ljava/util/List;)V java/lang/Exception P io/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: \ &io/netty/channel/ChannelHandlerContext ^ alloc $()Lio/netty/buffer/ByteBufAllocator; ` a _ b io/netty/buffer/ByteBufAllocator d buffer (I)Lio/netty/buffer/ByteBuf; f g e h order /(Ljava/nio/ByteOrder;)Lio/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 (J)Lio/netty/buffer/ByteBuf; ? ?
S ? java/lang/Error ? should not reach here ?
? = retain ()Lio/netty/buffer/ByteBuf; ? ?
S ? ctx (Lio/netty/channel/ChannelHandlerContext; msg Lio/netty/buffer/ByteBuf; out $Ljava/util/List; Ljava/util/List; length M(Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)V N O
? Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable
Exceptions Signature h(Lio/netty/channel/ChannelHandlerContext;Lio/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 ? &