1
#ifndef GRUB_NETBUFF_HEADER
2
#define GRUB_NETBUFF_HEADER
6
#define NETBUFF_ALIGN 2048
7
#define NETBUFFMINLEN 64
11
/* Pointer to the start of the buffer. */
13
/* Pointer to the data. */
15
/* Pointer to the tail. */
17
/* Pointer to the end of the buffer. */
21
grub_err_t grub_netbuff_put (struct grub_net_buff *net_buff, grub_size_t len);
22
grub_err_t grub_netbuff_unput (struct grub_net_buff *net_buff, grub_size_t len);
23
grub_err_t grub_netbuff_push (struct grub_net_buff *net_buff, grub_size_t len);
24
grub_err_t grub_netbuff_pull (struct grub_net_buff *net_buff, grub_size_t len);
25
grub_err_t grub_netbuff_reserve (struct grub_net_buff *net_buff, grub_size_t len);
26
grub_err_t grub_netbuff_clear (struct grub_net_buff *net_buff);
27
struct grub_net_buff * grub_netbuff_alloc (grub_size_t len);
28
void grub_netbuff_free (struct grub_net_buff *net_buff);