discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] File Meta Sink Endianness?


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] File Meta Sink Endianness?
Date: Mon, 09 Feb 2015 19:27:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0

Hi Peter,

the metadata is stuffed into PMT dicts, which get serialized by pmt's serialization routines.
Now, these are a bit peculiar on serializing multibyte things. They generally ensure big-endianness, if I understand the code [1] correctly.

The sample portion would have the same endianness as your host architecture, so that would explain differences.

Greetings,
Marcus


[1] gnuradio-runtime/lib/pmt/pmt_serialize.cc:
On 02/09/2015 06:54 PM, Peter Witkowski wrote:
Hello,

Can someone tell me what byte order (i.e. little endian or big endian) is used in file meta sink (i.e. what is the byte order of the resulting file)?  I'm seeing something strange, and I'm wondering if the header (metadata portion) is big endian while the samples are little endian.  Does this change based on the endianness of the host machine?

Thanks in advance for the help.

--
Peter Witkowski
address@hidden


_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


reply via email to

[Prev in Thread] Current Thread [Next in Thread]