public final class ByteBuffer extends Object
Buffer representing a
sequence of zero or more bytes. It provides convinient methods to read /
write value of various data types.| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.core.buffer.Buffer |
buffer |
protected int |
position |
protected TimeZone |
timezone |
protected int position
protected final io.vertx.core.buffer.Buffer buffer
protected final TimeZone timezone
public static ByteBuffer wrap(io.vertx.core.buffer.Buffer buffer, TimeZone timezone)
public static ByteBuffer wrap(io.vertx.core.buffer.Buffer buffer)
public static ByteBuffer newInstance(int initialSizeHint, TimeZone timezone)
public static ByteBuffer newInstance(int initialSizeHint)
public static io.vertx.core.buffer.Buffer asBuffer(String str)
public int length()
public boolean isExausted()
public int readUnsignedLeb128()
public ByteBuffer writeUnsignedLeb128(int value)
public byte readByte()
public ByteBuffer writeByte(byte value)
public void readBytes(byte[] bytes)
public void readBytes(byte[] bytes,
int offset,
int length)
public ByteBuffer writeBytes(byte[] value)
public boolean readBoolean()
public ByteBuffer writeBoolean(boolean value)
public ByteBuffer writeBoolean(byte value)
public String readEnum()
public String readEnum8()
public String readEnum16()
public ByteBuffer writeEnum(int value)
public ByteBuffer writeEnum(String value)
public ByteBuffer writeEnum8(byte value)
public ByteBuffer writeEnum8(int value)
public ByteBuffer writeEnum8(String value)
public ByteBuffer writeEnum16(int value)
public ByteBuffer writeEnum16(short value)
public ByteBuffer writeEnum16(String value)
public boolean readNull()
public ByteBuffer writeNull()
public ByteBuffer writeNonNull()
public byte readInt8()
public ByteBuffer writeInt8(byte value)
public ByteBuffer writeInt8(int value)
public short readUInt8()
public ByteBuffer writeUInt8(int value)
public short readInt16()
public ByteBuffer writeInt16(short value)
public ByteBuffer writeInt16(int value)
public int readUInt16()
public ByteBuffer writeUInt16(int value)
public int readInt32()
public ByteBuffer writeInt32(int value)
public long readUInt32()
public ByteBuffer writeUInt32(long value)
public long readInt64()
public ByteBuffer writeInt64(long value)
public BigInteger readInt128()
public ByteBuffer writeInt128(BigInteger value)
public BigInteger readInt256()
public ByteBuffer writeInt256(BigInteger value)
public BigInteger readUInt64()
public ByteBuffer writeUInt64(long value)
public ByteBuffer writeUInt64(BigInteger value)
public BigInteger readUInt128()
public ByteBuffer writeUInt128(BigInteger value)
public BigInteger readUInt256()
public ByteBuffer writeUInt256(BigInteger value)
public float readFloat32()
public ByteBuffer writeFloat32(float value)
public double readFloat64()
public ByteBuffer writeFloat64(double value)
public ByteBuffer writeUUID(UUID value)
public UUID readUUID()
public ByteBuffer writeBigInteger(BigInteger value)
public ByteBuffer writeBigInteger(BigInteger value, int length)
public BigDecimal readDecimal(int precision, int scale)
public ByteBuffer writeDecimal(BigDecimal value, int precision, int scale)
public BigDecimal readDecimal32(int scale)
public ByteBuffer writeDecimal32(BigDecimal value, int scale)
public BigDecimal readDecimal64(int scale)
public ByteBuffer writeDecimal64(BigDecimal value, int scale)
public BigDecimal readDecimal128(int scale)
public ByteBuffer writeDecimal128(BigDecimal value, int scale)
public BigDecimal readDecimal256(int scale)
public ByteBuffer writeDecimal256(BigDecimal value, int scale)
public Timestamp readDateTime()
public ByteBuffer writeDateTime(Date value)
public ByteBuffer writeDateTime(Date value, TimeZone tz)
public ByteBuffer writeDateTime(Timestamp value, TimeZone tz)
public ByteBuffer writeDateTime(long time, TimeZone tz)
public Timestamp readDateTime64()
public ByteBuffer writeDateTime64(Date value, int scale)
public ByteBuffer writeDateTime64(Timestamp value, int scale)
public ByteBuffer writeDateTime64(Date value, int scale, TimeZone tz)
public ByteBuffer writeDateTime64(Timestamp value, int scale, TimeZone tz)
public ByteBuffer writeDateTime64(long time, int nanos, int scale, TimeZone tz)
public Date readDate()
public ByteBuffer writeDate(Date value)
public String readFixedString(int length)
public ByteBuffer writeFixedString(String value, int length)
public ByteBuffer writeFixedString(String value, int length, Charset charset)
public String readString()
public ByteBuffer writeString(String value)
public ByteBuffer writeString(String value, boolean normalize)
public ByteBuffer writeDefaultValue(ColumnDefinition column, DefaultValues defaultValues)
public io.vertx.core.buffer.Buffer unwrap()
Copyright © 2019–2021. All rights reserved.