Class NoBoundChecksBuffer

java.lang.Object
io.quarkus.vertx.utils.NoBoundChecksBuffer
All Implemented Interfaces:
io.vertx.core.buffer.Buffer, io.vertx.core.shareddata.ClusterSerializable, io.vertx.core.shareddata.impl.ClusterSerializable, io.vertx.core.shareddata.Shareable

public class NoBoundChecksBuffer extends Object implements io.vertx.core.buffer.Buffer
A variant of BufferImpl doing no bound checks for performance reasons.
  • Constructor Details

    • NoBoundChecksBuffer

      public NoBoundChecksBuffer(io.netty.buffer.ByteBuf buffer)
  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in interface io.vertx.core.buffer.Buffer
      Overrides:
      toString in class Object
    • toString

      public String toString(String enc)
      Specified by:
      toString in interface io.vertx.core.buffer.Buffer
    • toString

      public String toString(Charset enc)
      Specified by:
      toString in interface io.vertx.core.buffer.Buffer
    • toJsonObject

      public io.vertx.core.json.JsonObject toJsonObject()
      Specified by:
      toJsonObject in interface io.vertx.core.buffer.Buffer
    • toJsonArray

      public io.vertx.core.json.JsonArray toJsonArray()
      Specified by:
      toJsonArray in interface io.vertx.core.buffer.Buffer
    • getByte

      public byte getByte(int pos)
      Specified by:
      getByte in interface io.vertx.core.buffer.Buffer
    • getUnsignedByte

      public short getUnsignedByte(int pos)
      Specified by:
      getUnsignedByte in interface io.vertx.core.buffer.Buffer
    • getInt

      public int getInt(int pos)
      Specified by:
      getInt in interface io.vertx.core.buffer.Buffer
    • getIntLE

      public int getIntLE(int pos)
      Specified by:
      getIntLE in interface io.vertx.core.buffer.Buffer
    • getUnsignedInt

      public long getUnsignedInt(int pos)
      Specified by:
      getUnsignedInt in interface io.vertx.core.buffer.Buffer
    • getUnsignedIntLE

      public long getUnsignedIntLE(int pos)
      Specified by:
      getUnsignedIntLE in interface io.vertx.core.buffer.Buffer
    • getLong

      public long getLong(int pos)
      Specified by:
      getLong in interface io.vertx.core.buffer.Buffer
    • getLongLE

      public long getLongLE(int pos)
      Specified by:
      getLongLE in interface io.vertx.core.buffer.Buffer
    • getDouble

      public double getDouble(int pos)
      Specified by:
      getDouble in interface io.vertx.core.buffer.Buffer
    • getFloat

      public float getFloat(int pos)
      Specified by:
      getFloat in interface io.vertx.core.buffer.Buffer
    • getShort

      public short getShort(int pos)
      Specified by:
      getShort in interface io.vertx.core.buffer.Buffer
    • getShortLE

      public short getShortLE(int pos)
      Specified by:
      getShortLE in interface io.vertx.core.buffer.Buffer
    • getUnsignedShort

      public int getUnsignedShort(int pos)
      Specified by:
      getUnsignedShort in interface io.vertx.core.buffer.Buffer
    • getUnsignedShortLE

      public int getUnsignedShortLE(int pos)
      Specified by:
      getUnsignedShortLE in interface io.vertx.core.buffer.Buffer
    • getMedium

      public int getMedium(int pos)
      Specified by:
      getMedium in interface io.vertx.core.buffer.Buffer
    • getMediumLE

      public int getMediumLE(int pos)
      Specified by:
      getMediumLE in interface io.vertx.core.buffer.Buffer
    • getUnsignedMedium

      public int getUnsignedMedium(int pos)
      Specified by:
      getUnsignedMedium in interface io.vertx.core.buffer.Buffer
    • getUnsignedMediumLE

      public int getUnsignedMediumLE(int pos)
      Specified by:
      getUnsignedMediumLE in interface io.vertx.core.buffer.Buffer
    • getBytes

      public byte[] getBytes()
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBytes

      public byte[] getBytes(int start, int end)
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBytes

      public io.vertx.core.buffer.Buffer getBytes(byte[] dst)
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBytes

      public io.vertx.core.buffer.Buffer getBytes(byte[] dst, int dstIndex)
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBytes

      public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst)
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBytes

      public io.vertx.core.buffer.Buffer getBytes(int start, int end, byte[] dst, int dstIndex)
      Specified by:
      getBytes in interface io.vertx.core.buffer.Buffer
    • getBuffer

      public io.vertx.core.buffer.Buffer getBuffer(int start, int end)
      Specified by:
      getBuffer in interface io.vertx.core.buffer.Buffer
    • getString

      public String getString(int start, int end, String enc)
      Specified by:
      getString in interface io.vertx.core.buffer.Buffer
    • getString

      public String getString(int start, int end)
      Specified by:
      getString in interface io.vertx.core.buffer.Buffer
    • appendBuffer

      public io.vertx.core.buffer.Buffer appendBuffer(io.vertx.core.buffer.Buffer buff)
      Specified by:
      appendBuffer in interface io.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 interface io.vertx.core.buffer.Buffer
    • appendBytes

      public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes)
      Specified by:
      appendBytes in interface io.vertx.core.buffer.Buffer
    • appendBytes

      public io.vertx.core.buffer.Buffer appendBytes(byte[] bytes, int offset, int len)
      Specified by:
      appendBytes in interface io.vertx.core.buffer.Buffer
    • appendByte

      public io.vertx.core.buffer.Buffer appendByte(byte b)
      Specified by:
      appendByte in interface io.vertx.core.buffer.Buffer
    • appendUnsignedByte

      public io.vertx.core.buffer.Buffer appendUnsignedByte(short b)
      Specified by:
      appendUnsignedByte in interface io.vertx.core.buffer.Buffer
    • appendInt

      public io.vertx.core.buffer.Buffer appendInt(int i)
      Specified by:
      appendInt in interface io.vertx.core.buffer.Buffer
    • appendIntLE

      public io.vertx.core.buffer.Buffer appendIntLE(int i)
      Specified by:
      appendIntLE in interface io.vertx.core.buffer.Buffer
    • appendUnsignedInt

      public io.vertx.core.buffer.Buffer appendUnsignedInt(long i)
      Specified by:
      appendUnsignedInt in interface io.vertx.core.buffer.Buffer
    • appendUnsignedIntLE

      public io.vertx.core.buffer.Buffer appendUnsignedIntLE(long i)
      Specified by:
      appendUnsignedIntLE in interface io.vertx.core.buffer.Buffer
    • appendMedium

      public io.vertx.core.buffer.Buffer appendMedium(int i)
      Specified by:
      appendMedium in interface io.vertx.core.buffer.Buffer
    • appendMediumLE

      public io.vertx.core.buffer.Buffer appendMediumLE(int i)
      Specified by:
      appendMediumLE in interface io.vertx.core.buffer.Buffer
    • appendLong

      public io.vertx.core.buffer.Buffer appendLong(long l)
      Specified by:
      appendLong in interface io.vertx.core.buffer.Buffer
    • appendLongLE

      public io.vertx.core.buffer.Buffer appendLongLE(long l)
      Specified by:
      appendLongLE in interface io.vertx.core.buffer.Buffer
    • appendShort

      public io.vertx.core.buffer.Buffer appendShort(short s)
      Specified by:
      appendShort in interface io.vertx.core.buffer.Buffer
    • appendShortLE

      public io.vertx.core.buffer.Buffer appendShortLE(short s)
      Specified by:
      appendShortLE in interface io.vertx.core.buffer.Buffer
    • appendUnsignedShort

      public io.vertx.core.buffer.Buffer appendUnsignedShort(int s)
      Specified by:
      appendUnsignedShort in interface io.vertx.core.buffer.Buffer
    • appendUnsignedShortLE

      public io.vertx.core.buffer.Buffer appendUnsignedShortLE(int s)
      Specified by:
      appendUnsignedShortLE in interface io.vertx.core.buffer.Buffer
    • appendFloat

      public io.vertx.core.buffer.Buffer appendFloat(float f)
      Specified by:
      appendFloat in interface io.vertx.core.buffer.Buffer
    • appendDouble

      public io.vertx.core.buffer.Buffer appendDouble(double d)
      Specified by:
      appendDouble in interface io.vertx.core.buffer.Buffer
    • appendString

      public io.vertx.core.buffer.Buffer appendString(String str, String enc)
      Specified by:
      appendString in interface io.vertx.core.buffer.Buffer
    • appendString

      public io.vertx.core.buffer.Buffer appendString(String str)
      Specified by:
      appendString in interface io.vertx.core.buffer.Buffer
    • setByte

      public io.vertx.core.buffer.Buffer setByte(int pos, byte b)
      Specified by:
      setByte in interface io.vertx.core.buffer.Buffer
    • setUnsignedByte

      public io.vertx.core.buffer.Buffer setUnsignedByte(int pos, short b)
      Specified by:
      setUnsignedByte in interface io.vertx.core.buffer.Buffer
    • setInt

      public io.vertx.core.buffer.Buffer setInt(int pos, int i)
      Specified by:
      setInt in interface io.vertx.core.buffer.Buffer
    • setIntLE

      public io.vertx.core.buffer.Buffer setIntLE(int pos, int i)
      Specified by:
      setIntLE in interface io.vertx.core.buffer.Buffer
    • setUnsignedInt

      public io.vertx.core.buffer.Buffer setUnsignedInt(int pos, long i)
      Specified by:
      setUnsignedInt in interface io.vertx.core.buffer.Buffer
    • setUnsignedIntLE

      public io.vertx.core.buffer.Buffer setUnsignedIntLE(int pos, long i)
      Specified by:
      setUnsignedIntLE in interface io.vertx.core.buffer.Buffer
    • setMedium

      public io.vertx.core.buffer.Buffer setMedium(int pos, int i)
      Specified by:
      setMedium in interface io.vertx.core.buffer.Buffer
    • setMediumLE

      public io.vertx.core.buffer.Buffer setMediumLE(int pos, int i)
      Specified by:
      setMediumLE in interface io.vertx.core.buffer.Buffer
    • setLong

      public io.vertx.core.buffer.Buffer setLong(int pos, long l)
      Specified by:
      setLong in interface io.vertx.core.buffer.Buffer
    • setLongLE

      public io.vertx.core.buffer.Buffer setLongLE(int pos, long l)
      Specified by:
      setLongLE in interface io.vertx.core.buffer.Buffer
    • setDouble

      public io.vertx.core.buffer.Buffer setDouble(int pos, double d)
      Specified by:
      setDouble in interface io.vertx.core.buffer.Buffer
    • setFloat

      public io.vertx.core.buffer.Buffer setFloat(int pos, float f)
      Specified by:
      setFloat in interface io.vertx.core.buffer.Buffer
    • setShort

      public io.vertx.core.buffer.Buffer setShort(int pos, short s)
      Specified by:
      setShort in interface io.vertx.core.buffer.Buffer
    • setShortLE

      public io.vertx.core.buffer.Buffer setShortLE(int pos, short s)
      Specified by:
      setShortLE in interface io.vertx.core.buffer.Buffer
    • setUnsignedShort

      public io.vertx.core.buffer.Buffer setUnsignedShort(int pos, int s)
      Specified by:
      setUnsignedShort in interface io.vertx.core.buffer.Buffer
    • setUnsignedShortLE

      public io.vertx.core.buffer.Buffer setUnsignedShortLE(int pos, int s)
      Specified by:
      setUnsignedShortLE in interface io.vertx.core.buffer.Buffer
    • setBuffer

      public io.vertx.core.buffer.Buffer setBuffer(int pos, io.vertx.core.buffer.Buffer b)
      Specified by:
      setBuffer in interface io.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 interface io.vertx.core.buffer.Buffer
    • setBytes

      public NoBoundChecksBuffer setBytes(int pos, ByteBuffer b)
      Specified by:
      setBytes in interface io.vertx.core.buffer.Buffer
    • setBytes

      public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b)
      Specified by:
      setBytes in interface io.vertx.core.buffer.Buffer
    • setBytes

      public io.vertx.core.buffer.Buffer setBytes(int pos, byte[] b, int offset, int len)
      Specified by:
      setBytes in interface io.vertx.core.buffer.Buffer
    • setString

      public io.vertx.core.buffer.Buffer setString(int pos, String str)
      Specified by:
      setString in interface io.vertx.core.buffer.Buffer
    • setString

      public io.vertx.core.buffer.Buffer setString(int pos, String str, String enc)
      Specified by:
      setString in interface io.vertx.core.buffer.Buffer
    • length

      public int length()
      Specified by:
      length in interface io.vertx.core.buffer.Buffer
    • copy

      public io.vertx.core.buffer.Buffer copy()
      Specified by:
      copy in interface io.vertx.core.buffer.Buffer
      Specified by:
      copy in interface io.vertx.core.shareddata.Shareable
    • slice

      public io.vertx.core.buffer.Buffer slice()
      Specified by:
      slice in interface io.vertx.core.buffer.Buffer
    • slice

      public io.vertx.core.buffer.Buffer slice(int start, int end)
      Specified by:
      slice in interface io.vertx.core.buffer.Buffer
    • getByteBuf

      public io.netty.buffer.ByteBuf getByteBuf()
      Specified by:
      getByteBuf in interface io.vertx.core.buffer.Buffer
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • writeToBuffer

      public void writeToBuffer(io.vertx.core.buffer.Buffer buff)
      Specified by:
      writeToBuffer in interface io.vertx.core.shareddata.ClusterSerializable
      Specified by:
      writeToBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializable
    • readFromBuffer

      public int readFromBuffer(int pos, io.vertx.core.buffer.Buffer buffer)
      Specified by:
      readFromBuffer in interface io.vertx.core.shareddata.ClusterSerializable
      Specified by:
      readFromBuffer in interface io.vertx.core.shareddata.impl.ClusterSerializable