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

Class sdshdr5

sds.h:47–50  ·  view source on GitHub ↗

Note: sdshdr5 is never used, we just access the flags byte directly. * However is here to document the layout of type 5 SDS strings. */

Source from the content-addressed store, hash-verified

45/* Note: sdshdr5 is never used, we just access the flags byte directly.
46 * However is here to document the layout of type 5 SDS strings. */
47struct __attribute__ ((__packed__)) sdshdr5 {
48 unsigned char flags; /* 3 lsb of type, and 5 msb of string length */
49 char buf[];
50};
51struct __attribute__ ((__packed__)) sdshdr8 {
52 uint8_t len; /* used */
53 uint8_t alloc; /* excluding the header and null terminator */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected