diff options
| author | Ray Strode <rstrode@redhat.com> | 2008-05-22 17:01:09 -0400 |
|---|---|---|
| committer | Ray Strode <rstrode@redhat.com> | 2008-05-22 17:02:56 -0400 |
| commit | d2b4a3ef73738f5a5a131f630a33e3a0b6e5d6de (patch) | |
| tree | 8d0f76da48e771a2a256301af053c8f5164270ca /src/libply/ply-buffer.h | |
| parent | 21081183a2495c37a85e7b78e7cb73023b20f04f (diff) | |
| download | plymouth-d2b4a3ef73738f5a5a131f630a33e3a0b6e5d6de.tar.gz plymouth-d2b4a3ef73738f5a5a131f630a33e3a0b6e5d6de.tar.xz plymouth-d2b4a3ef73738f5a5a131f630a33e3a0b6e5d6de.zip | |
Add new ply_buffer_remove_bytes_at_end
This function is like ply_buffer_remove_bytes, but it
truncates away the end of the buffer instead of shifting
the contents over the start of the buffer.
Diffstat (limited to 'src/libply/ply-buffer.h')
| -rw-r--r-- | src/libply/ply-buffer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libply/ply-buffer.h b/src/libply/ply-buffer.h index a1e6133..38dc9c1 100644 --- a/src/libply/ply-buffer.h +++ b/src/libply/ply-buffer.h @@ -45,6 +45,8 @@ void ply_buffer_append_with_non_literal_format_string (ply_buffer_t *buffer, const char *format, ...); void ply_buffer_remove_bytes (ply_buffer_t *buffer, size_t number_of_bytes); +void ply_buffer_remove_bytes_at_end (ply_buffer_t *buffer, + size_t number_of_bytes); const char *ply_buffer_get_bytes (ply_buffer_t *buffer); size_t ply_buffer_get_size (ply_buffer_t *buffer); void ply_buffer_clear (ply_buffer_t *buffer); |
