Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Changes to the buffer class #842

Merged
merged 6 commits into from
Sep 16, 2015

Conversation

joakim-hove
Copy link
Contributor

The buffer.c file has essentially not been touched since 2009 - scary shit.

Have made the following changes to the buffer class:

 - Have tried to deprecate that buffer_fread_string() and
   buffer_fwrite_string() methods; these methods embed an integer string
   length in the buffer which gets funny.

 - The buffer_strstr() and buffer_strchr() methods are more robust
   towards binary \0 in the buffer.

 - The buffer_fwrite_char_ptr() function will append a trailing \0.

 - Have added a buffer_strcat() function.
jepebe added a commit that referenced this pull request Sep 16, 2015
@jepebe jepebe merged commit 668227b into Ensembles:master Sep 16, 2015
@bska bska mentioned this pull request Sep 16, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants