* Copy a byte string into an sbuf. */
| 522 | * Copy a byte string into an sbuf. |
| 523 | */ |
| 524 | int |
| 525 | sbuf_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. |
nothing calls this directly
no test coverage detected