MCPcopy Create free account
hub / github.com/antirez/botlib / sdshdr16

Class sdshdr16

sds.h:57–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 char buf[];
56};
57struct __attribute__ ((__packed__)) sdshdr16 {
58 uint16_t len; /* used */
59 uint16_t alloc; /* excluding the header and null terminator */
60 unsigned char flags; /* 3 lsb of type, 5 unused bits */
61 char buf[];
62};
63struct __attribute__ ((__packed__)) sdshdr32 {
64 uint32_t len; /* used */
65 uint32_t alloc; /* excluding the header and null terminator */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected