![JAR search and dependency download from the Maven repository](/logo.png)
classes.io.netty.buffer.UnpooledHeapByteBuf.class Maven / Gradle / Ivy
The newest version!
???? 2?
i ? j
? ? ? ?
h
h
h
h ~ h
h
h
h
h
h
h
h
!
-"
-#
$%
h&
h'
h(
-)
-*
+,
+-./0
12
h3 h4
h5
6
h!
-7
89:;<
1=
->
-?
h@
hA
hB
CD
hE
CF
hG
CH
hI
CJ
hK
CL
hM
CN
hO
CP
hQ
CR
hS
CT
hU
CV
hW
CX
hY
CZ
h[
C\
h]
C^
h_
C`
ha
Cb
hc
Cd
he
Cf
hg
hhij
k lmno alloc "Lio/netty/buffer/ByteBufAllocator; array [B tmpNioBuf Ljava/nio/ByteBuffer; '(Lio/netty/buffer/ByteBufAllocator;II)V Code LineNumberTable LocalVariableTable this %Lio/netty/buffer/UnpooledHeapByteBuf; initialCapacity I maxCapacity
StackMapTablenp ((Lio/netty/buffer/ByteBufAllocator;[BI)V initialArray m
allocateArray (I)[B freeArray ([B)V setArray $()Lio/netty/buffer/ByteBufAllocator; order ()Ljava/nio/ByteOrder; isDirect ()Z capacity ()I (I)Lio/netty/buffer/ByteBuf; bytesToCopy newCapacity oldArray oldCapacity newArray hasArray ()[B arrayOffset hasMemoryAddress
memoryAddress ()J getBytes 7(ILio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf; index dst Lio/netty/buffer/ByteBuf; dstIndex length (I[BII)Lio/netty/buffer/ByteBuf; 1(ILjava/nio/ByteBuffer;)Lio/netty/buffer/ByteBuf; 3(ILjava/io/OutputStream;I)Lio/netty/buffer/ByteBuf; out Ljava/io/OutputStream;
Exceptionsq -(ILjava/nio/channels/GatheringByteChannel;I)I (Ljava/nio/channels/GatheringByteChannel; %(ILjava/nio/channels/FileChannel;JI)I Ljava/nio/channels/FileChannel; position J .(ILjava/nio/channels/GatheringByteChannel;IZ)I tmpBuf internal Z. &(ILjava/nio/channels/FileChannel;JIZ)I readBytes ,(Ljava/nio/channels/GatheringByteChannel;I)I $(Ljava/nio/channels/FileChannel;JI)I setBytes src srcIndex (ILjava/io/InputStream;I)I in Ljava/io/InputStream; .(ILjava/nio/channels/ScatteringByteChannel;I)I ignored *Ljava/nio/channels/ClosedChannelException; )Ljava/nio/channels/ScatteringByteChannel;< nioBufferCount nioBuffer (II)Ljava/nio/ByteBuffer;
nioBuffers (II)[Ljava/nio/ByteBuffer; internalNioBuffer getByte (I)B _getByte getShort (I)S _getShort
getShortLE _getShortLE getUnsignedMedium (I)I _getUnsignedMedium getUnsignedMediumLE _getUnsignedMediumLE getInt _getInt getIntLE _getIntLE getLong (I)J _getLong getLongLE
_getLongLE setByte (II)Lio/netty/buffer/ByteBuf; value _setByte (II)V setShort _setShort
setShortLE _setShortLE setMedium
_setMedium setMediumLE _setMediumLE setInt _setInt setIntLE _setIntLE setLong (IJ)Lio/netty/buffer/ByteBuf; _setLong (IJ)V setLongLE
_setLongLE copy ()Ljava/nio/ByteBuffer;
deallocate ()V unwrap ()Lio/netty/buffer/ByteBuf;
SourceFile UnpooledHeapByteBuf.java prstu "java/lang/IllegalArgumentException %initialCapacity(%d) > maxCapacity(%d) java/lang/Objectvwxyz{ p| j k ? ? ? ?} ? l m n o~??r?r??? ? ?? ? 'java/lang/UnsupportedOperationException p ?? ? ??? ? ? ? ???? ? ? l ? ? ? ? ? ? ?? ?????? ? ? ? ? ? ?????? ???? java/nio/ByteBuffer???????r? x???????????? (java/nio/channels/ClosedChannelException????? ? ? ?? ? ? ?? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? ? ? ?? j ? y ?p? ????? m #io/netty/buffer/UnpooledHeapByteBuf /io/netty/buffer/AbstractReferenceCountedByteBuf io/netty/buffer/ByteBufAllocator java/io/IOException (I)V !io/netty/util/internal/ObjectUtil checkNotNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; java/lang/Integer valueOf (I)Ljava/lang/Integer; java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; (Ljava/lang/String;)V setIndex java/nio/ByteOrder
BIG_ENDIAN Ljava/nio/ByteOrder; checkNewCapacity trimIndicesToCapacity java/lang/System arraycopy *(Ljava/lang/Object;ILjava/lang/Object;II)V ensureAccessible io/netty/buffer/ByteBuf
checkDstIndex (IIII)V (io/netty/util/internal/PlatformDependent
copyMemory ([BIJJ)V remaining put ([BII)Ljava/nio/ByteBuffer; java/io/OutputStream write ([BII)V wrap ([B)Ljava/nio/ByteBuffer; clear ()Ljava/nio/Buffer; java/nio/Buffer (I)Ljava/nio/Buffer; limit &java/nio/channels/GatheringByteChannel (Ljava/nio/ByteBuffer;)I java/nio/channels/FileChannel (Ljava/nio/ByteBuffer;J)I checkReadableBytes readerIndex
checkSrcIndex (J[BIJ)V get java/io/InputStream read ([BII)I 'java/nio/channels/ScatteringByteChannel slice
checkIndex io/netty/buffer/HeapByteBufUtil ([BI)B ([BI)S ([BI)I ([BI)J ([BIJ)V
heapBuffer
writeBytes ([BII)Lio/netty/buffer/ByteBuf; "io/netty/util/internal/EmptyArrays EMPTY_BYTES ! h i j k l m n o K p q r ? F*? +? W? "? Y? Y? SY? S? ? ?*+?
**? ? *?
W? s *
3 5 7 8 9 ) 8 0 <