util

package
v0.0.0-...-67ab23a Latest Latest
Warning

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

Go to latest
Published: May 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUint16ToBytePrefix

func AddUint16ToBytePrefix(raw []byte, prefix uint16, littleEndian bool) []byte

func AddUint32ToBytePrefix

func AddUint32ToBytePrefix(raw []byte, prefix uint32, littleEndian bool) []byte

func AddUint8ToBytePrefix

func AddUint8ToBytePrefix(raw []byte, prefix uint8) []byte

func NewChannelQueue

func NewChannelQueue(size int) *chqueue

func NewQueue

func NewQueue() *unsafeQueue

func NewSafeQueue

func NewSafeQueue() *safeQueue

Types

type Queue

type Queue interface {
	IsEmpty() bool
	Offers(a []interface{})
	Offer(v interface{})
	Poll() interface{}
	Peek() interface{}
	Clear()
	Len() int
}

Jump to

Keyboard shortcuts

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