2
* Copyright © 2011 Joel Armstrong <jcarmst@sandia.gov>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License (`GPL') as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18
* Based on parcel implementation from https://bitbucket.org/floren/inferno
35
void parcel_init(struct parcel *p);
36
void parcel_grow(struct parcel *p, size_t size);
37
void parcel_free(struct parcel *p);
38
int32_t parcel_r_int32(struct parcel *p);
39
int parcel_w_int32(struct parcel *p, int32_t val);
40
int parcel_w_string(struct parcel *p, const char *str);
41
char *parcel_r_string(struct parcel *p);
42
size_t parcel_data_avail(struct parcel *p);