Decoding counters from two byte orders

A migration tool reads unsigned 16-bit counters from two instruments. Instrument A stores counters in big-endian order, and instrument B uses little-endian order. Each byte has 8 bits. In the table, bytes are written in hexadecimal, and the first byte shown occurs first in the file. Complete the decoded decimal values using exact integers.

SampleInstrumentFile bytes in hexadecimalDecoded decimal value
A1A03 20
B1B03 20
A2A01 90
B2B01 90

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Serialization Questions: