olreader

package
v0.0.0-...-eb3d71d Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	// ERROR_INVALID_PARAMETER this error isn't in the windows package for some reason
	ERROR_INVALID_PARAMETER windows.Errno = 87 //nolint:revive // use windows error naming convention
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OverlappedCallback

type OverlappedCallback interface {
	OnData([]uint8)
	OnError(err error)
}

OverlappedCallbackFunc is called every time a read completes. if err is not nil, it will be set to

type OverlappedReader

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

OverlappedReader is the manager object for doing overlapped reads for a particular handle

func NewOverlappedReader

func NewOverlappedReader(cbfn OverlappedCallback, bufsz, count int) (*OverlappedReader, error)

func (*OverlappedReader) Ioctl

func (olr *OverlappedReader) Ioctl(ioControlCode uint32, inBuffer *byte, inBufferSize uint32, outBuffer *byte, outBufferSize uint32, bytesReturned *uint32, overlapped *windows.Overlapped) (err error)

Ioctl passes an ioctl() through to the underlying handle

func (*OverlappedReader) Open

func (olr *OverlappedReader) Open(name string) error

func (*OverlappedReader) Read

func (olr *OverlappedReader) Read() error

func (*OverlappedReader) Stop

func (olr *OverlappedReader) Stop()

Jump to

Keyboard shortcuts

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