Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

karlredman/PragmaAlign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Byte packing conversions using #pragma and C++

If you've ever had to decode byte packing across a network from an Intel computer to a SPARC (little endian to big endian) or the other way around than you will know what kind of headache that can be. Throw in anonymous and variable length structures and your headache just became a migraine. This happened to me in 1999, and again in 2001, and again just recently (2003). This code "concept" may help you get an idea of how to go about re-byte-packing (2, 4, 8, etc.) in a relatively fast and efficient manner. The code becomes relatively easy to edit as well. The code has little or no explanation attached to it for now, but you'll get the idea if you know what you are looking for.

About

Byte packing conversions using #pragma and C++

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published