public class TdrWriteBuf extends Object
| Constructor and Description |
|---|
TdrWriteBuf() |
TdrWriteBuf(byte[] ptr,
int len) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBeginPtr() |
int |
getLeftSize() |
int |
getTotalSize() |
int |
getUsedSize() |
void |
reserve(int gap) |
void |
reset()
DO NOT use this method.
|
void |
set(byte[] ptr,
int len) |
void |
writeCString(byte[] src,
int count) |
void |
writeCString(byte[] src,
int count,
int pos) |
void |
writeDouble(double src) |
void |
writeDouble(double src,
int pos) |
void |
writeFloat(float src) |
void |
writeFloat(float src,
int pos) |
void |
writeInt16(short src) |
void |
writeInt16(short src,
int pos) |
void |
writeInt32(int src) |
void |
writeInt32(int src,
int pos) |
void |
writeInt64(long src) |
void |
writeInt64(long src,
int pos) |
void |
writeInt8(byte src) |
void |
writeInt8(byte src,
int pos) |
void |
writeUInt16(short src) |
void |
writeUInt16(short src,
int pos) |
void |
writeUInt32(int src) |
void |
writeUInt32(int src,
int pos) |
void |
writeUInt64(long src) |
void |
writeUInt64(long src,
int pos) |
void |
writeUInt8(byte src) |
void |
writeUInt8(byte src,
int pos) |
TdrError |
writeWString(short[] src,
int count) |
TdrError |
writeWString(short[] src,
int count,
int pos) |
public TdrWriteBuf()
public TdrWriteBuf(byte[] ptr,
int len)
public void reset()
public void set(byte[] ptr,
int len)
public int getUsedSize()
public int getTotalSize()
public int getLeftSize()
public byte[] getBeginPtr()
public void reserve(int gap)
throws TdrException
TdrExceptionpublic void writeInt8(byte src)
throws TdrException
TdrExceptionpublic void writeUInt8(byte src)
throws TdrException
TdrExceptionpublic void writeUInt16(short src)
throws TdrException
TdrExceptionpublic void writeInt16(short src)
throws TdrException
TdrExceptionpublic void writeUInt32(int src)
throws TdrException
TdrExceptionpublic void writeInt32(int src)
throws TdrException
TdrExceptionpublic void writeUInt64(long src)
throws TdrException
TdrExceptionpublic void writeInt64(long src)
throws TdrException
TdrExceptionpublic void writeFloat(float src)
throws TdrException
TdrExceptionpublic void writeDouble(double src)
throws TdrException
TdrExceptionpublic void writeCString(byte[] src,
int count)
throws TdrException
TdrExceptionpublic TdrError writeWString(short[] src, int count) throws TdrException
TdrExceptionpublic void writeInt8(byte src,
int pos)
throws TdrException
TdrExceptionpublic void writeUInt8(byte src,
int pos)
throws TdrException
TdrExceptionpublic void writeUInt16(short src,
int pos)
throws TdrException
TdrExceptionpublic void writeInt16(short src,
int pos)
throws TdrException
TdrExceptionpublic void writeUInt32(int src,
int pos)
throws TdrException
TdrExceptionpublic void writeInt32(int src,
int pos)
throws TdrException
TdrExceptionpublic void writeUInt64(long src,
int pos)
throws TdrException
TdrExceptionpublic void writeInt64(long src,
int pos)
throws TdrException
TdrExceptionpublic void writeFloat(float src,
int pos)
throws TdrException
TdrExceptionpublic void writeDouble(double src,
int pos)
throws TdrException
TdrExceptionpublic void writeCString(byte[] src,
int count,
int pos)
throws TdrException
TdrExceptionpublic TdrError writeWString(short[] src, int count, int pos) throws TdrException
TdrExceptionCopyright © 2026. All rights reserved.