stream

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(b []byte) []byte

func Decode

func Decode(b []byte) ([]interface{}, error)

func EqualBytes

func EqualBytes(obj interface{}, b []byte) bool

func EqualToken

func EqualToken(obj interface{}, b TokenType) bool

func EqualUInt

func EqualUInt(obj interface{}, b uint) bool

func Token

func Token(tok TokenType) []byte

func UInt

func UInt(val uint) []byte

Types

type BytesData

type BytesData struct {
	Data []byte
}

type TokenData

type TokenData struct {
	Token TokenType
}

type TokenType

type TokenType uint8
var (
	StartList        TokenType = 0xF0
	EndList          TokenType = 0xF1
	StartName        TokenType = 0xF2
	EndName          TokenType = 0xF3
	Call             TokenType = 0xF8
	EndOfData        TokenType = 0xF9
	EndOfSession     TokenType = 0xFA
	StartTransaction TokenType = 0xFB
	EndTransaction   TokenType = 0xFC
	EmptyAtom        TokenType = 0xFF

	ErrUnbalancedList = errors.New("message contained unbalanced list structures")
)

type UIntData

type UIntData struct {
	Value uint
}

Jump to

Keyboard shortcuts

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