[Gambas-user] Issues when writing and reading structures

Benoit Minisini benoit.minisini at gambas-basic.org
Sat Mar 25 19:27:15 CET 2023


Le 25/03/2023 à 19:07, Brian G a écrit :
> Thank you Ben, for the all the work you have done for Structure support, they all work great!
> 
> I have been trying to encapsulate the structures within a gambas class.
> I have run into an issue with the serialization using the _read/_write interface.
> 
> When doing a  "write myclass as TestElevationClass"
> and the class itself just does a "write value as elevation" <-- the actual structure
> 
> then the serialization process always adds a 4F as the leading byte of any output stream.
> While this works well when reading and writing using the gambas serialization.
> The recieving app not being gambas based goes all crazy.

It's normal. The Gambas serialization format is an internal undocumented 
format that is intended to ease communication between Gambas processes.

You can't use it to communicate with a non-Gambas process that does not 
how to handle this format.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list