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:

Introduced in 2017
 (11.1)