json(go ext): 适配 kvspace 30 符号 PascalCase ABI - #323
Merged
Merged
Conversation
- kvspaceGet 增加 resolve 参数;kvspaceSet → kvspaceWriteInPlace / kvspaceWriteNewPlace;kvspaceList → kvspaceListLen + kvspaceListAt; kvspaceMkindex 增加 capacity;新增 kvspaceTlvEncode;去掉 kvspaceBytesFree - XValue head 结构对齐 kvspace/include/kvspace/kvspace.h 的三正交轴 ref×storetype×langtype - 头文件 kvlang_rwirext.h → kvlang_runtime.h - complex_test 跟随 ABI 签名更新 修复 make all 的 Go 扩展链接失败(undefined reference kvspaceList/ kvspaceSet/kvspaceBytesFree)。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
Go json 扩展适配 kvspace 的 30 符号 PascalCase 正典 ABI(此前
make all链接失败:undefined reference kvspaceList/kvspaceSet/kvspaceBytesFree)。kvspaceGet(h,k,&out,&len)kvspaceGet(h,k,resolve,&out,&len)kvspaceSet(h,keys,vals,lens,n,...)kvspaceWriteInPlace/kvspaceWriteNewPlacekvspaceList(h,prefix,...)kvspaceListLen+kvspaceListAtkvspaceMkindex(h,path,...)kvspaceMkindex(h,path,capacity,...)kvspaceBytesFreekvspaceTlvEncode另:XValue head 结构逐字段对齐
kvspace/include/kvspace/kvspace.h的三正交轴ref×storetype×langtype;头文件kvlang_rwirext.h→kvlang_runtime.h;complex_test跟随签名更新。本地验证:
make json通过(此前链接失败)、go vet无问题。🤖 Generated with Claude Code