endianness
Obtaining an integer given its 4-byte unsigned integer little-endian form? (C++)
I\'m probably very wrong here so please point out any misconceptions or mistakes I may have. The input for this assignment is a string of some characters followed by a series of 4-byte unsigned integ[详细]
2023-02-12 03:06 分类:问答How to byteswap a double?
I\'m trying to write a byteswap routine for a C++ program running on Win XP. I\'m compiling with Visual Studio 2008. This is what I\'ve come up with:[详细]
2023-02-10 02:05 分类:问答a question from careercup about endian
the program is to decide big endian or little endian. This is the answer given in the book: int Test(){[详细]
2023-02-10 00:12 分类:问答Deserialization of structure data sent by Big Endian system in Little Endian system
I have a C program that receives data from a mainframe in a UDP packet over sockets.The host of the C program is changing from Unix (big endian) to Linux (little endian) and the program no longer work[详细]
2023-02-09 23:10 分类:问答How do you convert little Endian to big Endian with bitwise operations?
I get that you\'d want to do something like take the first four bits put them on a stack (reading from left to right) then do you just put them in a register and shift them x times to put them at the[详细]
2023-02-09 08:08 分类:问答Converting Int32 to 24-bit signed integer
I have a need to convert an Int32 value to a 3-byte (24-bit) integer. Endianness remains the same (little), but I cannot figure out how to move the sign appropriately. The values are alr开发者_如何学C[详细]
2023-02-08 18:29 分类:问答How to set endianness when converting to or from hex strings
To convert an integer to a hex formatted string I am using ToString(\"X4\") like so: int target = 250;[详细]
2023-02-07 13:10 分类:问答Android OpenGL ES Color Byte Order
I\'m having the problem that my textu开发者_StackOverflow社区res are rendering incorrect colors and based on this it seems like Android\'s reading the colors in reverse order.[详细]
2023-02-05 20:42 分类:问答How can I detect endianness on a system where all primitive integer sizes are the same?
(This question came out of explaining the details of CHAR_BIT, sizeof, and endianness to someone yesterday. It\'s entirely hypothetical.)[详细]
2023-02-05 05:46 分类:问答Convert byte array from small to big endian or vice versa
How would I convert a byte array, Byte[] from small to b开发者_运维百科ig endian. I\'m thinking of porting this program to Mono and was wondering the best approach. Any help would be appreciated.[详细]
2023-02-03 23:33 分类:问答