From e714f2cbe61b88afad5588c15a172779eb7b3b7e Mon Sep 17 00:00:00 2001 From: Harkrishn Patro Date: Thu, 27 Jun 2024 22:10:36 +0000 Subject: [PATCH] Add code comment Signed-off-by: Harkrishn Patro --- src/dict.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dict.h b/src/dict.h index 541ade7915..2baba3b1cb 100644 --- a/src/dict.h +++ b/src/dict.h @@ -66,6 +66,8 @@ typedef struct dictType { /* Allow a dict to carry extra caller-defined metadata. The * extra memory is initialized to 0 when a dict is allocated. */ size_t (*dictMetadataBytes)(dict *d); + /* Method for copying a given key into a buffer of buf_len. Also used for + * computing the length of the key + header when buf is NULL. */ size_t (*embedKey)(unsigned char *buf, size_t buf_len, const void *key, unsigned char *header_size);