Available Methods
- writeBytes ( )
- readableBytes ( )
- writeByte ( )
- release ( )
- writeInt ( )
- readBytes ( )
- readInt ( )
- readByte ( )
- writeShort ( )
- readerIndex ( )
- writeBoolean ( )
- isReadable ( )
- skipBytes ( )
- writerIndex ( )
- readUnsignedByte ( )
- writeLong ( )
- readBoolean ( )
- toString ( )
- readUnsignedShort ( )
- getByte ( )
- markReaderIndex ( )
- resetReaderIndex ( )
- readLong ( )
- readShort ( )
- getBytes ( )
- slice ( )
- writeIntLE ( )
- readSlice ( )
- writeFloatLE ( )
- writeCharSequence ( )
- writeZero ( )
- nioBuffer ( )
- writeShortLE ( )
- retain ( )
- readUnsignedInt ( )
- hasArray ( )
- writeLongLE ( )
- array ( )
- getUnsignedByte ( )
- readFloatLE ( )
- capacity ( )
- writeFloat ( )
- writeDouble ( )
- writeMedium ( )
- setInt ( )
- readDouble ( )
- readIntLE ( )
- forEachByte ( )
- clear ( )
- getInt ( )
- readUnsignedShortLE ( )
- copy ( )
- ensureWritable ( )
- readShortLE ( )
- readLongLE ( )
- order ( )
- arrayOffset ( )
- setByte ( )
- refCnt ( )
- internalNioBuffer ( )
- readFloat ( )
- nioBufferCount ( )
- getShort ( )
- readRetainedSlice ( )
- getLong ( )
- readUnsignedIntLE ( )
- resetWriterIndex ( )
- setBytes ( )
- writeMediumLE ( )
- indexOf ( )
- retainedSlice ( )
- retainedDuplicate ( )
- isWritable ( )
- readCharSequence ( )
- isDirect ( )
- bytesBefore ( )
- getUnsignedShort ( )
- duplicate ( )
- hasMemoryAddress ( )
- readUnsignedMediumLE ( )
- writableBytes ( )
- memoryAddress ( )
- markWriterIndex ( )
- discardReadBytes ( )
- nioBuffers ( )
- touch ( )
- setIntLE ( )
- getUnsignedMedium ( )
- getUnsignedInt ( )
- equals ( )
- setShort ( )
- writeChar ( )
- maxCapacity ( )
- setMediumLE ( )
- forEachByteDesc ( )
- getDouble ( )
- writeDoubleLE ( )
- getIntLE ( )
- readChar ( )
- getCharSequence ( )
- setLong ( )
- setShortLE ( )
- setIndex ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.util.concurrent.TimeUnit
- java.util.UUID
- java.nio.charset.Charset
- java.net.URI
- java.nio.ByteBuffer
- org.junit.Assert
- java.util.Optional
- java.nio.charset.StandardCharsets
- java.net.InetSocketAddress
- java.util.concurrent.CountDownLatch
- com.google.common.collect.Lists
- org.mockito.Mockito
- java.util.concurrent.CompletableFuture
- com.google.common.base.Preconditions
- org.junit.jupiter.api.Test
- io.netty.channel.ChannelHandlerContext
- org.testng.annotations.Test
- io.netty.channel.Channel
- io.netty.buffer.Unpooled
- io.netty.channel.ChannelFuture
- io.netty.channel.ChannelFutureListener
- reactor.core.publisher.Mono
- reactor.core.publisher.Flux
Java Code Examples for io.netty.buffer.ByteBuf#getIntLE()
The following examples show how to use
io.netty.buffer.ByteBuf#getIntLE() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MysqlServerHandler.java From antsdb with GNU Lesser General Public License v3.0 | 6 votes |
private void run(ChannelHandlerContext ctx, ByteBuf buf) throws Exception { int readerIndex = buf.readerIndex() - 4; buf.readerIndex(readerIndex); int size = buf.getIntLE(readerIndex) & 0xffffff; ByteBuffer niobuf = buf.nioBuffer(readerIndex, size + 4); niobuf.order(ByteOrder.LITTLE_ENDIAN); buf.readerIndex(readerIndex + size + 4); int result = this.mysession.run(niobuf); if (result == 1) { return; } else if (result == -1) { switchToSSL(); return; } else if (result == -2) { ctx.close(); return; } else { throw new IllegalArgumentException(); } }
Example 2
Source File: PacketDecoder.java From antsdb with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void decode(ChannelHandlerContext ctx, ByteBuf in, List<Object> out) throws Exception { // do we have length field in buffer ? if (!in.isReadable(4)) { return; } // do we have entire packet in the buffer? int readerIndex = in.readerIndex(); int size = in.getIntLE(readerIndex) & 0xffffff; if (in.readableBytes() < size + 4) { return; } // continue in.readInt(); out.add(in); }
Example 3
Source File: ConvChannelManager.java From java-Kcp with Apache License 2.0 | 4 votes |
private int getConv(DatagramPacket msg) { ByteBuf byteBuf = msg.content(); return byteBuf.getIntLE(byteBuf.readerIndex() + convIndex); }