endianness Questions
3
Solved
I want to be lazy and write some code that will break if the endianness of the target machine is different from my own, for right now. But I would like to know when it breaks of course, so I can fi...
Hoover asked 7/7, 2016 at 15:49
3
Solved
Running the file command against a pcap file will print out something along the lines of -
$ file pcap.pcap
pcap.pcap: tcpdump capture file (little-endian) - version 2.4 ....
I've been looking ...
Soak asked 20/2, 2013 at 20:47
2
Solved
Recently I was (again) reading about 'endian'ness. I know how to identify the endianness of host, as there are lots of post on SO, and also I have seen this, which I think is pretty good resource.
...
Lucre asked 17/6, 2016 at 8:49
5
Solved
Why did some processor manifacturers decide to use
Little endian
Big endian
Middle endian
Any others?
?
I've heard that with big endian one can find out faster, if a number is negative or posi...
Alarcon asked 27/5, 2009 at 7:21
2
Solved
I want to create a constexpr function that returns the endianness of the system, like so:
constexpr bool IsBigEndian()
{
constexpr int32_t one = 1;
return (reinterpret_cast<const int8_t&&...
Gaye asked 16/6, 2016 at 18:4
3
Solved
My UUID is structured like this:
struct UUID_FIELDS
{
uint32_t time_low;
uint16_t time_mid;
uint16_t time_hi_and_version;
uint8_t clock_seq_hi_and_reserved;
uint8_t clock_seq_low;
uint8_...
Pyrometallurgy asked 8/6, 2016 at 19:32
2
I am not sure why htons and ntohs both exist in the standard library. They do exactly the same thing -- unless I'm confused somehow!
The same goes for htonl and ntohl.
Rhetorical asked 2/6, 2016 at 17:27
4
Solved
How would I convert a byte array, Byte[] from small to big endian.
I'm thinking of porting this program to Mono and was wondering the best approach. Any help would be appreciated.
EDIT: I'm rea...
Hermann asked 10/1, 2011 at 16:59
12
Solved
An intern who works with me showed me an exam he had taken in computer science about endianness issues. There was a question that showed an ASCII string "My-Pizza", and the student had to show how ...
Litotes asked 14/10, 2009 at 18:12
4
Solved
I am trying to use unix sockets to test sending some udp packets to localhost.
It is my understanding that when setting ip address and port in order to send packets, I would fill my sockaddr_inwit...
Stirk asked 28/4, 2016 at 20:11
2
Solved
Given a binary file with 32-bit little-endian fields that I need to parse, I want to write parsing code that compiles correctly independent of endianness of machine that executes that code. Current...
Hoes asked 15/4, 2016 at 22:34
3
UTF-16 is a two-byte character encoding. Exchanging the two bytes' addresses will produce UTF-16BE and UTF-16LE.
But I find the name UTF-16 encoding exists in the Ubuntu gedit text editor, as well...
Intramural asked 11/4, 2016 at 13:24
1
Solved
htons() converts host byte order to network byte order.
Network byte order is Big-Endian and host byte order can be either Little-Endian or Big-Endian.
On a Little Endian system htons() will conv...
Farther asked 28/3, 2016 at 12:13
3
Solved
I am using BinaryWriter in my code, here is my code:
static void Main(string[] args)
{
FileInfo file = new FileInfo(@"F:\testfile");
if (file.Exists) file.Delete();
using (BinaryWriter bw = new...
Vachel asked 10/3, 2016 at 7:11
1
Solved
I have trouble understanding network byte ordering and the order in which data is sent and received over UDP. I am using C#.
I have a structure holding:
message.start_id = 0x7777CCCC;
message.messa...
Paleoclimatology asked 3/3, 2016 at 14:9
1
Solved
I need to send String to client socket, for right sequence, the endian is important but I not saw endian information in source code.Does it needn't care about or just I skipped those code?
Minimalist asked 29/2, 2016 at 16:31
2
Solved
So I saw a few example on how the endianness of an architecture could be found. Let's say we have an integer pointer that points to an int data type. And let's say the int value is 0x010A0B12. In a...
Binturong asked 19/2, 2016 at 2:0
1
Solved
I compile an OCaml program in bytecode on an x86 machine, and transfer the bytecode to a ppc64 machine. Assuming that the ppc64 machine has ocamlrun (compiled for ppc64), will I be able to execute ...
Dependence asked 15/1, 2016 at 15:5
7
Solved
I have a void pointer pointing to a memory address. Then, I do
int pointer = the void pointer
float pointer = the void pointer
and then, dereference them go get the values.
{
int x = 25;
vo...
Pastelki asked 21/12, 2015 at 16:8
1
Solved
I have a numpy.array and I want to find out what endianness is used in the underlying representation.
A byteorder property is documented here, but none of the given examples show it being used wit...
Hibbert asked 4/12, 2015 at 21:33
2
Solved
Having a look at http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html
The following Name-Value Pairs:
Service=AWSECommerceService
Version=2011-08-01
AssociateTag=PutYourAs...
Stull asked 26/9, 2015 at 15:0
6
Solved
This question is basically the second half to my other Question
How can I convert a UINT16 value, into a UINT8 * array without a loop and avoiding endian problems.
Basically I want to do somethi...
Pocket asked 17/8, 2009 at 17:17
1
From what I've read, all Windows versions and .NET are little endian. So why the departure from the Microsoft norm for SQL Server?
What I mean by "SQL Server is big endian" is this:
SELECT CONVER...
Secession asked 15/2, 2014 at 4:19
2
Solved
I have worked a lot with byte streams so I understand the concept - some bytes signify a higher numerical value than others.
When reading the wiki on the definitions I become very confused though....
Fiorenze asked 21/11, 2015 at 11:34
2
Solved
I am reading a source-code which downloads the zip-file and reads the data into numpy array. The code suppose to work on macos and linux and here is the snippet that I see:
def _read32(bytestream)...
Iconoclasm asked 13/11, 2015 at 12:1
© 2022 - 2024 — McMap. All rights reserved.