Reader

Overview

Location

  • Reference:
    • Go.dll  .NET, .NET Standard 2.0
    • Go.fx  Island
  • Namespace: go.bufio

Implements

Instance Methods


constructor

 

constructor

 

Reader()

 

init()

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

 

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)

Parameters:

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

constructor (Slice<Byte>, Reader, Int64, Int64, error, Int64, Int64) .NET, .NET Standard 2.0

 

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

 

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

 

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

Parameters:

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

constructor (Reader)

 

constructor(value: Reader)

 

Reader(Reader value)

 

init(_ value: Reader)

Parameters:

  • value:

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

 

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) (Slice<Byte>, error)

Parameters:

  • n:

Peek (Int64): tuple of (Slice<Byte>, error) .NET, .NET Standard 2.0

 

// .NET
method Peek(n: Int64): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method Peek(n: Int64): ValueTuple<Slice<Byte>, error>

 

// .NET
(Slice<Byte>, error) Peek(Int64 n)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> Peek(Int64 n)

 

// .NET
func Peek(_ n: Int64) -> (Slice<Byte>, error)
// .NET Standard 2.0
func Peek(_ n: Int64) -> ValueTuple<Slice<Byte>, error>

 

// .NET
func Peek(n Int64) (Slice<Byte>, error)
// .NET Standard 2.0
func Peek(n Int64) ValueTuple<Slice<Byte>, error>

Parameters:

  • n:

Read

 

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

 

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

 

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

 

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

Parameters:

  • p:

ReadByte

 

// .NET, Island
method ReadByte: tuple of (Byte, error)
// .NET Standard 2.0
method ReadByte: ValueTuple<Byte, error>

 

// .NET, Island
(Byte, error) ReadByte()
// .NET Standard 2.0
ValueTuple<Byte, error> ReadByte()

 

// .NET, Island
func ReadByte() -> (Byte, error)
// .NET Standard 2.0
func ReadByte() -> ValueTuple<Byte, error>

 

// .NET, Island
func ReadByte() (Byte, error)
// .NET Standard 2.0
func ReadByte() ValueTuple<Byte, error>

Buffered

 

method Buffered: int

 

int Buffered()

 

func Buffered() -> int

 

func Buffered() int

Discard

 

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

 

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

 

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

 

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

Parameters:

  • n:

ReadBytes

 

// .NET, Island
method ReadBytes(delim: byte): tuple of (Slice<Byte>, error)
// .NET Standard 2.0
method ReadBytes(delim: byte): ValueTuple<Slice<Byte>, error>

 

// .NET, Island
(Slice<Byte>, error) ReadBytes(byte delim)
// .NET Standard 2.0
ValueTuple<Slice<Byte>, error> ReadBytes(byte delim)

 

// .NET, Island
func ReadBytes(_ delim: byte) -> (Slice<Byte>, error)
// .NET Standard 2.0
func ReadBytes(_ delim: byte) -> ValueTuple<Slice<Byte>, error>

 

// .NET, Island
func ReadBytes(delim byte) (Slice<Byte>, error)
// .NET Standard 2.0
func ReadBytes(delim byte) ValueTuple<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() -> (line:Slice<Byte>, isPrefix:Boolean, err:error)

 

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

ReadRune

 

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

 

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

 

func ReadRune() -> (r:rune, size:Int64, err:error)

 

func ReadRune() (r rune, size Int64, err 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) -> (line:Slice<Byte>, err:error)

 

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

Parameters:

  • delim:

ReadString

 

// .NET, Island
method ReadString(delim: byte): tuple of (string, error)
// .NET Standard 2.0
method ReadString(delim: byte): ValueTuple<string, error>

 

// .NET, Island
(string, error) ReadString(byte delim)
// .NET Standard 2.0
ValueTuple<string, error> ReadString(byte delim)

 

// .NET, Island
func ReadString(_ delim: byte) -> (string, error)
// .NET Standard 2.0
func ReadString(_ delim: byte) -> ValueTuple<string, error>

 

// .NET, Island
func ReadString(delim byte) (string, error)
// .NET Standard 2.0
func ReadString(delim byte) ValueTuple<string, error>

Parameters:

  • delim:

Reset

 

method Reset(r: Reader)

 

void Reset(Reader r)

 

func Reset(_ r: Reader)

 

func Reset(r Reader)

Parameters:

  • r:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

UnreadByte

 

method UnreadByte: error

 

error UnreadByte()

 

func UnreadByte() -> error

 

func UnreadByte() error

UnreadRune

 

method UnreadRune: error

 

error UnreadRune()

 

func UnreadRune() -> error

 

func UnreadRune() error

WriteTo

 

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

 

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

 

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

 

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

Parameters:

  • w: