encdec

package
v0.22.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMsgs

func DecodeMsgs(val []byte) ([]msgtypes.Message, error)

DecodeMsgs takes a byte slice, decodes it as a GOB-encoded slice of msgtypes.Message, and returns the decoded slice and any decoding error.

func EncodeMsgs

func EncodeMsgs(msgs []msgtypes.Message) ([]byte, error)

EncodeMsgs encodes a given list of messages using GOB encoding and returns the []byte representation of the messages. If there is an error during encoding, the function logs the error and returns it.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL