io

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_BUFFER_SIZE int = 188 * 1000
	READ_BYTES              = 188
)
View Source
const (
	CUSTOM_EOF_TIMEOUT int = 100 // 100ms
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileReaderType added in v0.0.3

type FileReaderType struct {
	// contains filtered or unexported fields
}

func FileReader added in v0.0.3

func FileReader(filename string) *FileReaderType

func (*FileReaderType) Close added in v0.0.3

func (w *FileReaderType) Close()

func (*FileReaderType) Open added in v0.0.3

func (w *FileReaderType) Open() error

func (*FileReaderType) Read added in v0.0.3

func (w *FileReaderType) Read() ([]byte, bool)

type FileWriterType added in v0.0.2

type FileWriterType struct {
	// contains filtered or unexported fields
}

func FileWriter added in v0.0.2

func FileWriter(filename string) *FileWriterType

func (*FileWriterType) Close added in v0.0.2

func (w *FileWriterType) Close()

func (*FileWriterType) Open added in v0.0.2

func (w *FileWriterType) Open() error

func (*FileWriterType) Write added in v0.0.2

func (w *FileWriterType) Write(data []byte)

type IOInterface

type IOInterface interface {
	Open() error
	Close()
	Read() ([]byte, bool)
	Write([]byte)
}

type IOReaderInterface

type IOReaderInterface interface {
	Open() error
	Close()
	Read() ([]byte, bool)
}

type IOWriterInterface

type IOWriterInterface interface {
	Open() error
	Close()
	Write([]byte)
}

type UdpReaderType

type UdpReaderType struct {
	// contains filtered or unexported fields
}

func UdpReader

func UdpReader(ip string, port int, interf string) *UdpReaderType

func (*UdpReaderType) Close

func (udpReader *UdpReaderType) Close()

func (*UdpReaderType) Open

func (udpReader *UdpReaderType) Open() error

func (*UdpReaderType) Read

func (udpReader *UdpReaderType) Read() ([]byte, bool)

func (*UdpReaderType) Write

func (udpReader *UdpReaderType) Write([]byte)

Jump to

Keyboard shortcuts

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