ReadWriter

Overview

Location

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

Implements

 

constructor

 

constructor

 

ReadWriter()

 

init()

 

constructor(aReader: Reference<Reader>; aWriter: Reference<Writer>)

 

ReadWriter(Reference<Reader> aReader, Reference<Writer> aWriter)

 

init(_ aReader: Reference<Reader>, _ aWriter: Reference<Writer>)

Parameters:

  • aReader:
  • aWriter:

constructor (ReadWriter)

 

constructor(value: ReadWriter)

 

ReadWriter(ReadWriter value)

 

init(_ value: ReadWriter)

Parameters:

  • value:

Available

 

method Available: int

 

int Available()

 

func Available() -> int

 

func Available() int

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:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() error

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>

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

 

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

 

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

 

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

 

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

Parameters:

  • delim:

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

 

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

Parameters:

  • delim:

Reader

 

var Reader: Reference<Reader>;

 

Reference<Reader> Reader

 

var Reader: Reference<Reader>

 

Reader Reference<Reader>

ReadFrom

 

method ReadFrom(r: Reader): tuple of (n: int64, err: error)

 

(int64 n, error err) ReadFrom(Reader r)

 

func ReadFrom(_ r: Reader) -> (n:int64, err:error)

 

func ReadFrom(r Reader) (n int64, err error)

Parameters:

  • r:

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 (Byte): tuple of (string, error) .NET, .NET Standard 2.0

 

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

 

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

 

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

 

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

Parameters:

  • delim:

ReadString (byte): tuple of (string, error) Island

 

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

 

(string, error) ReadString(byte delim)

 

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

 

func ReadString(delim byte) (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

Write

 

method Write(p: Slice<Byte>): tuple of (nn: Int64, err: error)

 

(Int64 nn, error err) Write(Slice<Byte> p)

 

func Write(_ p: Slice<Byte>) -> (nn:Int64, err:error)

 

func Write(p Slice<Byte>) (nn Int64, err error)

Parameters:

  • p:

WriteByte (Byte): error .NET, .NET Standard 2.0

 

method WriteByte(c: Byte): error

 

error WriteByte(Byte c)

 

func WriteByte(_ c: Byte) -> error

 

func WriteByte(c Byte) error

Parameters:

  • c:

WriteByte (byte): error Island

 

method WriteByte(c: byte): error

 

error WriteByte(byte c)

 

func WriteByte(_ c: byte) -> error

 

func WriteByte(c byte) error

Parameters:

  • c:

Writer

 

var Writer: Reference<Writer>;

 

Reference<Writer> Writer

 

var Writer: Reference<Writer>

 

Writer Reference<Writer>

WriteRune

 

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

 

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

 

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

 

func WriteRune(r rune) (size Int64, err error)

Parameters:

  • r:

WriteString

 

// .NET, Island
method WriteString(s: string): tuple of (Int64, error)
// .NET Standard 2.0
method WriteString(s: string): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) WriteString(string s)
// .NET Standard 2.0
ValueTuple<Int64, error> WriteString(string s)

 

// .NET, Island
func WriteString(_ s: string) -> (Int64, error)
// .NET Standard 2.0
func WriteString(_ s: string) -> ValueTuple<Int64, error>

 

// .NET, Island
func WriteString(s string) (Int64, error)
// .NET Standard 2.0
func WriteString(s string) ValueTuple<Int64, error>

Parameters:

  • s:

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:

 

Reader

 

var Reader: Reference<Reader>;

 

Reference<Reader> Reader

 

var Reader: Reference<Reader>

 

Reader Reference<Reader>

Writer

 

var Writer: Reference<Writer>;

 

Reference<Writer> Writer

 

var Writer: Reference<Writer>

 

Writer Reference<Writer>

 

constructor

 

constructor

 

ReadWriter()

 

init()

 

constructor(aReader: Reference<Reader>; aWriter: Reference<Writer>)

 

ReadWriter(Reference<Reader> aReader, Reference<Writer> aWriter)

 

init(_ aReader: Reference<Reader>, _ aWriter: Reference<Writer>)

Parameters:

  • aReader:
  • aWriter:

constructor (ReadWriter)

 

constructor(value: ReadWriter)

 

ReadWriter(ReadWriter value)

 

init(_ value: ReadWriter)

Parameters:

  • value:

Available

 

method Available: int

 

int Available()

 

func Available() -> int

 

func Available() int

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:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() error

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>

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

 

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

 

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

 

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

 

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

Parameters:

  • delim:

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

 

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

Parameters:

  • delim:

ReadFrom

 

method ReadFrom(r: Reader): tuple of (n: int64, err: error)

 

(int64 n, error err) ReadFrom(Reader r)

 

func ReadFrom(_ r: Reader) -> (n:int64, err:error)

 

func ReadFrom(r Reader) (n int64, err error)

Parameters:

  • r:

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 (Byte): tuple of (string, error) .NET, .NET Standard 2.0

 

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

 

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

 

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

 

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

Parameters:

  • delim:

ReadString (byte): tuple of (string, error) Island

 

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

 

(string, error) ReadString(byte delim)

 

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

 

func ReadString(delim byte) (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

Write

 

method Write(p: Slice<Byte>): tuple of (nn: Int64, err: error)

 

(Int64 nn, error err) Write(Slice<Byte> p)

 

func Write(_ p: Slice<Byte>) -> (nn:Int64, err:error)

 

func Write(p Slice<Byte>) (nn Int64, err error)

Parameters:

  • p:

WriteByte (Byte): error .NET, .NET Standard 2.0

 

method WriteByte(c: Byte): error

 

error WriteByte(Byte c)

 

func WriteByte(_ c: Byte) -> error

 

func WriteByte(c Byte) error

Parameters:

  • c:

WriteByte (byte): error Island

 

method WriteByte(c: byte): error

 

error WriteByte(byte c)

 

func WriteByte(_ c: byte) -> error

 

func WriteByte(c byte) error

Parameters:

  • c:

WriteRune

 

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

 

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

 

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

 

func WriteRune(r rune) (size Int64, err error)

Parameters:

  • r:

WriteString

 

// .NET, Island
method WriteString(s: string): tuple of (Int64, error)
// .NET Standard 2.0
method WriteString(s: string): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) WriteString(string s)
// .NET Standard 2.0
ValueTuple<Int64, error> WriteString(string s)

 

// .NET, Island
func WriteString(_ s: string) -> (Int64, error)
// .NET Standard 2.0
func WriteString(_ s: string) -> ValueTuple<Int64, error>

 

// .NET, Island
func WriteString(s string) (Int64, error)
// .NET Standard 2.0
func WriteString(s string) ValueTuple<Int64, error>

Parameters:

  • s:

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: