public abstract class TarsStructBase extends Object implements Serializable
| 限定符和类型 | 字段和说明 |
|---|---|
static byte |
BYTE |
static byte |
DOUBLE |
static byte |
FLOAT |
static byte |
INT |
static byte |
LIST |
static byte |
LONG |
static byte |
MAP |
static int |
MAX_STRING_LENGTH |
static byte |
SHORT |
static byte |
SIMPLE_LIST |
static byte |
STRING1 |
static byte |
STRING4 |
static byte |
STRUCT_BEGIN |
static byte |
STRUCT_END |
static byte |
ZERO_TAG |
| 构造器和说明 |
|---|
TarsStructBase() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
containField(String name) |
void |
display(StringBuilder sb,
int level) |
void |
displaySimple(StringBuilder sb,
int level) |
Object |
getFieldByName(String name) |
TarsStructBase |
newInit() |
abstract void |
readFrom(TarsInputStream is) |
void |
recycle() |
void |
setFieldByName(String name,
Object value) |
byte[] |
toByteArray() |
byte[] |
toByteArray(String encoding) |
static String |
toDisplaySimpleString(TarsStructBase struct) |
String |
toString() |
abstract void |
writeTo(TarsOutputStream os) |
public static final byte BYTE
public static final byte SHORT
public static final byte INT
public static final byte LONG
public static final byte FLOAT
public static final byte DOUBLE
public static final byte STRING1
public static final byte STRING4
public static final byte MAP
public static final byte LIST
public static final byte STRUCT_BEGIN
public static final byte STRUCT_END
public static final byte ZERO_TAG
public static final byte SIMPLE_LIST
public static final int MAX_STRING_LENGTH
public abstract void writeTo(TarsOutputStream os)
public abstract void readFrom(TarsInputStream is)
public void display(StringBuilder sb, int level)
public void displaySimple(StringBuilder sb, int level)
public TarsStructBase newInit()
public void recycle()
public boolean containField(String name)
public byte[] toByteArray()
public byte[] toByteArray(String encoding)
public static String toDisplaySimpleString(TarsStructBase struct)
Copyright © 2020. All Rights Reserved.