hexDump method
Debug helper: Dump next N bytes as hex
Implementation
String hexDump(int length) {
final end = (_offset + length).clamp(0, _bytes.length);
final bytes = _bytes.sublist(_offset, end);
final hex = bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join(' ');
return 'offset=$_offset: $hex';
}