
classes.io.netty.buffer.ByteBufUtil.class Maven / Gradle / Ivy
???? 2? ??
??
??
??
??
??
??
?? ??
??
??
????
?
??
??
??
??
??
??
??
??
?? ???
??
??
??
??
??
??
?? ? ? ? ?
??
????
??
??
??
???
-?
??
??
??
????
??? 5?
???
???? ??
??
????
5?
??
???
??
?? ??
???
G?
G?
G?
??
?? ??
??
??
b?
????
??
??
??
??
??
??
????
[? ?
??
?? ??
???
b?
b? ??
??
b?
??
??
?
?
b
??
?
?
?
?
?
?
v
v
v
v
v?
B?
?
??
??
?
?
?!
?"
?#
?$
?%$@&'
()
?*
?+ ,-
?.
?/ ?0
?1
23 ?45
?6
789
:; <=
?>
??
?) @ABCD EFG ?HI
:JK
?LMNO
?PQ ThreadLocalDirectByteBuf InnerClassesR ThreadLocalUnsafeDirectByteBufS HexUtil logger /Lio/netty/util/internal/logging/InternalLogger; CHAR_BUFFERS *Lio/netty/util/concurrent/FastThreadLocal; Signature ALio/netty/util/concurrent/FastThreadLocal; WRITE_UTF_UNKNOWN B
ConstantValue ? MAX_CHAR_BUFFER_SIZE I THREAD_LOCAL_BUFFER_SIZE MAX_BYTES_PER_CHAR_UTF8 DEFAULT_ALLOCATOR "Lio/netty/buffer/ByteBufAllocator; FIND_NON_ASCII Lio/netty/util/ByteProcessor; hexDump -(Lio/netty/buffer/ByteBuf;)Ljava/lang/String; Code LineNumberTable LocalVariableTable buffer Lio/netty/buffer/ByteBuf; /(Lio/netty/buffer/ByteBuf;II)Ljava/lang/String; fromIndex length ([B)Ljava/lang/String; array [B ([BII)Ljava/lang/String; hashCode (Lio/netty/buffer/ByteBuf;)I i aLen intCount byteCount
arrayIndex
StackMapTable equals 8(Lio/netty/buffer/ByteBuf;ILio/netty/buffer/ByteBuf;II)Z a aStartIndex b bStartIndex longCount 5(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)Z bufferA bufferB compare 5(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)I res J bufferAIsBigEndian Z uintCountIncrement comp aEnd bLen minLength uintCount aIndex bIndex compareUintBigEndian 8(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J compareUintLittleEndian compareUintBigEndianA compareUintBigEndianB indexOf (Lio/netty/buffer/ByteBuf;IIB)I toIndex value swapShort (S)S S
swapMedium (I)I swapped swapInt swapLong (J)J readBytes W(Lio/netty/buffer/ByteBufAllocator;Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf; alloc release dstTU firstIndexOf lastIndexOf writeUtf8 U(Lio/netty/buffer/ByteBufAllocator;Ljava/lang/CharSequence;)Lio/netty/buffer/ByteBuf; seq Ljava/lang/CharSequence; buf 4(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I byteBuf !Lio/netty/buffer/AbstractByteBuf; written bytes len >(Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I c2 C e %Ljava/lang/IndexOutOfBoundsException; codePoint c writerIndex oldWriterIndex??V utf8MaxBytes (Ljava/lang/CharSequence;)I
writeAscii asciiString Lio/netty/util/AsciiString; encodeString l(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; src Ljava/nio/CharBuffer; charset Ljava/nio/charset/Charset; m(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;
extraCapacity
encodeString0 n(Lio/netty/buffer/ByteBufAllocator;ZLjava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf; dstBuf Ljava/nio/ByteBuffer; pos cr Ljava/nio/charset/CoderResult; x +Ljava/nio/charset/CharacterCodingException; enforceHeap encoder !Ljava/nio/charset/CharsetEncoder;WXY?Z? decodeString I(Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Ljava/lang/String; readerIndex decoder !Ljava/nio/charset/CharsetDecoder; maxLength[ N(Ljava/nio/charset/CharsetDecoder;Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;)V threadLocalDirectBuffer ()Lio/netty/buffer/ByteBuf; getBytes (Lio/netty/buffer/ByteBuf;)[B (Lio/netty/buffer/ByteBuf;II)[B start (Lio/netty/buffer/ByteBuf;IIZ)[B
baseOffset copy v :(Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;II)V srcIdx dstIdx 9(Lio/netty/util/AsciiString;ILio/netty/buffer/ByteBuf;I)V
prettyHexDump offset appendPrettyHexDump 5(Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;)V dump Ljava/lang/StringBuilder; 7(Ljava/lang/StringBuilder;Lio/netty/buffer/ByteBuf;II)V isText 6(Lio/netty/buffer/ByteBuf;Ljava/nio/charset/Charset;)Z 8(Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Z
heapBuffer ignore index maxIndex isAscii (Lio/netty/buffer/ByteBuf;II)Z isUtf8 b2 b3 b4 b1 endIndex ()V this Lio/netty/buffer/ByteBufUtil;
access$500 ()I allocType Ljava/lang/String;\
SourceFile ByteBufUtil.java ? ?X?]? ? ?^ ? ? ?_ ?`abcdefg "java/lang/IllegalArgumentException ,All indexes and lengths must be non-negative?h2?ij ? ?klm lnopqjrjstutvtT ?wxyzm{?| ,io/netty/util/ByteProcessor$IndexOfProcessor IndexOfProcessor?}~?78 %V ???w io/netty/buffer/AbstractByteBuf2 ? + io/netty/buffer/WrappedByteBuf?_????A\`????????????? #java/lang/IndexOutOfBoundsException???? ? ?9% io/netty/util/AsciiString ??????9+?ADEN???W??vw??X????Y?y????2w )java/nio/charset/CharacterCodingException java/lang/IllegalStateException??Y?[?? ? ???? java/nio/CharBuffer?? ? ???????V]???????????y????`b`d??? java/lang/StringBuilder?? expected: 0 <= start(???? ) <= start + length( ) <=
buf.capacity(???y???`? expected: 0 <= srcIdx( ) <= srcIdx + length( ) <= srcLen(??? io/netty/buffer/ByteBuf??l ?? ?nr?rsu index: length: Z ??|{z{???Y??? ? ? io/netty/buffer/ByteBufUtil??? ? ? io/netty/buffer/ByteBufUtil$1 io.netty.allocator.type?y unpooled pooled????????????? -Dio.netty.allocator.type: {}?????? /-Dio.netty.allocator.type: pooled (unknown: {}) ? ? $io.netty.threadLocalDirectBufferSizee? *-Dio.netty.threadLocalDirectBufferSize: {}?? %io.netty.maxThreadLocalCharBufferSize +-Dio.netty.maxThreadLocalCharBufferSize: {} io/netty/buffer/ByteBufUtil$2 java/lang/Object 4io/netty/buffer/ByteBufUtil$ThreadLocalDirectByteBuf :io/netty/buffer/ByteBufUtil$ThreadLocalUnsafeDirectByteBuf #io/netty/buffer/ByteBufUtil$HexUtil io/netty/buffer/ByteBufAllocator java/lang/Throwable java/lang/CharSequence java/nio/charset/CharsetEncoder java/nio/ByteBuffer java/nio/charset/CoderResult java/nio/charset/Charset java/nio/charset/CharsetDecoder java/lang/String
readableBytes
access$000
access$100 order ()Ljava/nio/ByteOrder; java/nio/ByteOrder
BIG_ENDIAN Ljava/nio/ByteOrder; getInt getByte (I)B (Ljava/lang/String;)V getLong (I)J java/lang/Math min (II)I (JJ)J getUnsignedByte (I)S getUnsignedInt getUnsignedIntLE java/lang/Short reverseBytes java/lang/Integer java/lang/Long (I)Lio/netty/buffer/ByteBuf; 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ()Z max capacity io/netty/util/ByteProcessor (B)V forEachByte "(IILio/netty/util/ByteProcessor;)I forEachByteDesc ensureWritable unwrap toString ()Ljava/lang/String; io/netty/util/CharsetUtil UTF_8 (Ljava/nio/charset/Charset;)[B
writeBytes ([B)Lio/netty/buffer/ByteBuf; charAt (I)C _setByte (II)V !io/netty/util/internal/StringUtil isSurrogate (C)Z java/lang/Character isHighSurrogate isLowSurrogate toCodePoint (CC)I ()[B arrayOffset ([BII)Lio/netty/buffer/ByteBuf; US_ASCII =(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder; remaining maxBytesPerChar ()F internalNioBuffer (II)Ljava/nio/ByteBuffer; position encode K(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult; isUnderflow throwException flush 5(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult; (Ljava/lang/Throwable;)V =(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetDecoder; maxCharsPerByte (io/netty/util/concurrent/FastThreadLocal get ()Ljava/lang/Object; allocate (I)Ljava/nio/CharBuffer; set (Ljava/lang/Object;)V clear ()Ljava/nio/Buffer; nioBufferCount $()Lio/netty/buffer/ByteBufAllocator; 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; flip decode K(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult; 5(Ljava/nio/CharBuffer;)Ljava/nio/charset/CoderResult; (io/netty/util/internal/PlatformDependent hasUnsafe newInstance >()Lio/netty/buffer/ByteBufUtil$ThreadLocalUnsafeDirectByteBuf; 8()Lio/netty/buffer/ByteBufUtil$ThreadLocalDirectByteBuf; io/netty/util/internal/MathUtil
isOutOfBounds (III)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; hasArray java/util/Arrays copyOfRange ([BII)[B (I[B)Lio/netty/buffer/ByteBuf; !io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; setBytes (I[BII)Lio/netty/buffer/ByteBuf;
access$200
access$300 (Ljava/lang/Object;)Z "java/nio/charset/CodingErrorAction REPORT $Ljava/nio/charset/CodingErrorAction; ?(Ljava/nio/charset/Charset;Ljava/nio/charset/CodingErrorAction;Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder; ,(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer; 4io/netty/util/internal/logging/InternalLoggerFactory getInstance B(Ljava/lang/Class;)Lio/netty/util/internal/logging/InternalLogger; isAndroid )io/netty/util/internal/SystemPropertyUtil 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java/util/Locale US Ljava/util/Locale; toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; trim (io/netty/buffer/UnpooledByteBufAllocator DEFAULT *Lio/netty/buffer/UnpooledByteBufAllocator; -io/netty/util/internal/logging/InternalLogger debug '(Ljava/lang/String;Ljava/lang/Object;)V &io/netty/buffer/PooledByteBufAllocator (Lio/netty/buffer/PooledByteBufAllocator; (Ljava/lang/String;I)I valueOf (I)Ljava/lang/Integer; 1 ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 1 ? ? ? 7
**? *? ? ? ? d ?
? ? ? ? ? E *? ? ? l ? ? ? ? ? ? ? ? ? ? 2 **?? ? ? t ? ? ? ? ? ? E *? ? ? | ? ? ? ? ? ? ? ? ? ? ?*? <|=~>6*? 6*? ? ? %6? h*?
`6?????? %6? h*?
? `6??????6? h*?? `6?????? 6? ? R ? ? ?
? ? ? ? ( ? 6 ? 9 ? B ? J ? [ ? ^ ? d ? l ? } ? ? ? ? ? ? ? ? \ # ? ? E ? ? g ? ? ? ? ? ? ? ? ? ? ?
? ? ? ~ ? ? x ? ? ? % ? # ? ? ? ? ? ? ? ? ? ? ?? ? ?
?
Y? ?*? d? ,? d? ?|6~6*? ,? ? +6? *? ,? ?? ???????? +6? "*? ,? ? ?? ????????6? *? ,? ? ????????? ? j ?
? ? - ? / ? 5 ? <