Package io.quarkus.vertx.core.runtime
Class VertxBufferImpl
- java.lang.Object
-
- io.quarkus.vertx.core.runtime.VertxBufferImpl
-
- All Implemented Interfaces:
io.vertx.core.buffer.Buffer
,io.vertx.core.shareddata.impl.ClusterSerializable
,io.vertx.core.shareddata.Shareable
public class VertxBufferImpl extends Object implements io.vertx.core.buffer.Buffer
-
-
Constructor Summary
Constructors Constructor Description VertxBufferImpl(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.buffer.Buffer
appendBuffer(io.vertx.core.buffer.Buffer buff)
io.vertx.core.buffer.Buffer
appendBuffer(io.vertx.core.buffer.Buffer buff, int offset, int len)
io.vertx.core.buffer.Buffer
appendByte(byte b)
io.vertx.core.buffer.Buffer
appendBytes(byte[] bytes)
io.vertx.core.buffer.Buffer
appendBytes(byte[] bytes, int offset, int len)
io.vertx.core.buffer.Buffer
appendDouble(double d)
io.vertx.core.buffer.Buffer
appendFloat(float f)
io.vertx.core.buffer.Buffer
appendInt(int i)
io.vertx.core.buffer.Buffer
appendIntLE(int i)
io.vertx.core.buffer.Buffer
appendLong(long l)
io.vertx.core.buffer.Buffer
appendLongLE(long l)
io.vertx.core.buffer.Buffer
appendMedium(int i)
io.vertx.core.buffer.Buffer
appendMediumLE(int i)
io.vertx.core.buffer.Buffer
appendShort(short s)
io.vertx.core.buffer.Buffer
appendShortLE(short s)
io.vertx.core.buffer.Buffer
appendString(String str)
io.vertx.core.buffer.Buffer
appendString(String str, String enc)
io.vertx.core.buffer.Buffer
appendUnsignedByte(short b)
io.vertx.core.buffer.Buffer
appendUnsignedInt(long i)
io.vertx.core.buffer.Buffer
appendUnsignedIntLE(long i)
io.vertx.core.buffer.Buffer
appendUnsignedShort(int s)
io.vertx.core.buffer.Buffer
appendUnsignedShortLE(int s)
io.vertx.core.buffer.Buffer
copy()
boolean
equals(Object o)
io.vertx.core.buffer.Buffer
getBuffer(int start, int end)
byte
getByte(int pos)
io.netty.buffer.ByteBuf
getByteBuf()
byte[]
getBytes()
io.vertx.core.buffer.Buffer
getBytes(byte[] dst)
io.vertx.core.buffer.Buffer
getBytes(byte[] dst, int dstIndex)
byte[]
getBytes(int start, int end)
io.vertx.core.buffer.Buffer
getBytes(int start, int end, byte[] dst)
io.vertx.core.buffer.Buffer
getBytes(int start, int end, byte[] dst, int dstIndex)
double
getDouble(int pos)
float
getFloat(int pos)
int
getInt(int pos)
int
getIntLE(int pos)
long
getLong(int pos)
long
getLongLE(int pos)
int
getMedium(int pos)
int
getMediumLE(int pos)
short
getShort(int pos)
short
getShortLE(int pos)
String
getString(int start, int end)
String
getString(int start, int end, String enc)
short
getUnsignedByte(int pos)
long
getUnsignedInt(int pos)
long
getUnsignedIntLE(int pos)
int
getUnsignedMedium(int pos)
int
getUnsignedMediumLE(int pos)
int
getUnsignedShort(int pos)
int
getUnsignedShortLE(int pos)
int
hashCode()
int
length()
int
readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)
io.vertx.core.buffer.Buffer
setBuffer(int pos, io.vertx.core.buffer.Buffer b)
io.vertx.core.buffer.Buffer
setBuffer(int pos, io.vertx.core.buffer.Buffer b, int offset, int len)
io.vertx.core.buffer.Buffer
setByte(int pos, byte b)
io.vertx.core.buffer.Buffer
setBytes(int pos, byte[] b)
io.vertx.core.buffer.Buffer
setBytes(int pos, byte[] b, int offset, int len)
VertxBufferImpl
setBytes(int pos, ByteBuffer b)
io.vertx.core.buffer.Buffer
setDouble(int pos, double d)
io.vertx.core.buffer.Buffer
setFloat(int pos, float f)
io.vertx.core.buffer.Buffer
setInt(int pos, int i)
io.vertx.core.buffer.Buffer
setIntLE(int pos, int i)
io.vertx.core.buffer.Buffer
setLong(int pos, long l)
io.vertx.core.buffer.Buffer
setLongLE(int pos, long l)
io.vertx.core.buffer.Buffer
setMedium(int pos, int i)
io.vertx.core.buffer.Buffer
setMediumLE(int pos, int i)
io.vertx.core.buffer.Buffer
setShort(int pos, short s)
io.vertx.core.buffer.Buffer
setShortLE(int pos, short s)
io.vertx.core.buffer.Buffer
setString(int pos, String str)
io.vertx.core.buffer.Buffer
setString(int pos, String str, String enc)
io.vertx.core.buffer.Buffer
setUnsignedByte(int pos, short b)
io.vertx.core.buffer.Buffer
setUnsignedInt(int pos, long i)
io.vertx.core.buffer.Buffer
setUnsignedIntLE(int pos, long i)
io.vertx.core.buffer.Buffer
setUnsignedShort(int pos, int s)
io.vertx.core.buffer.Buffer
setUnsignedShortLE(int pos, int s)
io.vertx.core.buffer.Buffer
slice()
io.vertx.core.buffer.Buffer
slice(int start, int end)
io.vertx.core.json.JsonArray
toJsonArray()
io.vertx.core.json.JsonObject
toJsonObject()
String
toString()
String
toString(String enc)
String
toString(Charset enc)
void
writeToBuffer(io.vertx.core.buffer.Buffer buff)
-
-
-
Method Detail
-
toString
public String toString()
-
toString
public String toString(String enc)
- Specified by:
toString
in interfaceio.vertx.core.buffer.Buffer
-
toString
public String toString(Charset enc)
- Specified by:
toString
in interfaceio.vertx.core.buffer.Buffer
-
toJsonObject
public io.vertx.core.json.JsonObject toJsonObject()
- Specified by:
toJsonObject
in interfaceio.vertx.core.buffer.Buffer
-
toJsonArray
public io.vertx.core.json.JsonArray toJsonArray()
- Specified by:
toJsonArray
in interfaceio.vertx.core.buffer.Buffer
-
getByte
public byte getByte(int pos)
- Specified by:
getByte
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedByte
public short getUnsignedByte(int pos)
- Specified by:
getUnsignedByte
in interfaceio.vertx.core.buffer.Buffer
-
getInt
public int getInt(int pos)
- Specified by:
getInt
in interfaceio.vertx.core.buffer.Buffer
-
getIntLE
public int getIntLE(int pos)
- Specified by:
getIntLE
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedInt
public long getUnsignedInt(int pos)
- Specified by:
getUnsignedInt
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedIntLE
public long getUnsignedIntLE(int pos)
- Specified by:
getUnsignedIntLE
in interfaceio.vertx.core.buffer.Buffer
-
getLong
public long getLong(int pos)
- Specified by:
getLong
in interfaceio.vertx.core.buffer.Buffer
-
getLongLE
public long getLongLE(int pos)
- Specified by:
getLongLE
in interfaceio.vertx.core.buffer.Buffer
-
getDouble
public double getDouble(int pos)
- Specified by:
getDouble
in interfaceio.vertx.core.buffer.Buffer
-
getFloat
public float getFloat(int pos)
- Specified by:
getFloat
in interfaceio.vertx.core.buffer.Buffer
-
getShort
public short getShort(int pos)
- Specified by:
getShort
in interfaceio.vertx.core.buffer.Buffer
-
getShortLE
public short getShortLE(int pos)
- Specified by:
getShortLE
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedShort
public int getUnsignedShort(int pos)
- Specified by:
getUnsignedShort
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedShortLE
public int getUnsignedShortLE(int pos)
- Specified by:
getUnsignedShortLE
in interfaceio.vertx.core.buffer.Buffer
-
getMedium
public int getMedium(int pos)
- Specified by:
getMedium
in interfaceio.vertx.core.buffer.Buffer
-
getMediumLE
public int getMediumLE(int pos)
- Specified by:
getMediumLE
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedMedium
public int getUnsignedMedium(int pos)
- Specified by:
getUnsignedMedium
in interfaceio.vertx.core.buffer.Buffer
-
getUnsignedMediumLE
public int getUnsignedMediumLE(int pos)
- Specified by:
getUnsignedMediumLE
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public byte[] getBytes()
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public byte[] getBytes(int start, int end)
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(byte[] dst)
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(byte[] dst, int dstIndex)
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst)
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBytes
public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst, int dstIndex)
- Specified by:
getBytes
in interfaceio.vertx.core.buffer.Buffer
-
getBuffer
public io.vertx.core.buffer.Buffer getBuffer(int start, int end)
- Specified by:
getBuffer
in interfaceio.vertx.core.buffer.Buffer
-
getString
public String getString(int start, int end, String enc)
- Specified by:
getString
in interfaceio.vertx.core.buffer.Buffer
-
getString
public String getString(int start, int end)
- Specified by:
getString
in interfaceio.vertx.core.buffer.Buffer
-
appendBuffer
public io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff)
- Specified by:
appendBuffer
in interfaceio.vertx.core.buffer.Buffer
-
appendBuffer
public io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff, int offset, int len)
- Specified by:
appendBuffer
in interfaceio.vertx.core.buffer.Buffer
-
appendBytes
public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes)
- Specified by:
appendBytes
in interfaceio.vertx.core.buffer.Buffer
-
appendBytes
public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes, int offset, int len)
- Specified by:
appendBytes
in interfaceio.vertx.core.buffer.Buffer
-
appendByte
public io.vertx.core.buffer.Buffer appendByte(byte b)
- Specified by:
appendByte
in interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedByte
public io.vertx.core.buffer.Buffer appendUnsignedByte(short b)
- Specified by:
appendUnsignedByte
in interfaceio.vertx.core.buffer.Buffer
-
appendInt
public io.vertx.core.buffer.Buffer appendInt(int i)
- Specified by:
appendInt
in interfaceio.vertx.core.buffer.Buffer
-
appendIntLE
public io.vertx.core.buffer.Buffer appendIntLE(int i)
- Specified by:
appendIntLE
in interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedInt
public io.vertx.core.buffer.Buffer appendUnsignedInt(long i)
- Specified by:
appendUnsignedInt
in interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedIntLE
public io.vertx.core.buffer.Buffer appendUnsignedIntLE(long i)
- Specified by:
appendUnsignedIntLE
in interfaceio.vertx.core.buffer.Buffer
-
appendMedium
public io.vertx.core.buffer.Buffer appendMedium(int i)
- Specified by:
appendMedium
in interfaceio.vertx.core.buffer.Buffer
-
appendMediumLE
public io.vertx.core.buffer.Buffer appendMediumLE(int i)
- Specified by:
appendMediumLE
in interfaceio.vertx.core.buffer.Buffer
-
appendLong
public io.vertx.core.buffer.Buffer appendLong(long l)
- Specified by:
appendLong
in interfaceio.vertx.core.buffer.Buffer
-
appendLongLE
public io.vertx.core.buffer.Buffer appendLongLE(long l)
- Specified by:
appendLongLE
in interfaceio.vertx.core.buffer.Buffer
-
appendShort
public io.vertx.core.buffer.Buffer appendShort(short s)
- Specified by:
appendShort
in interfaceio.vertx.core.buffer.Buffer
-
appendShortLE
public io.vertx.core.buffer.Buffer appendShortLE(short s)
- Specified by:
appendShortLE
in interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedShort
public io.vertx.core.buffer.Buffer appendUnsignedShort(int s)
- Specified by:
appendUnsignedShort
in interfaceio.vertx.core.buffer.Buffer
-
appendUnsignedShortLE
public io.vertx.core.buffer.Buffer appendUnsignedShortLE(int s)
- Specified by:
appendUnsignedShortLE
in interfaceio.vertx.core.buffer.Buffer
-
appendFloat
public io.vertx.core.buffer.Buffer appendFloat(float f)
- Specified by:
appendFloat
in interfaceio.vertx.core.buffer.Buffer
-
appendDouble
public io.vertx.core.buffer.Buffer appendDouble(double d)
- Specified by:
appendDouble
in interfaceio.vertx.core.buffer.Buffer
-
appendString
public io.vertx.core.buffer.Buffer appendString(String str, String enc)
- Specified by:
appendString
in interfaceio.vertx.core.buffer.Buffer
-
appendString
public io.vertx.core.buffer.Buffer appendString(String str)
- Specified by:
appendString
in interfaceio.vertx.core.buffer.Buffer
-
setByte
public io.vertx.core.buffer.Buffer setByte(int pos, byte b)
- Specified by:
setByte
in interfaceio.vertx.core.buffer.Buffer
-
setUnsignedByte
public io.vertx.core.buffer.Buffer setUnsignedByte(int pos, short b)
- Specified by:
setUnsignedByte
in interfaceio.vertx.core.buffer.Buffer
-
setInt
public io.vertx.core.buffer.Buffer setInt(int pos, int i)
- Specified by:
setInt
in interfaceio.vertx.core.buffer.Buffer
-
setIntLE
public io.vertx.core.buffer.Buffer setIntLE(int pos, int i)
- Specified by:
setIntLE
in interfaceio.vertx.core.buffer.Buffer
-
setUnsignedInt
public io.vertx.core.buffer.Buffer setUnsignedInt(int pos, long i)
- Specified by:
setUnsignedInt
in interfaceio.vertx.core.buffer.Buffer
-
setUnsignedIntLE
public io.vertx.core.buffer.Buffer setUnsignedIntLE(int pos, long i)
- Specified by:
setUnsignedIntLE
in interfaceio.vertx.core.buffer.Buffer
-
setMedium
public io.vertx.core.buffer.Buffer setMedium(int pos, int i)
- Specified by:
setMedium
in interfaceio.vertx.core.buffer.Buffer
-
setMediumLE
public io.vertx.core.buffer.Buffer setMediumLE(int pos, int i)
- Specified by:
setMediumLE
in interfaceio.vertx.core.buffer.Buffer
-
setLong
public io.vertx.core.buffer.Buffer setLong(int pos, long l)
- Specified by:
setLong
in interfaceio.vertx.core.buffer.Buffer
-
setLongLE
public io.vertx.core.buffer.Buffer setLongLE(int pos, long l)
- Specified by:
setLongLE
in interfaceio.vertx.core.buffer.Buffer
-
setDouble
public io.vertx.core.buffer.Buffer setDouble(int pos, double d)
- Specified by:
setDouble
in interfaceio.vertx.core.buffer.Buffer
-
setFloat
public io.vertx.core.buffer.Buffer setFloat(int pos, float f)
- Specified by:
setFloat
in interfaceio.vertx.core.buffer.Buffer
-
setShort
public io.vertx.core.buffer.Buffer setShort(int pos, short s)
- Specified by:
setShort
in interfaceio.vertx.core.buffer.Buffer
-
setShortLE
public io.vertx.core.buffer.Buffer setShortLE(int pos, short s)
- Specified by:
setShortLE
in interfaceio.vertx.core.buffer.Buffer
-
setUnsignedShort
public io.vertx.core.buffer.Buffer setUnsignedShort(int pos, int s)
- Specified by:
setUnsignedShort
in interfaceio.vertx.core.buffer.Buffer
-
setUnsignedShortLE
public io.vertx.core.buffer.Buffer setUnsignedShortLE(int pos, int s)
- Specified by:
setUnsignedShortLE
in interfaceio.vertx.core.buffer.Buffer
-
setBuffer
public io.vertx.core.buffer.Buffer setBuffer(int pos, io.vertx.core.buffer.Buffer b)
- Specified by:
setBuffer
in interfaceio.vertx.core.buffer.Buffer
-
setBuffer
public io.vertx.core.buffer.Buffer setBuffer(int pos, io.vertx.core.buffer.Buffer b, int offset, int len)
- Specified by:
setBuffer
in interfaceio.vertx.core.buffer.Buffer
-
setBytes
public VertxBufferImpl setBytes(int pos, ByteBuffer b)
- Specified by:
setBytes
in interfaceio.vertx.core.buffer.Buffer
-
setBytes
public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b)
- Specified by:
setBytes
in interfaceio.vertx.core.buffer.Buffer
-
setBytes
public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b, int offset, int len)
- Specified by:
setBytes
in interfaceio.vertx.core.buffer.Buffer
-
setString
public io.vertx.core.buffer.Buffer setString(int pos, String str)
- Specified by:
setString
in interfaceio.vertx.core.buffer.Buffer
-
setString
public io.vertx.core.buffer.Buffer setString(int pos, String str, String enc)
- Specified by:
setString
in interfaceio.vertx.core.buffer.Buffer
-
length
public int length()
- Specified by:
length
in interfaceio.vertx.core.buffer.Buffer
-
copy
public io.vertx.core.buffer.Buffer copy()
- Specified by:
copy
in interfaceio.vertx.core.buffer.Buffer
- Specified by:
copy
in interfaceio.vertx.core.shareddata.Shareable
-
slice
public io.vertx.core.buffer.Buffer slice()
- Specified by:
slice
in interfaceio.vertx.core.buffer.Buffer
-
slice
public io.vertx.core.buffer.Buffer slice(int start, int end)
- Specified by:
slice
in interfaceio.vertx.core.buffer.Buffer
-
getByteBuf
public io.netty.buffer.ByteBuf getByteBuf()
- Specified by:
getByteBuf
in interfaceio.vertx.core.buffer.Buffer
-
writeToBuffer
public void writeToBuffer(io.vertx.core.buffer.Buffer buff)
- Specified by:
writeToBuffer
in interfaceio.vertx.core.shareddata.impl.ClusterSerializable
-
readFromBuffer
public int readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)
- Specified by:
readFromBuffer
in interfaceio.vertx.core.shareddata.impl.ClusterSerializable
-
-