public class AutoExpandingBuffer extends Object
| Constructor and Description |
|---|
AutoExpandingBuffer(int initialBufferSize,
int maxComponents) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.buffer.CompositeByteBuf |
getBuffer() |
void |
release() |
int |
serializeBool(boolean src,
boolean isNull) |
int |
serializeByte(byte src,
boolean isNull,
byte type) |
int |
serializeBytes(byte[] src,
boolean isNull,
int type) |
int |
serializeDouble(double src,
boolean isNull) |
int |
serializeFloat(float src,
boolean isNull) |
int |
serializeInt(int src,
boolean isNull,
byte type) |
int |
serializeLong(long src,
boolean isNull,
byte type) |
int |
serializeShort(short src,
boolean isNull,
byte type) |
int |
serializeString(String src,
boolean isNull,
int type) |
int |
serializeTimeStamp(long src,
boolean isNull) |
void |
stopWrite() |
void |
writeBytes(byte[] src) |
void |
writeInt(int src) |
void |
writeShort(short src) |
int |
writeString(String src) |
public AutoExpandingBuffer(int initialBufferSize,
int maxComponents)
public void writeBytes(byte[] src)
throws SQLException
SQLExceptionpublic int writeString(String src) throws SQLException
SQLExceptionpublic void writeInt(int src)
throws SQLException
SQLExceptionpublic void writeShort(short src)
throws SQLException
SQLExceptionpublic int serializeLong(long src,
boolean isNull,
byte type)
throws SQLException
SQLExceptionpublic int serializeTimeStamp(long src,
boolean isNull)
throws SQLException
SQLExceptionpublic int serializeDouble(double src,
boolean isNull)
throws SQLException
SQLExceptionpublic int serializeBool(boolean src,
boolean isNull)
throws SQLException
SQLExceptionpublic int serializeByte(byte src,
boolean isNull,
byte type)
throws SQLException
SQLExceptionpublic int serializeShort(short src,
boolean isNull,
byte type)
throws SQLException
SQLExceptionpublic int serializeInt(int src,
boolean isNull,
byte type)
throws SQLException
SQLExceptionpublic int serializeFloat(float src,
boolean isNull)
throws SQLException
SQLExceptionpublic int serializeBytes(byte[] src,
boolean isNull,
int type)
throws SQLException
SQLExceptionpublic int serializeString(String src, boolean isNull, int type) throws SQLException
SQLExceptionpublic io.netty.buffer.CompositeByteBuf getBuffer()
public void release()
public void stopWrite()
Copyright © 2025. All rights reserved.