go.bufio

Go to Haxe source-to-source compiler

..
Bufio

Package bufio implements buffered I/O. It wraps an io.Reader or io.Writer object, creating another object (Reader or Writer) that also implements the interface but provides buffering and some help for textual I/O.

ReadWriter

ReadWriter stores pointers to a Reader and a Writer. It implements io.ReadWriter.

ReadWriterPointer

ReadWriterPointerPointer

ReadWriterPointer_asInterface

ReadWriter_asInterface

Reader

Reader implements buffering for an io.Reader object.

ReaderPointer

ReaderPointerPointer

ReaderPointer_asInterface

Reader_asInterface

Scanner

Scanner provides a convenient interface for reading data such as a file of newline-delimited lines of text. Successive calls to the Scan method will step through the 'tokens' of a file, skipping the bytes between the tokens. The specification of a token is defined by a split function of type SplitFunc; the default split function breaks the input into lines with line termination stripped. Split functions are defined in this package for scanning a file into lines, bytes, UTF-8-encoded runes, and space-delimited words. The client may instead provide a custom split function.

ScannerPointer

ScannerPointerPointer

ScannerPointer_asInterface

Scanner_asInterface

SplitFunc

SplitFunc is the signature of the split function used to tokenize the input. The arguments are an initial substring of the remaining unprocessed data and a flag, atEOF, that reports whether the Reader has no more data to give. The return values are the number of bytes to advance the input and the next token to return to the user, if any, plus an error, if any.

SplitFuncPointer

SplitFuncPointerPointer

SplitFuncPointer_asInterface

SplitFunc_asInterface

Writer

Writer implements buffering for an io.Writer object. If an error occurs writing to a Writer, no more data will be accepted and all subsequent writes, and Flush, will return the error. After all data has been written, the client should call the Flush method to guarantee all data has been forwarded to the underlying io.Writer.

WriterPointer

WriterPointerPointer

WriterPointer_asInterface

Writer_asInterface