![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.buffer.ByteBufUtil.class Maven / Gradle / Ivy
The newest version!
???? 2h ?? ?
??
??
??
??
?
??
?
??
????
???
?? ??
??
?
??
???
?
??
??
????????
?
?
?
? ? ? ?
"
?
?
?
?
?
?
?
?
?!
@#
?$
?%
&'()
F*+
F,
F-./
F0
F1
E?
2
3
4
5
67
?89
W: W;
<=?>?1 ?@
?A
?B?C
WD
?E
FG
H
FI
FJ K
LM
N
O
jP
jQ
?R
S ?T
jU
V
?W
XY
Z[\
?]
^_
Z`
ab
ac
Zd
?efg
?hij
?k
?P
?Q
l
?m
nop
?q
?r
?s
?t
?u
v
wxy
z{
?|
j?
}~?T
???
??
?
??
?
??
?I???
?
? ??
??
??
??
??
??
?? ?
^k
^P
^Q
??
^?
???
?
^?
?*
?? ??
?*?
????
?? ??
??
??
?o ????? ??? ??
???
"?? ???
?*?? ThreadLocalDirectByteBuf InnerClasses? ThreadLocalUnsafeDirectByteBuf? HexUtil logger /Lio/netty/util/internal/logging/InternalLogger; BYTE_ARRAYS *Lio/netty/util/concurrent/FastThreadLocal; Signature .Lio/netty/util/concurrent/FastThreadLocal<[B>; WRITE_UTF_UNKNOWN B
ConstantValue ? MAX_CHAR_BUFFER_SIZE I THREAD_LOCAL_BUFFER_SIZE MAX_BYTES_PER_CHAR_UTF8 WRITE_CHUNK_SIZE DEFAULT_ALLOCATOR "Lio/netty/buffer/ByteBufAllocator; MAX_TL_ARRAY_LEN FIND_NON_ASCII Lio/netty/util/ByteProcessor; threadLocalTempArray (I)[B Code LineNumberTable LocalVariableTable minLength
StackMapTable hexDump -(Lio/netty/buffer/ByteBuf;)Ljava/lang/String; 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;
decodeHexByte (Ljava/lang/CharSequence;I)B s Ljava/lang/CharSequence; pos
decodeHexDump (Ljava/lang/CharSequence;)[B (Ljava/lang/CharSequence;II)[B ensureWritableSuccess (I)Z ensureWritableResult hashCode (Lio/netty/buffer/ByteBuf;)I i aLen intCount byteCount
arrayIndex? indexOf 5(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)I needle haystack attempts 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 res J bufferAIsBigEndian Z uintCountIncrement comp aEnd bLen uintCount aIndex bIndex compareUintBigEndian 8(Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;III)J compareUintLittleEndian compareUintBigEndianA compareUintBigEndianB (Lio/netty/buffer/ByteBuf;IIB)I toIndex value swapShort (S)S S
swapMedium (I)I swapped swapInt swapLong (J)J writeShortBE 5(Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf; buf
shortValue
setShortBE 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; index
writeMediumBE mediumValue readBytes W(Lio/netty/buffer/ByteBufAllocator;Lio/netty/buffer/ByteBuf;I)Lio/netty/buffer/ByteBuf; alloc release dst?? firstIndexOf lastIndexOf capacity checkCharSequenceBounds 4(Ljava/lang/CharSequence;II)Ljava/lang/CharSequence; seq start end writeUtf8 U(Lio/netty/buffer/ByteBufAllocator;Ljava/lang/CharSequence;)Lio/netty/buffer/ByteBuf; 4(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;)I seqLength 6(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;II)I reserveAndWriteUtf8 5(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;I)I reserveBytes 7(Lio/netty/buffer/ByteBuf;Ljava/lang/CharSequence;III)I reserveAndWriteUtf8Seq byteBuf !Lio/netty/buffer/AbstractByteBuf; written bytes >(Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;I)I writerIndex len ?(Lio/netty/buffer/AbstractByteBuf;ILjava/lang/CharSequence;II)I c C oldWriterIndex writeUtf8Surrogate '(Lio/netty/buffer/AbstractByteBuf;ICC)I c2 codePoint9 utf8MaxBytes (Ljava/lang/CharSequence;)I utf8Bytes (Ljava/lang/CharSequence;II)I
utf8ByteCount utf8BytesNonAscii
encodedLength
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; cr Ljava/nio/charset/CoderResult; x +Ljava/nio/charset/CharacterCodingException; enforceHeap encoder !Ljava/nio/charset/CharsetEncoder;?????f decodeString I(Lio/netty/buffer/ByteBuf;IILjava/nio/charset/Charset;)Ljava/lang/String; offset readerIndex threadLocalDirectBuffer ()Lio/netty/buffer/ByteBuf; getBytes (Lio/netty/buffer/ByteBuf;)[B (Lio/netty/buffer/ByteBuf;II)[B (Lio/netty/buffer/ByteBuf;IIZ)[B
baseOffset copy v 7(Lio/netty/util/AsciiString;Lio/netty/buffer/ByteBuf;)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 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 decoder !Ljava/nio/charset/CharsetDecoder; maxIndex? isAscii (Lio/netty/buffer/ByteBuf;II)Z isUtf8 b2 b3 b4 b1 endIndex R(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;IILjava/io/OutputStream;)V tmp tmpBuf chunkLen allocator position out Ljava/io/OutputStream;?
Exceptions? 3(Ljava/nio/ByteBuffer;[BIILjava/io/OutputStream;I)V inBuffer in inOffset inLen outLen ()V this Lio/netty/buffer/ByteBufUtil;
access$500 ()I allocType Ljava/lang/String;p
SourceFile ByteBufUtil.java ? ? io/netty/buffer/ByteBufUtil ? ?????? ????? ?? ?? ??
io/netty/buffer/EmptyByteBuf??????BDB?? ! "java/lang/IllegalArgumentException ,All indexes and lengths must be non-negative??n???EF???678797:7 java/lang/Integer??????????W;X;????B??F????????????? ??P?S???Y?? ,io/netty/util/ByteProcessor$IndexOfProcessor IndexOfProcessor????????? #java/lang/IndexOutOfBoundsException java/lang/StringBuilder?? expected: 0 <= start(? ?
) <= end ( ) <= seq.length(?yz_ayBhgZ[ 'io/netty/buffer/WrappedCompositeByteBuf? io/netty/buffer/AbstractByteBufn ?_p io/netty/buffer/WrappedByteBuf
??
tu ? ?}| io/netty/util/AsciiString~|?a?
?m???? ?!??"#??$%???&'?(?)?*+n? )java/nio/charset/CharacterCodingException java/lang/IllegalStateException?, !io/netty/util/internal/StringUtil -? ? ??.? / java/lang/String?0?12?3435???? ) <= start + length( ) <= buf.capacity(678?9?? expected: 0 <= srcIdx( ) <= srcIdx + length( ) <= srcLen(:;< io/netty/buffer/ByteBuf=.?>?????? index: length: ????@AB?CD?E%?FGRH
L ? ??IJKLM?NO????PQRS ? ? io/netty/buffer/ByteBufUtil$1 io.netty.allocator.typeT? unpooled pooledU?VWXYZ[\]^_ -Dio.netty.allocator.type: {}`abc^d /-Dio.netty.allocator.type: pooled (unknown: {}) ? ? $io.netty.threadLocalDirectBufferSize?e *-Dio.netty.threadLocalDirectBufferSize: {}fg %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/nio/charset/CharsetEncoder java/nio/ByteBuffer java/nio/charset/CoderResult java/nio/CharBuffer java/nio/charset/Charset java/nio/charset/CharsetDecoder java/io/OutputStream java/io/IOException (io/netty/util/concurrent/FastThreadLocal get ()Ljava/lang/Object; (io/netty/util/internal/PlatformDependent allocateUninitializedArray
readableBytes
access$000
access$100 java/lang/CharSequence 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 max (JJ)J getUnsignedByte (I)S getUnsignedInt getUnsignedIntLE java/lang/Short reverseBytes java/lang/Long
writeShort (I)Lio/netty/buffer/ByteBuf; writeShortLE setShort (II)Lio/netty/buffer/ByteBuf;
setShortLE writeMedium
writeMediumLE 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ()Z io/netty/util/ByteProcessor (B)V forEachByte "(IILio/netty/util/ByteProcessor;)I forEachByteDesc io/netty/util/internal/MathUtil
isOutOfBounds (III)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; (C)Ljava/lang/StringBuilder; toString ()Ljava/lang/String; unwrap ensureWritable0 (I)V subSequence (II)Ljava/lang/CharSequence; io/netty/util/CharsetUtil UTF_8 (Ljava/nio/charset/Charset;)[B
writeBytes ([B)Lio/netty/buffer/ByteBuf; charAt (I)C _setByte (II)V isSurrogate (C)Z java/lang/Character isHighSurrogate isLowSurrogate toCodePoint (CC)I ()[B arrayOffset ([BII)Lio/netty/buffer/ByteBuf; US_ASCII c2b (C)B =(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder; remaining maxBytesPerChar ()F internalNioBuffer (II)Ljava/nio/ByteBuffer; 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 hasArray (I[BII)Lio/netty/buffer/ByteBuf; (Ljava/lang/Object;)Z ([BIII)V !([BIILjava/nio/charset/Charset;)V hasUnsafe newInstance >()Lio/netty/buffer/ByteBufUtil$ThreadLocalUnsafeDirectByteBuf; 8()Lio/netty/buffer/ByteBufUtil$ThreadLocalDirectByteBuf; 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
access$200
access$300 "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; nioBufferCount nioBuffer decode ,(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer; $()Lio/netty/buffer/ByteBufAllocator; write ([BII)V clear ()Ljava/nio/Buffer; java/nio/Buffer (I)Ljava/nio/Buffer; isDirectBufferPooled ([BII)Ljava/nio/ByteBuffer; 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 ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? H ? ? ? W ? ? ? ? ? ? ? ? j k j ? ? ? ? C ? ? ? 7
**? *? ? ? ? s ?
? ? ? E *?
? ? { ? ? ? ? ? ? 2 **?? ? ? ? ? ? ? E *? ? ? ? ? ? ? ? : *?
? ? ? ?
?
? 6 **? ? ? ? ? ? ?
? E *? ? ? ? ? ? ? ? ? E ? ? ? ? ? ? ? ? ? @ ? ?*? <|=~>6*? 6*? ? ? %6? h*? `6?????? %6? h*? ? `6??????6? h*?? `6?????? 6? ? R ? ? ?
? ? ? ? ( ? 6 ? 9 ? B ? J ? [ ? ^ ? d ? l ? } ? ? ? ? ? ? ? ? \ # ? E ? g ? ? ? ? ? ? ?
? ? ~ ? x ? ? % ? # ? ? ? ? ? ? ? 8+? *? d`=>? &**? ++? `*? ? ?
+? `?????? ? &