Why are an integers bytes stored backwards? Does this apply to headers only?

后端 未结 2 1000
傲寒
傲寒 2020-12-31 07:54

I\'m currently trying to decipher WAV files. From headers to the PCM data.

I\'ve found a PDF (http://www.tdt.com/T2Support/technical_notes/tn0132.pdf) detailing the

2条回答
  •  忘掉有多难
    2020-12-31 08:43

    "Backwards" is subjective. Some machines are big-endian, others are little-endian. In byte-oriented contexts like file formats and network protocols, the order is arbitrary. Some formats like to specify big- or little-endian, others like to be flexible and accept either form, with a flag indicating which is in use.

    Looks like WAV files just like little-endian.

提交回复
热议问题