提供array和hashtable的存储引擎层的二进制安全支持,把入口函数修改为接收参数长度,将strlen、strcmp、strcpy替换。

This commit is contained in:
2026-01-06 21:05:48 +08:00
parent 144b374aa2
commit cb0134a852
12 changed files with 767 additions and 223 deletions

View File

@@ -84,7 +84,7 @@ int kvs_hash_create(kvs_hash_t *hash) {
}
//
void kvs_hash_destory(kvs_hash_t *hash) {
void kvs_hash_destroy(kvs_hash_t *hash) {
if (!hash) return;
@@ -275,7 +275,7 @@ int main() {
ret = kvs_hash_exist(&hash, "Teacher1");
printf("Exist Teacher1 ret : %d\n", ret);
kvs_hash_destory(&hash);
kvs_hash_destroy(&hash);
return 0;
}