MCPcopy Create free account
hub / github.com/F-Stack/f-stack / sbuf_bcpy

Function sbuf_bcpy

freebsd/kern/subr_sbuf.c:524–533  ·  view source on GitHub ↗

* Copy a byte string into an sbuf. */

Source from the content-addressed store, hash-verified

522 * Copy a byte string into an sbuf.
523 */
524int
525sbuf_bcpy(struct sbuf *s, const void *buf, size_t len)
526{
527
528 assert_sbuf_integrity(s);
529 assert_sbuf_state(s, 0);
530
531 sbuf_clear(s);
532 return (sbuf_bcat(s, buf, len));
533}
534
535/*
536 * Append a string to an sbuf.

Callers

nothing calls this directly

Calls 2

sbuf_clearFunction · 0.85
sbuf_bcatFunction · 0.85

Tested by

no test coverage detected