Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » serialize and endians on non-x86 machines [BUG]
BugConfirmed.gif  serialize and endians on non-x86 machines [BUG] [message #1228] Fri, 24 February 2006 08:26 Go to previous message
iplayfast is currently offline  iplayfast
Messages: 47
Registered: February 2006
Member
I was tracing through the serialize example (wow this stuff is impressive).
One thing I noticed is that you are not taking endian into account. (Which is important for some processors.)


Something else which might be important to you when porting to different processors is some processors insist on even boundaries for integer values. That is structures like
pack(1)
struct S
{
char A;
int B;
};

Will cause an exception (and possible crash) when B is selected.

I've run into it when reading data from disk into a structure and then trying to access the data.

EDIT: new topic name by fudadmin

[Updated on: Wed, 03 May 2006 19:49] by Moderator

Report message to a moderator

 
Read Message BugConfirmed.gif
Read Message
Previous Topic: HttpClient logs in Release mode
Next Topic: Linux - Windows Mt.h/cpp [BUG?]
Goto Forum:
  


Current Time: Sat May 11 06:59:07 CEST 2024

Total time taken to generate the page: 0.02498 seconds