序列化字节流中的字段如何分隔?
我想知道如何分隔字节流中序列化对象的字段?
是否有某种二进制标志将它们分开,或者每个字段的长度是在开头定义的(或者它使用了另一种我没有想到的分隔技术)?
谢谢!
I was wondering how were delimited the fields of a serialized object in a byte stream?
Is there some kind of binary flag separating them, or are the length of each field defined at the beginning (or is it using another delimitation technique I didn't think of)?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
序列化是将嵌套数据(对象)转换为平面流的过程。有很多方法可以做到这一点。它们都有相应的规格。如果您想了解详细信息,了解您对哪个序列化感兴趣,请搜索文档。
Serialization is process of converting nested data (object) to flat stream. There are a lot of ways to do that. Each of them have corresponding specifications. If you want to have details tell which serialization you are interested in and lets search for docs.