endianness Questions
4
Solved
The following question arose because I was trying to use bytes strings as dictionary keys and bytes values that I understood to be equal weren't being treated as equal.
Why doesn't the following Py...
Victor asked 19/7, 2014 at 16:54
2
Solved
I have a big.Int and want to convert it to a little-endian byte slice. If I use Int.Bytes, I get the big-endian byte slice.
Is there any way to get little-endian byte slice for big.Int?
Mule asked 1/7, 2018 at 12:29
2
Solved
I've got two PCAP files, A and B.
A has a 'magic number' in the header of d4 c3 b2 a1, B has a 'magic number' in the header of 4d 3c b2 a1. According to the wireshark documentation (http://wiki.wi...
Leeward asked 29/7, 2013 at 15:41
6
Solved
What is the difference between Big Endian and Little Endian Byte order ?
Both of these seem to be related to Unicode and UTF16. Where exactly do we use this?
Asbestos asked 31/3, 2009 at 15:37
5
Solved
I am writing a small program to check the endianness using Go:
var i int = 0x0100
ptr := unsafe.Pointer(&i)
if 0x01 == *(*byte)(ptr) {
fmt.Println("Big Endian")
} else if 0x00 == *(*...
Arbitrate asked 13/7, 2018 at 20:52
2
I understand big endian and little endian. However, all the processors of all the computers accessible to me -- AMD, Intel, Broadcom -- are little endian. This leads me to wonder whether ther...
Tittivate asked 23/1, 2022 at 1:7
6
Solved
What's the best way to turn a string in this form into an IP address: "0200A8C0". The "octets" present in the string are in reverse order, i.e. the given example string should generate 192.168.0.2....
Ruben asked 4/2, 2010 at 7:16
9
Solved
I'm hacking around in some scripts trying to parse some data written by Javas DataOutputStream#writeLong(...). Since java always seems to write big endian, I have a problem feeding the bytes to od....
Restrainer asked 22/6, 2011 at 10:3
5
Solved
I have an array of Floats that need to be converted to a byte array and back to a float[]... can anyone help me do this correctly?
I'm working with the bitConverter class and found myself stuck t...
Lim asked 8/1, 2011 at 19:45
18
Solved
I'm currently trying to create a C source code which properly handles I/O whatever the endianness of the target system.
I've selected "little endian" as my I/O convention, which means that, for bi...
Niobous asked 23/1, 2012 at 21:35
20
Solved
How to check whether a system is big endian or little endian?
Fretwell asked 15/11, 2010 at 6:29
8
Solved
I'm working on an implementation of the memcache protocol which, at some points, uses 64 bits integer values. These values must be stored in "network byte order".
I wish there was some uint64_t ht...
Girlish asked 11/6, 2010 at 12:9
6
Solved
Suppose I have the number 'numb'=1025 [00000000 00000000 00000100 00000001] represented:
On Little-Endian Machine:
00000001 00000100 00000000 00000000
On Big-Endian Machine:
00000000 00000000 ...
Yaroslavl asked 25/8, 2011 at 3:21
9
Solved
I have a Spring Roo + Hibernate project which takes a JTS well-known text (WKT) String input from the client application, converts it into a JTS Geometry object, and then attempts to write it to th...
Micrometry asked 31/8, 2012 at 12:17
9
Solved
I want to store some data into byte arrays in Java. Basically just numbers which can take up to 2 Bytes per number.
I'd like to know how I can convert an integer into a 2 byte long byte array and ...
Thievery asked 1/10, 2011 at 8:15
8
Solved
I'm trying to improve my understanding of the STFS file format by using a program to read all the different bits of information. Using a website with a reference of which offsets contain what infor...
Byars asked 23/12, 2011 at 21:43
15
I need to write a function to convert a big endian integer to a little endian integer in C. I cannot use any library function. How would I do this?
Shannonshanny asked 2/2, 2010 at 5:9
24
Solved
Is there a one line macro definition to determine the endianness of the machine? I am using the following code but converting it to macro would be too long:
unsigned char test_endian( void )
{
int...
Sanctified asked 20/1, 2010 at 9:43
13
Solved
I am making application in C# which has a byte array containing hex values.
I am getting data as a big-endian but I want it as a little-endian and I am using Bitconverter.toInt32 method for conver...
Loritalorn asked 23/11, 2011 at 11:2
11
Solved
Is it possible to convert floats from big to little endian? I have a big endian value from a PowerPC platform that I am sendING via TCP to a Windows process (little endian). This value is a float, ...
Lecherous asked 6/5, 2010 at 16:31
6
Solved
I'm reading "Learning Core Audio: A Hands-On Guide to Audio Programming for Mac and iOS" by Chris Adamson and at one point the author describes big-endian as:
the high bits of a byte or ...
Ferromagnetic asked 28/5, 2013 at 23:58
5
Solved
Take this example:
i = 0x12345678
print("{:08x}".format(i))
# shows 12345678
i = swap32(i)
print("{:08x}".format(i))
# should print 78563412
What would be the swap32-function()? Is there a way...
Jointless asked 16/12, 2014 at 14:5
35
Solved
How do I convert between big-endian and little-endian values in C++?
For clarity, I have to translate binary data (double-precision floating point values and 32-bit and 64-bit integers) from one CP...
Chef asked 19/9, 2008 at 20:23
4
Solved
There are two systems that communicate via TCP. One uses little endian and the second one big endian. The ICD between systems contains a lot of structs (fields). Making bytes swap for each field lo...
Carrero asked 29/9, 2022 at 12:42
16
Solved
I just want to ask if my method is correct to convert from little endian to big endian, just to make sure if I understand the difference.
I have a number which is stored in little-endian, here are...
Boudreaux asked 9/10, 2013 at 15:13
1 Next >
© 2022 - 2024 — McMap. All rights reserved.