interface MutableBytes : Bytes
(source)
A mutable Bytes
value.
EMPTY |
The empty value (with 0 bytes). static val EMPTY: MutableBytes! |
clear |
Set all bytes in this value to 0. open fun clear(): Unit |
create |
Create a new mutable byte value. open static fun create(size: Int): MutableBytes! |
decrement |
Decrements the value of the bytes by 1, treating the value as big endian. If decrementing underflows the value then all bits flip, i.e. decrementing 0x0000 will return 0xFFFF. open fun decrement(): MutableBytes! |
fill |
Fill all the bytes of this value with the specified byte. open fun fill(b: Byte): Unit |
increment |
Increments the value of the bytes by 1, treating the value as big endian. If incrementing overflows the value then all bits flip, i.e. incrementing 0xFFFF will return 0x0000. open fun increment(): MutableBytes! |
mutableSlice |
Create a mutable slice of the bytes of this value. abstract fun mutableSlice(i: Int, length: Int): MutableBytes! |
of |
Create a value that contains the specified bytes in their specified order. open static fun of(vararg bytes: Byte): MutableBytes! open static fun of(vararg bytes: Int): MutableBytes! |
set |
Set a byte in this value. abstract fun set(i: Int, b: Byte): Unit open fun set(offset: Int, bytes: Bytes!): Unit |
setInt |
Set the 4 bytes starting at the specified index to the specified integer value. open fun setInt(i: Int, value: Int): Unit |
setLong |
Set the 8 bytes starting at the specified index to the specified long value. open fun setLong(i: Int, value: Long): Unit |
wrap |
Wrap a byte array in a open static fun wrap(value: ByteArray!): MutableBytes!
Wrap a slice of a byte array as a open static fun wrap(value: ByteArray!, offset: Int, length: Int): MutableBytes! |
wrapBuffer |
Wrap a full Vert.x open static fun wrapBuffer(buffer: Buffer!): MutableBytes!
Wrap a slice of a Vert.x open static fun wrapBuffer(buffer: Buffer!, offset: Int, size: Int): MutableBytes! |
wrapByteBuf |
Wrap a full Netty open static fun wrapByteBuf(byteBuf: ByteBuf!): MutableBytes!
Wrap a slice of a Netty open static fun wrapByteBuf(byteBuf: ByteBuf!, offset: Int, size: Int): MutableBytes! |
wrapByteBuffer |
Wrap a full Java NIO open static fun wrapByteBuffer(byteBuffer: ByteBuffer!): MutableBytes!
Wrap a slice of a Java NIO open static fun wrapByteBuffer(byteBuffer: ByteBuffer!, offset: Int, size: Int): MutableBytes! |
DelegatingMutableBytes |
A class that holds and delegates all operations to its inner bytes field. open class DelegatingMutableBytes : MutableBytes |
MutableByteBufferWrappingBytes |
open class MutableByteBufferWrappingBytes : ByteBufferWrappingBytes, MutableBytes |
MutableBytes32 |
A mutable interface MutableBytes32 : MutableBytes, Bytes32 |
MutableBytes48 |
A mutable interface MutableBytes48 : MutableBytes, Bytes48 |