mirror of
https://github.com/luxfi/zapcodec.git
synced 2026-10-30 15:12:04 +00:00
main
Build, vet and tests are clean on the Go 1.27.1 toolchain. Co-authored-by: Hanzo Dev <[email protected]>
zapcodec
ZAP-native little-endian reflection codec for the Lux platform.
See LLM.md for the full module spec, wire format, and history.
import (
"github.com/luxfi/zapcodec"
"github.com/luxfi/utils/wrappers"
)
c := zapcodec.NewDefault()
_ = c.RegisterType(&MyConcrete{})
p := &wrappers.Packer{MaxSize: 1 << 20}
_ = c.MarshalInto(value, p)
For the canonical version-prefix outer layer used by the SDK wallet,
see github.com/luxfi/proto/zap_codec.NewVersionedManager.
Extracted from github.com/luxfi/codec/zapcodec in Wave 2G-Archive.
Description
ZAP-native little-endian reflection codec — extracted from luxfi/codec as part of Wave 2G-Archive
90 KiB
Languages
Go
100%