-
Notifications
You must be signed in to change notification settings - Fork 11
/
tar.h
27 lines (23 loc) · 768 Bytes
/
tar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
* author : Shuichi TAKANO
* since : Mon Aug 09 2021 02:50:15
* Modified by Frank Hoedemakers 3/2023
*/
#ifndef _3A466107_0134_6471_2615_EA5DEBBBFAE6
#define _3A466107_0134_6471_2615_EA5DEBBBFAE6
#include <vector>
#include <string_view>
#include <stdint.h>
struct TAREntry
{
std::string_view filename;
const uint8_t *data{};
size_t size = 0;
// const uint8_t *nextTAR{};
// const uint8_t *prevTAR{};
};
// std::vector<TAREntry>
// parseTAR(const void *_p, bool (*validateEntry)(const uint8_t *) = {});
int GetValidTAREntries(const void *_p, bool (*validateEntry)(const uint8_t *) = {});
TAREntry extractTAREntryatindex(int index, const void *_p, bool (*validateEntry)(const uint8_t *));
#endif /* _3A466107_0134_6471_2615_EA5DEBBBFAE6 */