getHeaderFromPath static method

Future<(String, int)> getHeaderFromPath(
  1. String path
)

Get Database Header

Return (magic,version)

Implementation

static Future<(String, int)> getHeaderFromPath(String path) async {
  final raf = await File(path).open();
  final res = await TDB2Header.readHeader(raf);
  await raf.close();
  return res;
}