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#getCharSequence()
The following examples show how to use
io.netty.buffer.ByteBuf#getCharSequence() .
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: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static Float textDecodeFLOAT4(int index, int len, ByteBuf buff) { // Todo optimize that CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return Float.parseFloat(cs.toString()); }
Example 2
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static double textDecodeFLOAT8(int index, int len, ByteBuf buff) { // Todo optimize that CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return Double.parseDouble(cs.toString()); }
Example 3
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static Number textDecodeNUMERIC(int index, int len, ByteBuf buff) { // Todo optimize that CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return Numeric.parse(cs.toString()); }
Example 4
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static LocalDate textDecodeDATE(int index, int len, ByteBuf buff) { CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return LocalDate.parse(cs); }
Example 5
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static LocalTime textDecodeTIME(int index, int len, ByteBuf buff) { CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return LocalTime.parse(cs); }
Example 6
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static OffsetTime textDecodeTIMETZ(int index, int len, ByteBuf buff) { CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return OffsetTime.parse(cs, TIMETZ_FORMAT); }
Example 7
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static LocalDateTime textDecodeTIMESTAMP(int index, int len, ByteBuf buff) { CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return LocalDateTime.parse(cs, TIMESTAMP_FORMAT); }
Example 8
Source File: DataTypeCodec.java From vertx-sql-client with Apache License 2.0 | 4 votes |
private static OffsetDateTime textDecodeTIMESTAMPTZ(int index, int len, ByteBuf buff) { CharSequence cs = buff.getCharSequence(index, len, StandardCharsets.UTF_8); return OffsetDateTime.parse(cs, TIMESTAMPTZ_FORMAT); }