[Libmesh-devel] Interesting Observation

2016-01-29 Thread Cody Permann
So I'm working on incorporating the new packed range methods into MOOSE for use in transferring raw byte strings containing user-defined state and ran into an issue that I wanted to share. As a start I've taken the example code that Roy created in the new packed_range unit tests, which is fairly cl

Re: [Libmesh-devel] Interesting Observation

2016-01-29 Thread Roy Stogner
On Fri, 29 Jan 2016, Cody Permann wrote: > When reading the encoded length values back out of the stream, I've > found it's important to cast those bytes to unsigned chars instead > of reading them as chars in the general case. Definitely, to be safe. C doesn't specify whether plain "char" is s