encoding

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeInt

func DecodeInt(b bytes.Buffer) (int, error)

Decodes a buffer to integer usign Gob decoder

func EncodeInt

func EncodeInt(a int) ([]byte, error)

Encodes the given integer using Gob encoder

Types

type GobEncoding

type GobEncoding interface {
	// Encodes the given integer using Gob encoder
	EncodeInt(int) ([]byte, error)

	// Decodes a buffer to integer usign Gob decoder
	DecodeInt(bytes.Buffer) (int, error)
}

Gob encoding helper interface

Jump to

Keyboard shortcuts

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