io.netty.buffer.Unpooled.class Maven / Gradle / Ivy
???? 2? io/netty/buffer/Unpooled java/lang/Object
Unpooled.java ALLOC "Lio/netty/buffer/ByteBufAllocator;
BIG_ENDIAN Ljava/nio/ByteOrder;
LITTLE_ENDIAN EMPTY_BUFFER Lio/netty/buffer/ByteBuf; $assertionsDisabled Z buffer ()Lio/netty/buffer/ByteBuf; io/netty/buffer/ByteBufAllocator
heapBuffer directBuffer (I)Lio/netty/buffer/ByteBuf; initialCapacity I (II)Lio/netty/buffer/ByteBuf; " # maxCapacity " &
wrappedBuffer ([B)Lio/netty/buffer/ByteBuf; * #io/netty/buffer/UnpooledHeapByteBuf , ((Lio/netty/buffer/ByteBufAllocator;[BI)V . /
- 0 array [B ([BII)Lio/netty/buffer/ByteBuf; ( )
5 io/netty/buffer/ByteBuf 7 slice 9 "
8 : offset length 0(Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; java/nio/ByteBuffer ? hasRemaining ()Z A B
@ C isDirect E B
@ F hasArray H B
@ I ()[B 2 K
@ L arrayOffset ()I N O
@ P position R O
@ S remaining U O
@ V ( 4
X order ()Ljava/nio/ByteOrder; Z [
@ \ /(Ljava/nio/ByteOrder;)Lio/netty/buffer/ByteBuf; Z ^
8 _ (io/netty/util/internal/PlatformDependent a hasUnsafe c B
b d
isReadOnly f B
@ g +io/netty/buffer/ReadOnlyUnsafeDirectByteBuf i :(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;)V . k
j l %io/netty/buffer/ReadOnlyByteBufferBuf n
o l +io/netty/buffer/UnpooledUnsafeDirectByteBuf q ;(Lio/netty/buffer/ByteBufAllocator;Ljava/nio/ByteBuffer;I)V . s
r t %io/netty/buffer/UnpooledDirectByteBuf v
w t Ljava/nio/ByteBuffer; (JIZ)Lio/netty/buffer/ByteBuf; 2io/netty/buffer/WrappedUnpooledUnsafeDirectByteBuf { ((Lio/netty/buffer/ByteBufAllocator;JIZ)V . }
| ~
memoryAddress J size doFree 4(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
isReadable ? B
8 ? 9
8 ? release ? B
8 ? ([[B)Lio/netty/buffer/ByteBuf; (I[[B)Lio/netty/buffer/ByteBuf; ( ?
? arrays [[B 5([Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; 6(I[Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf; ( ?
? buffers [Lio/netty/buffer/ByteBuf; 1([Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; 2(I[Ljava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; ( ?
? [Ljava/nio/ByteBuffer; java/util/ArrayList ? (I)V . ?
? ? ? java/util/List ? 3 add (Ljava/lang/Object;)Z ? ? ? ? isEmpty ? B ? ? io/netty/buffer/CompositeByteBuf ? ;(Lio/netty/buffer/ByteBufAllocator;ZILjava/lang/Iterable;)V . ?
? ? a
components +Ljava/util/List; Ljava/util/List; maxNumComponents ? ( ?
? C(Lio/netty/buffer/ByteBufAllocator;ZI[Lio/netty/buffer/ByteBuf;II)V . ?
? ? buf i +(Ljava/nio/ByteOrder;)Ljava/nio/ByteBuffer; Z ?
@ ? ( >
? ? b compositeBuffer $()Lio/netty/buffer/CompositeByteBuf; %(I)Lio/netty/buffer/CompositeByteBuf; ? ?
? '(Lio/netty/buffer/ByteBufAllocator;ZI)V . ?
? ? copiedBuffer clone ()Ljava/lang/Object; ? ?
? ? java/lang/System ? arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ? ?
? ? copy duplicate ()Ljava/nio/ByteBuffer; ? ?
@ ? get ([B)Ljava/nio/ByteBuffer; ? ?
@ ?
readableBytes ? O
8 ?
? readerIndex ? O
8 ?
writeBytes 6(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; ? ?
8 ? readable ? )
???? "java/lang/IllegalArgumentException ? 4The total length of the specified arrays is too big. ? (Ljava/lang/String;)V . ?
? ? j mergedArray ? ?
? ? java/nio/ByteOrder 5The total length of the specified buffers is too big.
8 \ equals ?
inconsistent byte order getBytes (I[BII)Lio/netty/buffer/ByteBuf;
8 bLen ? >
([BII)Ljava/nio/ByteBuffer; ?
@ M(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; java/lang/NullPointerException string
? java/nio/CharBuffer J(Ljava/nio/CharBuffer;Ljava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; ?
wrap /(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
! Ljava/lang/CharSequence; charset Ljava/nio/charset/Charset; O(Ljava/lang/CharSequence;IILjava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf;
I ()[C 2(
)
P
S 9([CIILjava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; ?-
. ()Ljava/nio/CharBuffer; 90
1 limit (I)Ljava/nio/Buffer;34
5 R4
7 1(Ljava/lang/CharSequence;II)Ljava/nio/CharBuffer;9
: Ljava/nio/CharBuffer; 7([CLjava/nio/charset/Charset;)Lio/netty/buffer/ByteBuf; 2 [C ([CII)Ljava/nio/CharBuffer;@
A io/netty/buffer/ByteBufUtilC
encodeString0 n(Lio/netty/buffer/ByteBufAllocator;ZLjava/nio/CharBuffer;Ljava/nio/charset/Charset;I)Lio/netty/buffer/ByteBuf;EF
DG unmodifiableBuffer Ljava/lang/Deprecated; io/netty/buffer/ReadOnlyByteBufK (Lio/netty/buffer/ByteBuf;)V .M
LN
P
L _
endianness copyInt writeIntU
8V value ([I)Lio/netty/buffer/ByteBuf; [IZ v values copyShort
writeShort_
8` ([S)Lio/netty/buffer/ByteBuf; [Sc
copyMedium writeMediumf
8g copyLong (J)Lio/netty/buffer/ByteBuf; writeLongkj
8l ([J)Lio/netty/buffer/ByteBuf; [Jo copyBoolean (Z)Lio/netty/buffer/ByteBuf; writeBooleansr
8t ([Z)Lio/netty/buffer/ByteBuf; [Zw copyFloat (F)Lio/netty/buffer/ByteBuf;
writeFloat{z
8| F ([F)Lio/netty/buffer/ByteBuf; [F?
copyDouble (D)Lio/netty/buffer/ByteBuf; writeDouble??
8? D ([D)Lio/netty/buffer/ByteBuf; [D? unreleasableBuffer #io/netty/buffer/UnreleasableByteBuf?
?N %io/netty/buffer/FixedCompositeByteBuf? ?(Lio/netty/buffer/ByteBufAllocator;[Lio/netty/buffer/ByteBuf;)V .?
?? ()V .?
? this Lio/netty/buffer/Unpooled; java/lang/Class? desiredAssertionStatus? B
??
? (io/netty/buffer/UnpooledByteBufAllocator? DEFAULT *Lio/netty/buffer/UnpooledByteBufAllocator;?? ?? ? P " ? io/netty/buffer/EmptyByteBuf? java/lang/AssertionError? %EMPTY_BUFFER must be an EmptyByteBuf.? (Ljava/lang/Object;)V .?
?? Code LineNumberTable LocalVariableTable
StackMapTable LocalVariableTypeTable
Deprecated RuntimeVisibleAnnotations
SourceFile 1
3 ? ! ? ? ? ? c ? ! ? ? ? ? k ? 4
? ? ? ?
? t ? 4
? ? ! ? ?
? } " ? ? ? ? $ ? ? % ? ? " ? ? ? ? ' ? ? % ? ? ( ) ? R *?? ? +?? -Y? **?? 1? ? 2 3 ? ? ? ?? ( 4 ? y !? ? +?? *?? *? 6?*? 6? ;? ? ! 2 3 ! <