09-04-2009
It doesn't make sense for a binary file to contain both big and little endian values but this happens and sometimes there are even explanations about it.
However, if your Windows little endian code reads correctly say a 16bit or 32 bit integer value AND the very same code compiled on a big endian machine read the very same values at the same location without byte swapping, then you are just lucky enough to have a value that reads the same in both standards, like (assuming 16 bit unsigned integers) 0, 257, 514, 771, ..., 65535.
5 More Discussions You Might Find Interesting
1. Solaris
I have compiled my application on Solaris 10 with following description
SunOS ldg1 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Blade-T6320
The compiler is Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
But when installing the application on Solaris 9
SunOS odcarch02 5.9... (2 Replies)
Discussion started by: ash_bit2k2
2 Replies
2. Solaris
Hi,
I am unable to login into my terminal hosting Solaris 10 and get the below error message
"Server refused to allocate pty
ld.so.1: sh: fatal: libc.so.1: open failed: No such file or directory "
Is there anyways i can get into my machine and what kind of changes are required to be... (7 Replies)
Discussion started by: sankasu
7 Replies
3. UNIX for Advanced & Expert Users
hi
I have a ubuntu machine and want to know the endianness of the system....
How would i get to know.....
The information of my machine is:
uname -a
42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 201
1 i686 i686 i386 GNU/Linux
and
lsb_release -a
No LSB modules are available.... (6 Replies)
Discussion started by: Ankita Singlaa
6 Replies
4. Solaris
Hi,
I am new to sloaris and just instlled the solaris 11.2, i know little more about linux, i open the /boot/grub/grub.cfg in solaris and there is many other entries forl solaris 11.2 one of them is for 'Oracle Solaris 11.2 text console' but at boot grub2 only show the first default entry that... (1 Reply)
Discussion started by: shamsat
1 Replies
5. AIX
I'd like to add some x/linux-based servers to my current AIX-based TDS/SDS server community. Reading the Fine Install Guide (rtfig ?) I believe this may be covered by the section "Upgrade an instance of a previous version to a different computer" i.e. I'm going to install latest/greatest SDS on a... (4 Replies)
Discussion started by: maraixadm
4 Replies
LEARN ABOUT DEBIAN
binary.peekstring
Binary.peekString(3kaya) Kaya module reference Binary.peekString(3kaya)
NAME
Binary::peekString - Read a String from binary data.
SYNOPSIS
String peekString( Binary block, Int offset )
ARGUMENTS
block The binary block
offset The location to read from (starting from zero)
DESCRIPTION
Peek at the string val starting at offset offset
An Binary.OffsetOutOfRange(3kaya) exception will be thrown if it attempts to access a value outside the block. Note that Kaya assumes the
String is stored in the block in UTF-8 encoding, with null-termination.
AUTHORS
Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/
LICENSE
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public
License (version 2.1 or any later version) as published by the Free Software Foundation.
RELATED
Binary.Binary(3kaya)
Binary.array(3kaya)
Binary.getBlockChunk(3kaya)
Binary.peek(3kaya)
Binary.pokeString(3kaya)
Kaya October 2012 Binary.peekString(3kaya)