]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/buffer: Add variable sized heap buffer
authorChris Coulson <chris.coulson@canonical.com>
Thu, 7 Jan 2021 15:15:43 +0000 (15:15 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:19 +0000 (15:54 +0100)
commit030fb6c4fa354cdbd6a8d6903dfed5d36eaf3cb2
tree35cd88ea6d59fb02fe90ca0853eb24cda9749d3d
parent8bc817014ce3d7a498db44eae33c8b90e2430926
kern/buffer: Add variable sized heap buffer

Add a new variable sized heap buffer type (grub_buffer_t) with simple
operations for appending data, accessing the data and maintaining
a read cursor.

Signed-off-by: Chris Coulson <chris.coulson@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/Makefile.core.def
grub-core/kern/buffer.c [new file with mode: 0644]
include/grub/buffer.h [new file with mode: 0644]