readHeader method
Implementation
Future<UVaultHeader> readHeader(String path) async {
final BytesBuilder head = BytesBuilder(copy: false);
await for (final Uint8List bytes in _backend.read(path, end: 512)) {
head.add(bytes);
}
return UVaultHeader.decode(head.takeBytes());
}