utils

package
v0.0.0-...-37acf21 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DummyCloser io.Closer = dummyCloser(0)
)

Functions

func CopyWG

func CopyWG(dst io.Writer, src io.Reader, wr *sync.WaitGroup, errOut *error)

func DualCopy

func DualCopy(c1 io.ReadWriteCloser, c2 io.ReadWriteCloser) (err error)

func ExtractReadableString

func ExtractReadableString(buf []byte) (s string)

func MarshalReplayFrameWindowSizePayload

func MarshalReplayFrameWindowSizePayload(width, height uint32) []byte

func MatchAsterisk

func MatchAsterisk(pattern string, s string) bool

MatchAsterisk match pattern against a utf8 string, support asterisk (*) only

func ReadReplayFrame

func ReadReplayFrame(f *types.ReplayFrame, r io.Reader) (err error)

func WriteReplayFrame

func WriteReplayFrame(f *types.ReplayFrame, w io.Writer) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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