Documentation ¶ Index ¶ Variables func Marshal[T proto.Message](msg T, version int32) (*waCommon.SubProtocol, error) func Unmarshal[T proto.Message](into T, msg *waCommon.SubProtocol, expectedVersion int32) (T, error) Constants ¶ This section is empty. Variables ¶ View Source var ErrUnsupportedVersion = errors.New("unsupported subprotocol version") Functions ¶ func Marshal ¶ func Marshal[T proto.Message](msg T, version int32) (*waCommon.SubProtocol, error) func Unmarshal ¶ func Unmarshal[T proto.Message](into T, msg *waCommon.SubProtocol, expectedVersion int32) (T, error) Types ¶ This section is empty. Source Files ¶ View all Source files decode.go Click to show internal directories. Click to hide internal directories.