Note: sdshdr5 is never used, we just access the flags byte directly. * However is here to document the layout of type 5 SDS strings. */
| 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. */ |
| 47 | struct __attribute__ ((__packed__)) sdshdr5 { |
| 48 | unsigned char flags; /* 3 lsb of type, and 5 msb of string length */ |
| 49 | char buf[]; |
| 50 | }; |
| 51 | struct __attribute__ ((__packed__)) sdshdr8 { |
| 52 | uint8_t len; /* used */ |
| 53 | uint8_t alloc; /* excluding the header and null terminator */ |
nothing calls this directly
no outgoing calls
no test coverage detected