Archive

Posts Tagged ‘Serialization’

Binary Serialization with Micro Framework

November 17th, 2008 Elze No comments

Today I came acros this  post on the GHI Electronics forum:

I’m developing my first application with EM, but sometimes i switch from happyness  Grin to sadness  Cry, this is why:
- Read/Write method in FileStream class of EMLibrary accept only bytes array, but what if I have to write/read int/float/long arrays ?
In C++ it easy: fwrite(&AnyKindOfData, DataLenght, Elements), 
InsertValueIntoArray and ExtractValueFromArray of Utility class work only for unsigned types but not for float, and of course it is less that the best way to do this job, some idea ?

You can use binary serialization for this. As not much information is available on the web about this I’ll try to shed some light on the subject.

Read more…