public class BinarySerializer extends Object
| 构造器和说明 |
|---|
BinarySerializer(BytesSink sink) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(byte type) |
void |
add(byte[] n) |
void |
add(BytesList bl) |
void |
add(Field field,
SerializedType value) |
int |
addFieldHeader(Field f) |
void |
addLengthEncoded(byte[] n) |
void |
addLengthEncoded(BytesList bytes) |
void |
addLengthEncoded(SerializedType value) |
static byte[] |
encodeVL(int length) |
public BinarySerializer(BytesSink sink)
public void add(byte[] n)
public void addLengthEncoded(byte[] n)
public static byte[] encodeVL(int length)
public void add(BytesList bl)
public int addFieldHeader(Field f)
public void add(byte type)
public void addLengthEncoded(BytesList bytes)
public void add(Field field, SerializedType value)
public void addLengthEncoded(SerializedType value)
Copyright © 2021. All rights reserved.