]> git.ipfire.org Git - thirdparty/plymouth.git/commit
buffer: Add APIs for editing bytes in buffer
authorRay Strode <rstrode@redhat.com>
Sun, 10 Dec 2023 15:09:37 +0000 (10:09 -0500)
committerRay Strode <rstrode@redhat.com>
Mon, 11 Dec 2023 03:13:58 +0000 (22:13 -0500)
commit804a78860a133055aa2ad54523fa68c97cbfd84d
treee87723e91cff53794e7b87786c15ccc67a63cbee
parent73093a8411832159d380b889974016a0dfad04df
buffer: Add APIs for editing bytes in buffer

This commit adds a few functions for getting at and
using the size, bytes, and capacity of a buffer.

This will make it easier to modify utf8 string on the side and
and update the buffer size afterward.
src/libply/ply-buffer.c
src/libply/ply-buffer.h