| Constructor and Description |
|---|
ByteCodec() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canDecode(ColumnDefinitionPacket column,
Class<?> type) |
boolean |
canEncode(Class<?> value) |
Byte |
decodeBinary(io.netty.buffer.ByteBuf buf,
int length,
ColumnDefinitionPacket column,
Class<? extends Byte> type) |
Byte |
decodeText(io.netty.buffer.ByteBuf buf,
int length,
ColumnDefinitionPacket column,
Class<? extends Byte> type) |
void |
encodeBinary(io.netty.buffer.ByteBuf buf,
org.mariadb.r2dbc.client.Context context,
Byte value) |
void |
encodeText(io.netty.buffer.ByteBuf buf,
org.mariadb.r2dbc.client.Context context,
Byte value) |
DataType |
getBinaryEncodeType() |
static long |
parseBit(io.netty.buffer.ByteBuf buf,
int length) |
public static final ByteCodec INSTANCE
public static long parseBit(io.netty.buffer.ByteBuf buf,
int length)
public boolean canDecode(ColumnDefinitionPacket column, Class<?> type)
public Byte decodeText(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Byte> type)
decodeText in interface Codec<Byte>public Byte decodeBinary(io.netty.buffer.ByteBuf buf, int length, ColumnDefinitionPacket column, Class<? extends Byte> type)
decodeBinary in interface Codec<Byte>public void encodeText(io.netty.buffer.ByteBuf buf,
org.mariadb.r2dbc.client.Context context,
Byte value)
encodeText in interface Codec<Byte>public void encodeBinary(io.netty.buffer.ByteBuf buf,
org.mariadb.r2dbc.client.Context context,
Byte value)
encodeBinary in interface Codec<Byte>public DataType getBinaryEncodeType()
getBinaryEncodeType in interface Codec<Byte>Copyright © 2020 MariaDB Corporation Ab. All rights reserved.