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

Examples

open allclose all

Basic Examples  (2)

Serialize an expression:

Deserialize it:

Serialize a graphic:

Convert the byte array back to an expression:

Scope  (3)

Serialize a general expression:

Deserialize it:

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.

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

BibTeX

@misc{reference.wolfram_2024_binarydeserialize, author="Wolfram Research", title="{BinaryDeserialize}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/BinaryDeserialize.html}", note=[Accessed: 05-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_binarydeserialize, organization={Wolfram Research}, title={BinaryDeserialize}, year={2017}, url={https://reference.wolfram.com/language/ref/BinaryDeserialize.html}, note=[Accessed: 05-November-2024 ]}