aboutsummaryrefslogtreecommitdiffhomepage
path: root/pyecsca/codegen/fat.h
blob: 9fb60519b983b2dfc40c24c34e41320fb7baf4aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef FAT_H_
#define FAT_H_

#include <stdlib.h>

/**
 * A fat pointer type that knows its own length.
 */
typedef struct {
	uint32_t len;
	void *value;
} fat_t;

#define fat_empty {0, NULL}

#endif //FAT_H_