Debian Codegraph @

texk/web2c/mfluadir/otfcc/lib/libcff/cff-index.h

raw
1 #ifndef CARYLL_cff_INDEX_H
2 #define CARYLL_cff_INDEX_H
3
4 #include <stdint.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 #include "support/util.h"
9
10 #include "cff-util.h"
11 #include "cff-value.h"
12
13 typedef enum { CFF_INDEX_16, CFF_INDEX_32 } cff_IndexCountType;
14
15 typedef struct {
16 cff_IndexCountType countType;
17 arity_t count;
18 uint8_t offSize;
19 uint32_t *offset;
20 uint8_t *data;
21 } cff_Index;
22
23 extern caryll_ElementInterfaceOf(cff_Index) {
24 caryll_RT(cff_Index);
25 void (*empty)(cff_Index * i);
26 uint32_t (*getLength)(const cff_Index *i);
27 void (*parse)(uint8_t * data, uint32_t pos, cff_Index * in);
28 cff_Index *(*fromCallback)(void *context, uint32_t length, caryll_Buffer *(*fn)(void *, uint32_t));
29 caryll_Buffer *(*build)(const cff_Index *index);
30 }
31 cff_iIndex;
32
33 #endif