| 844 | } |
| 845 | |
| 846 | const char *strEncoding(int encoding) { |
| 847 | switch(encoding) { |
| 848 | case OBJ_ENCODING_RAW: return "raw"; |
| 849 | case OBJ_ENCODING_INT: return "int"; |
| 850 | case OBJ_ENCODING_HT: return "hashtable"; |
| 851 | case OBJ_ENCODING_QUICKLIST: return "quicklist"; |
| 852 | case OBJ_ENCODING_ZIPLIST: return "ziplist"; |
| 853 | case OBJ_ENCODING_INTSET: return "intset"; |
| 854 | case OBJ_ENCODING_SKIPLIST: return "skiplist"; |
| 855 | case OBJ_ENCODING_EMBSTR: return "embstr"; |
| 856 | case OBJ_ENCODING_STREAM: return "stream"; |
| 857 | default: return "unknown"; |
| 858 | } |
| 859 | } |
| 860 | |
| 861 | /* =========================== Memory introspection ========================= */ |
| 862 |
no outgoing calls
no test coverage detected