MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / be_field

Function be_field

internal/cbm/pdf/pdf_obj.c:1687–1693  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1685}
1686
1687static int64_t be_field(const unsigned char *p, int w) {
1688 uint64_t v = 0;
1689 for (int i = 0; i < w; i++) {
1690 v = (v << PDF_BITS_PER_BYTE) | p[i];
1691 }
1692 return (int64_t)v;
1693}
1694
1695static bool num_to_int(const pdf_val_t *v, int64_t *out) {
1696 if (!v || v->kind != PV_NUM) {

Callers 1

xref_rowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected