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

Function tp_flate

tests/test_doc_links_pdf.c:103–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103static unsigned char *tp_flate(const void *src, size_t n, size_t *out_len) {
104 uLongf cap = compressBound((uLong)n);
105 unsigned char *out = (unsigned char *)malloc(cap);
106 compress(out, &cap, (const Bytef *)src, (uLong)n);
107 *out_len = cap;
108 return out;
109}
110
111#define TP_CATALOG "<< /Type /Catalog /Pages 2 0 R >>"
112#define TP_HELV "<< /Type /Font /Subtype /Type1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >>"

Callers 2

tp_compressedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected