[Gambas-user] Issues when writing and reading structures

Brian G brian at westwoodsvcs.com
Sat Mar 25 22:17:36 CET 2023


I am following your suggestion that structures should be encapsulated in a gambas class!
What is the work around then
--
Thanks
Brian G Saturday, 25 March 2023, 11:28AM -07:00 from Benoit Minisini  benoit.minisini at gambas-basic.org :

>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.
>
>
>----[  http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230326/348d032a/attachment.htm>


More information about the User mailing list