LibT2FS 0.1
C API for accessing TEngine data in memory.
Loading...
Searching...
No Matches
array.h
Go to the documentation of this file.
1/* This file is part of LibT2FS.
2 *
3 * LibT2FS is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
7 *
8 * LibT2FS is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <https://www.gnu.org/licenses/>.
15 */
16
17#ifndef H_T2FS_ARRAY
18#define H_T2FS_ARRAY
19
20#include "t2fs.h"
21#include "common.h"
22
23typedef struct s_t2fsArray {
24 uint32_t size;
25 uint32_t count;
26 void *data;
27 uint8_t isValid;
29
30
31void
33
34int
36
37// https://en.wikipedia.org/wiki/AOS_vs_SOA
38// https://en.wikipedia.org/wiki/Interleaving_(data)
39// the given array needs to be set and valid
40int
42
43
44#endif
void t2fs_array_init(t2fsArray *array)
int t2fs_array_deinterleave(t2fsArray *array)
int t2fs_array_set_node(t2fsNode *node, t2fsArray *array)
struct s_t2fsArray t2fsArray
Definition array.h:23
void * data
Definition array.h:26
uint32_t count
Definition array.h:25
uint32_t size
Definition array.h:24
uint8_t isValid
Definition array.h:27
struct s_t2fsNode t2fsNode
This is the core object to describe a path inside the tree.
Definition t2fs.h:110