concrete.util.mem_io module

concrete.util.mem_io.communication_deep_copy(comm)

Return deep copy of communication.

Parameters:comm (Communication) – communication to copy
Returns:deep copy of comm
Return type:Communication
concrete.util.mem_io.read_communication_from_buffer(buf, add_references=True)

Deserialize buf (a binary string) and return resulting communication. Add references if requested.

Parameters:
Returns:

Communication read from buffer

Return type:

Communication

concrete.util.mem_io.write_communication_to_buffer(comm)

Serialize communication to buffer (binary string) and return buffer.

Parameters:comm (Communication) – communication to serialize
Returns:Communication read from buffer
Return type:Communication