Versions in this module Expand all Collapse all v1 v1.0.0 Mar 25, 2026 Changes in this version + type Policy struct + MaxCPUTime time.Duration + MaxDecodeDepth int + MaxMemoryMB int + MaxNestLevel int + MaxOutputSize int + func DefaultPolicy() *Policy + type Result struct + BytesRead int + Data map[string]any + Duration time.Duration + Error string + MemUsed uint64 + Success bool + type Sandbox struct + func NewSandbox(lib *protocol.Library, policy *Policy) *Sandbox + func (s *Sandbox) Decode(protoName string, data []byte) *Result