Skip to content

Commit

Permalink
All tests pass. Legacy Serializer object still working
Browse files Browse the repository at this point in the history
  • Loading branch information
seb5g committed Nov 6, 2024
1 parent ab673cc commit d86c5f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/src/user_folder/tcpip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d86c5f6

Please sign in to comment.