Documentation ¶
Overview ¶
Package io implements the IO domain. Input/Output operations for streams produced by DevTools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseArgs ¶
type CloseArgs struct {
Handle StreamHandle `json:"handle"` // Handle of the stream to close.
}
CloseArgs represents the arguments for Close in the IO domain.
func NewCloseArgs ¶
func NewCloseArgs(handle StreamHandle) *CloseArgs
NewCloseArgs initializes CloseArgs with the required arguments.
type ReadArgs ¶
type ReadArgs struct { Handle StreamHandle `json:"handle"` // Handle of the stream to read. Offset *int `json:"offset,omitempty"` // Seek to the specified offset before reading (if not specificed, proceed with offset following the last read). Size *int `json:"size,omitempty"` // Maximum number of bytes to read (left upon the agent discretion if not specified). }
ReadArgs represents the arguments for Read in the IO domain.
func NewReadArgs ¶
func NewReadArgs(handle StreamHandle) *ReadArgs
NewReadArgs initializes ReadArgs with the required arguments.
Click to show internal directories.
Click to hide internal directories.