diff options
author | Nikias Bassen | 2018-12-10 01:40:56 +0100 |
---|---|---|
committer | Nikias Bassen | 2018-12-10 01:40:56 +0100 |
commit | 71dd25e14616bd261c3b6c80ff990cd1078266f6 (patch) | |
tree | 1d95c664a9bd18eb49604fb92fe0e0be3fa0969e /src/bytearray.h | |
parent | af994607c799f3bfcbab280ef97e3bd85fe69ed2 (diff) | |
download | libplist-71dd25e14616bd261c3b6c80ff990cd1078266f6.tar.gz libplist-71dd25e14616bd261c3b6c80ff990cd1078266f6.tar.bz2 |
bplist: Improve performance and memory usage when writing binary plist
Diffstat (limited to 'src/bytearray.h')
-rw-r--r-- | src/bytearray.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytearray.h b/src/bytearray.h index aae8c31..312e2aa 100644 --- a/src/bytearray.h +++ b/src/bytearray.h @@ -28,7 +28,7 @@ typedef struct bytearray_t { size_t capacity; } bytearray_t; -bytearray_t *byte_array_new(); +bytearray_t *byte_array_new(size_t initial); void byte_array_free(bytearray_t *ba); void byte_array_grow(bytearray_t *ba, size_t amount); void byte_array_append(bytearray_t *ba, void *buf, size_t len); |