原始串流的基本模型,这个流对象应该具备有两个基本的方法:
- 从原始的字节流之中反序列化构造出自身的构造函数
- 将自身序列化为字节流的ISerializable.Serialize()序列化方法
原始串流的基本模型,这个流对象应该具备有两个基本的方法:
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| .ctor | 1 | You should overrides this constructor to generate a stream object.(必须要有一个这个构造函数来执行反序列化) |
| Serialize | 2 | ISerializable.Serialize()序列化方法 |
| GetRawStream | 1 | 按照类型的定义进行反序列化操作 |
| GetBytes | 1 | this function only works for the primitive data types |
| GetRawStream | 1 | |
| GetData | 1 |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| INT32 | 2 | Single/Integer |
| DblFloat | 2 | sizeof Double |
| INT64 | 1 | |
| ShortInt | 1 | |
| SingleFloat | 1 | |
| DecimalInt | 1 |
04 Members
You should overrides this constructor to generate a stream object.(必须要有一个这个构造函数来执行反序列化)
| Name | Type | Description |
|---|---|---|
rawStream | Byte() | - |
按照类型的定义进行反序列化操作
| Name | Description |
|---|---|
TRawStream |
| Name | Type | Description |
|---|---|---|
rawStream | Byte() | - |
Array, Encodings)this function only works for the primitive data types
| Name | Type | Description |
|---|---|---|
vector | Array | - |
encoding | Encodings | - |
the empty byte collection will be return if the input vector is nothing
Single/Integer
sizeof Double
Stream)