On Friday, 5 June 2015 at 14:55:24 UTC, Atila Neves wrote:
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

if you mean bit numbering then it dosen't matter because its managed by the
hardware anyway
http://en.wikipedia.org/wiki/Endianness#.22Bit_endianness.22

but just to be sure i'll do some tests

Reply via email to