pub fn serialize_snapshot_data_file<F>(
    data_file_path: &Path,
    serializer: F
) -> Result<u64>where
    F: FnOnce(&mut BufWriter<File>) -> Result<()>,