BinaryDeserialize
BinaryDeserialize[ByteArray[…]]
recovers an expression from a binary representation generated by BinarySerialize.
BinaryDeserialize[ByteArray[…],h]
wraps h around the expression produced before returning it.
Details
- BinaryDeserialize[ByteArray[…]] gives $Failed if the byte array was not one that could have been generated from an expression by BinarySerialize.
Examples
open allclose allBasic Examples (2)
Scope (3)
Serialize a general expression:
Serialize an unevaluated expression:
Deserialize it and keep it held:
Receive a serialized expression from an unknown source:
Wrap the result in HoldComplete to prevent unexpected evaluation:
Properties & Relations (1)
Serialized data from files should be read in using binary-mode functions such as BinaryReadList:
Text
Wolfram Research (2017), BinaryDeserialize, Wolfram Language function, https://reference.wolfram.com/language/ref/BinaryDeserialize.html.
CMS
Wolfram Language. 2017. "BinaryDeserialize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BinaryDeserialize.html.
APA
Wolfram Language. (2017). BinaryDeserialize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BinaryDeserialize.html