Fast serialize/deseriali​ze

版本 1.1.0.0 (8.6 KB) 作者: Christian Kothe
These functions can serialize most MATLAB data structures into a byte vector and vice versa.
3.5K 次下载
更新时间 2012/1/26

查看许可证

This is an optimized rewrite of Tim Hutt's Serialize/Deserialize functions (it is up to 10x faster on arcane data structures) and supports a few additional data types.

Known limitations:
* Java objects cannot be serialized
* Arrays with more than 255 dimensions have their last dimensions clamped
* Handles to nested/scoped functions can only be deserialized when their parent functions
support the BCILAB argument reporting protocol (e.g., by using arg_define).
* New MATLAB objects need to be reasonably friendly to serialization; either they support
construction from a struct, or they support loadobj(struct), or all their important properties
can be set via set(obj,'name',value)

It has been tested relatively extensively but if you catch a bug, let me know!

引用格式

Christian Kothe (2024). Fast serialize/deserialize (https://www.mathworks.com/matlabcentral/fileexchange/34564-fast-serialize-deserialize), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2010b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Instrument Connection and Communication 的更多信息
致谢

参考作品: Serialize/Deserialize

启发作品: MATLAB over TCP/IP

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.1.0.0

Included the improvements suggested by Moti Zilberman. Also corrected a bug involving sparse scalars (which could not be serialized before under some circumstances).

1.0.0.0