comparison buffer_heap.c @ 849:1c4d7ff0a682

buffer: add buffer_insert & buffer_insert_c Like appending, but at any offset - not just at the end of existing data. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Thu, 16 Sep 2021 22:39:12 -0400
parents 0fa2f6606c5e
children
comparison
equal deleted inserted replaced
848:8371ff905869 849:1c4d7ff0a682
1 /* 1 /*
2 * Copyright (c) 2017-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> 2 * Copyright (c) 2017-2021 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
3 * 3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a copy 4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal 5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights 6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26 .realloc = realloc, 26 .realloc = realloc,
27 .free = free, 27 .free = free,
28 .clear = generic_buffer_clear_memset, 28 .clear = generic_buffer_clear_memset,
29 .copyin = generic_buffer_copyin_memcpy, 29 .copyin = generic_buffer_copyin_memcpy,
30 .copyout = generic_buffer_copyout_memcpy, 30 .copyout = generic_buffer_copyout_memcpy,
31 .move = generic_buffer_move_memmove,
31 }; 32 };