binary-parser icon indicating copy to clipboard operation
binary-parser copied to clipboard

double() and float() no longer available

Open danni opened this issue 6 years ago • 1 comments

The double() and float() that follow endianness have gone missing in binary-parser > 1.3.2

danni avatar Nov 18 '19 23:11 danni

Here's an example that no longer works:

const SAMPLE = new Parser()
  .endianess('little')
  .int32('sampleTimeSec')
  .uint16('sampleTimeMS')
  .uint16('gpsFixFlags')
  .double('lat')
  .double('lng')
  .float('ele')
  .float('speed')
  .uint16('pdop')
  .uint16('hdop')
  .uint16('vdop')
  .skip(1)
  .uint8('sat')
  .uint16('bearing')

danni avatar Nov 18 '19 23:11 danni