decodeDouble64 method

DecodeResult<double> decodeDouble64(
  1. Uint8List bytes,
  2. int offset
)

Decodes a 64-bit IEEE 754 double precision floating point number from big-endian format (extended type)

Implementation

DecodeResult<double> decodeDouble64(final Uint8List bytes, final int offset) {
  if (bytes.length < offset + 8) {
    throw OscDecodingException(
      'Insufficient bytes for double64 at offset $offset',
    );
  }

  final byteData = ByteData.sublistView(bytes, offset, offset + 8);
  final value = byteData.getFloat64(0);
  return DecodeResult(value, 8);
}