utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromUint24

func FromUint24(number Uint24) uint32

func GetSignalContext

func GetSignalContext() context.Context

func InitTCP

func InitTCP(conn net.Conn, readBufferSize int, writeBufferSize int) error

func MakeStreamCipher

func MakeStreamCipher(key, iv []byte) cipher.Stream

func ReadFull

func ReadFull(src io.Reader) (rv []byte, err error)

func ReverseBytes

func ReverseBytes(data []byte) []byte

ReverseBytes is a common slice reverser.

func SetLimits

func SetLimits() error

Types

type Uint24

type Uint24 [3]byte

func ToUint24

func ToUint24(number uint32) Uint24

Jump to

Keyboard shortcuts

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