Package-level declarations

Functions

Link copied to clipboard
fun ByteBuf.addCRC32(startIndex: Int): Int

Adds a 32-bit checksum of the buffer's slice, computed by starting from startIndex and ending at io.netty.buffer.ByteBuf.writerIndex.

Link copied to clipboard
fun ByteBuf.checkCRC32(): Boolean

Checks whether the checksum written with the payload matches the checksum of the payload itself. Note that the checksum is computed starting at the readerIndex = 0. The readerIndex is expected to be at the end of the crc32 value itself.

Link copied to clipboard
fun ByteBuf.g1(): Int

Reads an unsigned byte from this buffer.

Link copied to clipboard
fun ByteBuf.g1Alt1(): Int

Reads an unsigned byte from this buffer with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g1Alt2(): Int

Reads an unsigned byte from this buffer with the 0 - value byte modification.

Link copied to clipboard
fun ByteBuf.g1Alt3(): Int

Reads an unsigned byte from this buffer with the 128 - value byte modification.

Link copied to clipboard
fun ByteBuf.g1s(): Int

Reads a signed byte from this buffer.

Link copied to clipboard
fun ByteBuf.g1sAlt1(): Int

Reads a signed byte from this buffer with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g1sAlt2(): Int

Reads a signed byte from this buffer with the 0 - value byte modification.

Link copied to clipboard
fun ByteBuf.g1sAlt3(): Int

Reads a signed byte from this buffer with the 128 - value byte modification.

Link copied to clipboard
fun ByteBuf.g2(): Int

Reads an unsigned short from this buffer.

Link copied to clipboard
fun ByteBuf.g2Alt1(): Int

Reads an unsigned short with the LITTLE_ENDIAN order from this buffer.

Link copied to clipboard
fun ByteBuf.g2Alt2(): Int

Reads an unsigned short from this buffer. The higher order bits of this short are modified with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g2Alt3(): Int

Reads an unsigned short from this buffer in the LITTLE_ENDIAN order. The lower order bits of this short are modified with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g2s(): Int

Reads a signed short from this buffer.

Link copied to clipboard
fun ByteBuf.g2sAlt1(): Int

Reads a signed short with the LITTLE_ENDIAN order from this buffer.

Link copied to clipboard
fun ByteBuf.g2sAlt2(): Int

Reads a signed short from this buffer. The higher order bits of this short are modified with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g2sAlt3(): Int

Reads a signed short from this buffer in the LITTLE_ENDIAN order. The lower order bits of this short are modified with the value - 128 byte modification.

Link copied to clipboard
fun ByteBuf.g3(): Int

Reads a 24-bit unsigned medium integer from this buffer.

Link copied to clipboard
fun ByteBuf.g3Alt1(): Int

Reads a 24-bit unsigned medium integer with the LITTLE_ENDIAN order from this buffer.

Link copied to clipboard
fun ByteBuf.g3Alt2(): Int
Link copied to clipboard
fun ByteBuf.g3Alt3(): Int
Link copied to clipboard
fun ByteBuf.g3s(): Int

Reads a 24-bit signed medium integer from this buffer.

Link copied to clipboard
fun ByteBuf.g3sAlt1(): Int

Reads a 24-bit signed medium integer with the LITTLE_ENDIAN order from this buffer.

Link copied to clipboard
fun ByteBuf.g3sAlt2(): Int
Link copied to clipboard
fun ByteBuf.g3sAlt3(): Int
Link copied to clipboard
fun ByteBuf.g4(): Int
Link copied to clipboard
fun ByteBuf.g4Alt1(): Int
Link copied to clipboard
fun ByteBuf.g4Alt2(): Int
Link copied to clipboard
fun ByteBuf.g4Alt3(): Int
Link copied to clipboard
fun ByteBuf.g4f(): Float
Link copied to clipboard
fun ByteBuf.g8(): Long
Link copied to clipboard
fun ByteBuf.g8d(): Double
Link copied to clipboard
fun ByteBuf.gboolean(): Boolean
Link copied to clipboard
fun ByteBuf.gdata(dest: ByteBuf, offset: Int = readerIndex(), length: Int = readableBytes())
fun ByteBuf.gdata(dest: ByteArray, offset: Int = 0, length: Int = dest.size)
Link copied to clipboard
fun ByteBuf.gdataAlt1(dest: ByteBuf, offset: Int = readerIndex(), length: Int = readableBytes())
fun ByteBuf.gdataAlt1(dest: ByteArray, offset: Int = 0, length: Int = dest.size)
Link copied to clipboard
fun ByteBuf.gdataAlt2(dest: ByteBuf, offset: Int = readerIndex(), length: Int = readableBytes())
fun ByteBuf.gdataAlt2(dest: ByteArray, offset: Int = 0, length: Int = dest.size)
Link copied to clipboard
fun ByteBuf.gdataAlt3(dest: ByteBuf, offset: Int = readerIndex(), length: Int = readableBytes())
fun ByteBuf.gdataAlt3(dest: ByteArray, offset: Int = 0, length: Int = dest.size)
Link copied to clipboard
fun ByteBuf.gjstr(): String
Link copied to clipboard
fun ByteBuf.gjstr2(): String
Link copied to clipboard
fun ByteBuf.gjstrnull(): String?
Link copied to clipboard
fun ByteBuf.gSmart1or2(): Int
Link copied to clipboard
fun ByteBuf.gSmart1or2extended(): Int
Link copied to clipboard
fun ByteBuf.gSmart1or2null(): Int
Link copied to clipboard
fun ByteBuf.gSmart1or2s(): Int
Link copied to clipboard
fun ByteBuf.gSmart2or4(): Int
Link copied to clipboard
fun ByteBuf.gSmart2or4null(): Int
Link copied to clipboard
fun ByteBuf.gVarInt(): Int
Link copied to clipboard
fun ByteBuf.p1(value: Int): ByteBuf

Writes a byte with the value of value to this buffer. The 24 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p1Alt1(value: Int): ByteBuf

Writes a byte with the value of value to this buffer, using the value - 128 byte modification. The 24 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p1Alt2(value: Int): ByteBuf

Writes a byte with the value of value to this buffer, using the 0 - value byte modification. The 24 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p1Alt3(value: Int): ByteBuf

Writes a byte with the value of value to this buffer, using the 128 - value byte modification. The 24 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p2(value: Int): ByteBuf

Writes a short with the value of value to this buffer. The 16 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p2Alt1(value: Int): ByteBuf

Writes a short with the value of value to this buffer in the LITTLE_ENDIAN order. The 16 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p2Alt2(value: Int): ByteBuf

Writes a short with the value of value to this buffer with the value + 128 byte modification on the higher order bits of this short. The 16 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p2Alt3(value: Int): ByteBuf

Writes a short with the value of value to this buffer with the value + 128 byte modification on the lower order bits of this short. The 16 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p3(value: Int): ByteBuf

Writes a 24-bit medium integer with the value of value to this buffer. The 8 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p3Alt1(value: Int): ByteBuf

Writes a 24-bit medium integer with the value of value using LITTLE_ENDIAN order to this buffer. The 8 high-order bits of the specified value are ignored.

Link copied to clipboard
fun ByteBuf.p3Alt2(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p3Alt3(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p4(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p4Alt1(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p4Alt2(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p4Alt3(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.p4f(value: Float): ByteBuf
Link copied to clipboard
fun ByteBuf.p8(value: Long): ByteBuf
Link copied to clipboard
fun ByteBuf.p8d(value: Double): ByteBuf
Link copied to clipboard
fun ByteBuf.pboolean(value: Boolean): ByteBuf
Link copied to clipboard
fun ByteBuf.pdata(src: ByteBuf, offset: Int = src.readerIndex(), length: Int = src.readableBytes()): ByteBuf
fun ByteBuf.pdata(src: ByteArray, offset: Int = 0, length: Int = src.size): ByteBuf
Link copied to clipboard
fun ByteBuf.pdataAlt1(data: ByteBuf, offset: Int = data.readerIndex(), length: Int = data.readableBytes()): ByteBuf
fun ByteBuf.pdataAlt1(data: ByteArray, offset: Int = 0, length: Int = data.size): ByteBuf
Link copied to clipboard
fun ByteBuf.pdataAlt2(data: ByteBuf, offset: Int = data.readerIndex(), length: Int = data.readableBytes()): ByteBuf
fun ByteBuf.pdataAlt2(data: ByteArray, offset: Int = 0, length: Int = data.size): ByteBuf
Link copied to clipboard
fun ByteBuf.pdataAlt3(data: ByteBuf, offset: Int = data.readerIndex(), length: Int = data.readableBytes()): ByteBuf
fun ByteBuf.pdataAlt3(data: ByteArray, offset: Int = 0, length: Int = data.size): ByteBuf
Link copied to clipboard
fun ByteBuf.pjstr(s: CharSequence, charset: Charset = Cp1252Charset): ByteBuf
Link copied to clipboard
fun ByteBuf.pjstr2(s: CharSequence): ByteBuf
Link copied to clipboard
fun ByteBuf.pjstrnull(s: CharSequence?, charset: Charset = Cp1252Charset): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart1or2(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart1or2extended(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart1or2null(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart1or2s(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart2or4(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pSmart2or4null(value: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.pVarInt(v: Int): ByteBuf
Link copied to clipboard
fun ByteBuf.toByteArray(): ByteArray

Reads the remaining contents of the ByteBuf into a byte array. This function will increase ByteBuf.writerIndex by ByteBuf.readableBytes

Link copied to clipboard
fun ByteBuf.toJagByteBuf(): JagByteBuf