recovers an expression from a binary representation generated by BinarySerialize.
wraps h around the expression produced before returning it.
- BinaryDeserialize[ByteArray[…]] gives $Failed if the byte array was not one that could have been generated from an expression by BinarySerialize.
Examplesopen allclose all
Basic Examples (2)
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:
Wolfram Research (2017), BinaryDeserialize, Wolfram Language function, https://reference.wolfram.com/language/ref/BinaryDeserialize.html.
Wolfram Language. 2017. "BinaryDeserialize." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BinaryDeserialize.html.
Wolfram Language. (2017). BinaryDeserialize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BinaryDeserialize.html