We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bd0a4f commit 0671c4bCopy full SHA for 0671c4b
kbe/src/lib/cstdkbe/memorystream.hpp
@@ -62,19 +62,16 @@ class MemoryStreamException
62
};
63
64
/*
65
- byte流:
66
- 能够将一些常用的数据类型以byte数据存储在一个vector中, 该对于一些占位比较大的数据类型
67
- 再最后一个位置存放一个0标示结束, 这种存储结构适合网络间打包传输一些数据。
68
-
69
- 注意:网络间传输可能涉及到一些字节序的问题, 需要进行转换。
70
- 具体看 MemoryStreamConverter.hpp
+ 将常用数据类型二进制序列化与反序列化
+ 注意:端与端之间传输可能涉及大小端问题,可以通过如下进行转换进行转换:
+ 具体看 MemoryStreamConverter.hpp
71
72
使用方法:
73
MemoryStream stream;
74
stream << (int64)100000000;
75
stream << (uint8)1;
76
stream << (uint8)32;
77
- stream << "kebiao";
+ stream << "kbe";
78
stream.print_storage();
79
uint8 n, n1;
80
int64 x;
0 commit comments