Reader

Overview

Location

  • Reference: Go.fx
  • Namespace: go.bufio
  • Platforms: Island


Instance Methods


constructor

 

constructor

 

Reader()

 

init()

 

Sub New()

constructor (Slice<Byte>, Reader, int, int, error, int, int)

 

constructor(abuf: Slice<Byte>; ard: Reader; ar: int; aw: int; aerr: error; alastByte: int; alastRuneSize: int)

 

Reader(Slice<Byte> abuf, Reader ard, int ar, int aw, error aerr, int alastByte, int alastRuneSize)

 

init(_ abuf: Slice<Byte>, _ ard: Reader, _ ar: int, _ aw: int, _ aerr: error, _ alastByte: int, _ alastRuneSize: int)

 

Sub New(abuf As Slice<Byte>, ard As Reader, ar As int, aw As int, aerr As error, alastByte As int, alastRuneSize As int)

Parameters:

  • abuf:
  • ard:
  • ar:
  • aw:
  • aerr:
  • alastByte:
  • alastRuneSize:

constructor (Reader)

 

constructor(value: Reader)

 

Reader(Reader value)

 

init(_ value: Reader)

 

Sub New(value As Reader)

Parameters:

  • value:

Peek (int): tuple of (Slice<Byte>, error)

 

method Peek(n: int): tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) Peek(int n)

 

func Peek(_ n: int) -> (Slice<Byte>, error)

 

func Peek(n int) tuple of (Slice<Byte>, error)

 

Function Peek(n As int) As Tuple (Of Slice<Byte>, error)

Parameters:

  • n:

Read (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Read(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> p)

 

func Read(_ p: Slice<Byte>) -> (Int64, error)

 

func Read(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

ReadByte

 

method ReadByte: tuple of (Byte, error)

 

(Byte, error) ReadByte()

 

func ReadByte() -> (Byte, error)

 

func ReadByte() tuple of (Byte, error)

 

Function ReadByte() As Tuple (Of Byte, error)

Buffered

 

method Buffered: int

 

int Buffered()

 

func Buffered() -> int

 

func Buffered() int

 

Function Buffered() As int

Discard

 

method Discard(n: int): tuple of (discarded: Int64, err: error)

 

(Int64 discarded, error err) Discard(int n)

 

func Discard(_ n: int) -> (Int64, error)

 

func Discard(n int) tuple of (|name=discarded| Int64, |name=err| error)

 

Function Discard(n As int) As Tuple (Of Int64, error)

Parameters:

  • n:

Peek (int): tuple of (Slice<Byte>, error)

 

method Peek(n: int): tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) Peek(int n)

 

func Peek(_ n: int) -> (Slice<Byte>, error)

 

func Peek(n int) tuple of (Slice<Byte>, error)

 

Function Peek(n As int) As Tuple (Of Slice<Byte>, error)

Parameters:

  • n:

Read (Slice<Byte>): tuple of (n: Int64, err: error)

 

method Read(p: Slice<Byte>): tuple of (n: Int64, err: error)

 

(Int64 n, error err) Read(Slice<Byte> p)

 

func Read(_ p: Slice<Byte>) -> (Int64, error)

 

func Read(p Slice<Byte>) tuple of (|name=n| Int64, |name=err| error)

 

Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)

Parameters:

  • p:

ReadBytes

 

method ReadBytes(delim: byte): tuple of (Slice<Byte>, error)

 

(Slice<Byte>, error) ReadBytes(byte delim)

 

func ReadBytes(_ delim: byte) -> (Slice<Byte>, error)

 

func ReadBytes(delim byte) tuple of (Slice<Byte>, error)

 

Function ReadBytes(delim As byte) As Tuple (Of Slice<Byte>, error)

Parameters:

  • delim:

ReadLine

 

method ReadLine: tuple of (line: Slice<Byte>, isPrefix: Boolean, err: error)

 

(Slice<Byte>line, Boolean isPrefix, error err) ReadLine()

 

func ReadLine() -> (Slice<Byte>, Boolean, error)

 

func ReadLine() tuple of (|name=line| Slice<Byte>, |name=isPrefix| Boolean, |name=err| error)

 

Function ReadLine() As Tuple (Of Slice<Byte>, Boolean, error)

ReadRune

 

method ReadRune: tuple of (r: rune, size: Int64, err: error)

 

(rune r, Int64 size, error err) ReadRune()

 

func ReadRune() -> (rune, Int64, error)

 

func ReadRune() tuple of (|name=r| rune, |name=size| Int64, |name=err| error)

 

Function ReadRune() As Tuple (Of rune, Int64, error)

ReadSlice

 

method ReadSlice(delim: byte): tuple of (line: Slice<Byte>, err: error)

 

(Slice<Byte>line, error err) ReadSlice(byte delim)

 

func ReadSlice(_ delim: byte) -> (Slice<Byte>, error)

 

func ReadSlice(delim byte) tuple of (|name=line| Slice<Byte>, |name=err| error)

 

Function ReadSlice(delim As byte) As Tuple (Of Slice<Byte>, error)

Parameters:

  • delim:

ReadString

 

method ReadString(delim: byte): tuple of (string, error)

 

(string, error) ReadString(byte delim)

 

func ReadString(_ delim: byte) -> (string, error)

 

func ReadString(delim byte) tuple of (string, error)

 

Function ReadString(delim As byte) As Tuple (Of string, error)

Parameters:

  • delim:

Reset

 

method Reset(r: Reader)

 

void Reset(Reader r)

 

func Reset(_ r: Reader)

 

func Reset(r Reader) void

 

Sub Reset(r As Reader)

Parameters:

  • r:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

 

Function Size() As int

UnreadByte

 

method UnreadByte: error

 

error UnreadByte()

 

func UnreadByte() -> error

 

func UnreadByte() error

 

Function UnreadByte() As error

UnreadRune

 

method UnreadRune: error

 

error UnreadRune()

 

func UnreadRune() -> error

 

func UnreadRune() error

 

Function UnreadRune() As error

WriteTo

 

method WriteTo(w: Writer): tuple of (n: int64, err: error)

 

(int64 n, error err) WriteTo(Writer w)

 

func WriteTo(_ w: Writer) -> (int64, error)

 

func WriteTo(w Writer) tuple of (|name=n| int64, |name=err| error)

 

Function WriteTo(w As Writer) As Tuple (Of int64, error)

Parameters:

  • w: