MCPcopy Create free account
hub / github.com/coreboot/coreboot / bgets

Function bgets

util/cbfstool/xdr.c:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9#include "common.h"
10
11size_t bgets(struct buffer *input, void *output, size_t len)
12{
13 len = input->size < len ? input->size : len;
14 memmove(output, input->data, len);
15 input->data += len;
16 input->size -= len;
17 return len;
18}
19
20size_t bputs(struct buffer *b, const void *data, size_t len)
21{

Callers 2

elf_eidentFunction · 0.85

Calls 1

memmoveFunction · 0.50

Tested by

no test coverage detected