-
Notifications
You must be signed in to change notification settings - Fork 1
/
array.h
31 lines (25 loc) · 1.24 KB
/
array.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
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* array.h :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/12 17:23:19 by oadhesiv #+# #+# */
/* Updated: 2019/07/12 17:48:12 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef ARRAY_H
# define ARRAY_H
# include "libft.h"
typedef struct s_byte_array
{
t_byte *data;
size_t used;
size_t size;
} t_byte_array;
t_byte_array *byte_array_new(size_t len);
t_byte_array *byte_array_resize(t_byte_array *arr, size_t len);
t_byte_array *byte_array_add(t_byte_array *arr, t_byte data);
t_byte byte_array_has(t_byte_array *arr, t_byte data);
#endif