MCPcopy Create free account
hub / github.com/bytedance/InfiniStore / alloc_buffer

Function alloc_buffer

src/infinistore.cpp:669–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667}
668
669void alloc_buffer(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf) {
670 buf->base = (char *)malloc(suggested_size);
671 buf->len = suggested_size;
672}
673
674int verify_header(header_t *header) {
675 if (header->magic != MAGIC) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected