Expand description
Serialization utilities with some safety checks
Structs§
- Deserialization
Config - A configuration used to Serialize TFHE-rs objects. This configuration decides the various sanity checks that will be performed during deserialization.
- EnumSet
- A set of C-style enum values. This can be seen as a lightweight HashSet that derives Copy.
- NonConformant
Deserialization Config - A configuration used to Serialize TFHE-rs objects. This is similar to
DeserializationConfigbut it will not require conformance parameters. - Serialization
Config - A configuration used to Serialize TFHE-rs objects. This configuration decides if the object will be versioned and holds the max byte size of the written data.
Traits§
- Named
- Parameter
SetConformant - A trait for objects which can be checked to be conformant with a parameter set
Functions§
- safe_
deserialize - Serialize an object with the default configuration (with size limit, header check and versioning).
- safe_
deserialize_ conformant - Serialize an object with the default configuration and conformance checks (with size limit, header check and versioning).
- safe_
serialize - Serialize an object with the default configuration (with size limit and versioning).
This is an alias for
SerializationConfig::new(serialized_size_limit).serialize_into - safe_
serialized_ size - Return the size the object would take if serialized using
safe_serialize