Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + func Marshal(m Marshallable) []byte + func MarshalAll(ms []Marshallable) []byte + func TotalSize(ms []Marshallable) int + type CheckedMarshallable interface + CheckedMarshal func(dst []byte) ([]byte, bool) + CheckedUnmarshal func(src []byte) ([]byte, bool) + type CopyContext interface + CopyInBytes func(addr hostarch.Addr, b []byte) (int, error) + CopyOutBytes func(addr hostarch.Addr, b []byte) (int, error) + CopyScratchBuffer func(size int) []byte + type Marshallable interface + CopyIn func(cc CopyContext, addr hostarch.Addr) (int, error) + CopyInN func(cc CopyContext, addr hostarch.Addr, limit int) (int, error) + CopyOut func(cc CopyContext, addr hostarch.Addr) (int, error) + CopyOutN func(cc CopyContext, addr hostarch.Addr, limit int) (int, error) + MarshalBytes func(dst []byte) []byte + MarshalUnsafe func(dst []byte) []byte + Packed func() bool + SizeBytes func() int + UnmarshalBytes func(src []byte) []byte + UnmarshalUnsafe func(src []byte) []byte