File Meta Sink Endianness?

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.

On 02/09/2015 12:54 PM, Peter W. wrote:


Peter W.
[email protected] mailto:[email protected]


Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Everything is, as far as I know, written in the native host order.

Hi Marcus,

That explains it. Thanks for the help.

On Mon, Feb 9, 2015 at 1:27 PM, Marcus Müller [email protected]

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: