From d86c5f6c617c231f522d6e59b09174b8188e3d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Weber?= Date: Wed, 6 Nov 2024 22:52:18 +0100 Subject: [PATCH] All tests pass. Legacy Serializer object still working --- docs/src/user_folder/tcpip.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docs/src/user_folder/tcpip.rst b/docs/src/user_folder/tcpip.rst index 8eddd9a4..474651c2 100644 --- a/docs/src/user_folder/tcpip.rst +++ b/docs/src/user_folder/tcpip.rst @@ -58,7 +58,14 @@ They both implements specific methods applicable to a given object but also a ge .. code-block:: - >>> from pymodaq.utils.tcp_ip.serializer import Serializer, DeSerializer + >>> from pymodaq.utils.tcp_ip.serializer import DeSerializer + from pymodaq_data.serialize.serializer_legacy import Serializer + >>> string = 'Hello' + >>> ser = Serializer(string) + >>> print(ser.string_serialization(string)) + b'\x00\x00\x00\x05Hello' + + In this example, the serializer first send 4 bytes encoding the length of the >>> string = 'Hello' >>> ser = Serializer(string) >>> print(ser.string_serialization(string))