Working on new binary serialization module for phobos (hopefully)

Atila Neves via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 5 07:55:22 PDT 2015


>> Cerealed has more features than this as well. I'd struggle to 
>> write code as short as I did when using it to implement 
>> networking protocols. I also only encoded bytes as big-endian 
>> since binary serialization is usually followed by sending 
>> those bytes over the wire. Given you check the endianess of 
>> the system here, how would that work?
>>
> I don't know what you mean bytes by themselves don't have an 
> endianness, do they?
> I thought is was only anything that was larger than a byte had 
> endianness

Yes. And sometimes mixed endianess depending on the architecture. 
I might be wrong, but it seems to me that it'd be hard to send 
the bytes over the wire with this.

Atila


More information about the Digitalmars-d mailing list