ReadWriter

Overview

Location

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


 

constructor

 

constructor

 

ReadWriter()

 

init()

 

Sub New()

constructor (Memory<Reader>, Memory<Writer>)

 

// .NET, .NET Standard 2.0
constructor(aReader: Memory<Reader>; aWriter: Memory<Writer>)
// Island
constructor(aReader: Memory<Reader>; aWriter: Memory<Writer>)

 

// .NET, .NET Standard 2.0
ReadWriter(Memory<Reader> aReader, Memory<Writer> aWriter)
// Island
ReadWriter(Memory<Reader> aReader, Memory<Writer> aWriter)

 

// .NET, .NET Standard 2.0
init(_ aReader: Memory<Reader>, _ aWriter: Memory<Writer>)
// Island
init(_ aReader: Memory<Reader>, _ aWriter: Memory<Writer>)

 

// .NET, .NET Standard 2.0
Sub New(aReader As Memory<Reader>, aWriter As Memory<Writer>)
// Island
Sub New(aReader As Memory<Reader>, aWriter As Memory<Writer>)

Parameters:

  • aReader:
  • aWriter:

constructor (ReadWriter)

 

constructor(value: ReadWriter)

 

ReadWriter(ReadWriter value)

 

init(_ value: ReadWriter)

 

Sub New(value As ReadWriter)

Parameters:

  • value:

Available

 

method Available: int

 

int Available()

 

func Available() -> int

 

func Available() int

 

Function Available() As int

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:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() error

 

Function Flush() As error

Peek

 

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

 

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

 

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

 

// .NET, .NET Standard 2.0
func Peek(n Int64) tuple of (Slice<Byte>, error)
// Island
func Peek(n int) tuple of (Slice<Byte>, error)

 

// .NET, .NET Standard 2.0
Function Peek(n As Int64) As Tuple (Of Slice<Byte>, error)
// Island
Function Peek(n As int) As Tuple (Of 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>) -> (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)

ReadBytes

 

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

 

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

 

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

 

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

 

// .NET, .NET Standard 2.0
Function ReadBytes(delim As Byte) As Tuple (Of Slice<Byte>, error)
// Island
Function ReadBytes(delim As byte) As Tuple (Of Slice<Byte>, error)

Parameters:

  • delim:

Reader

 

// .NET, .NET Standard 2.0
var Reader: Memory<Reader>;
// Island
var Reader: Memory<Reader>;

 

// .NET, .NET Standard 2.0
Memory<Reader> Reader
// Island
Memory<Reader> Reader

 

// .NET, .NET Standard 2.0
var Reader: Memory<Reader>
// Island
var Reader: Memory<Reader>

 

// .NET, .NET Standard 2.0
Reader Memory<Reader>
// Island
Reader Memory<Reader>

 

// .NET, .NET Standard 2.0
FIELD Reader() As Memory<Reader>
// Island
FIELD Reader() As Memory<Reader>

ReadFrom

 

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

 

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

 

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

 

func ReadFrom(r Reader) tuple of (|name=n| int64, |name=err| error)

 

Function ReadFrom(r As Reader) As Tuple (Of int64, 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() -> (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

 

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

 

// .NET, .NET Standard 2.0
(string, error) ReadString(Byte delim)
// Island
(string, error) ReadString(byte delim)

 

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

 

// .NET, .NET Standard 2.0
func ReadString(delim Byte) tuple of (string, error)
// Island
func ReadString(delim byte) tuple of (string, error)

 

// .NET, .NET Standard 2.0
Function ReadString(delim As Byte) As Tuple (Of string, error)
// Island
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)

 

// .NET, .NET Standard 2.0
func Reset(r Reader) 
// Island
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

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

 

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

 

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

Parameters:

  • p:

WriteByte

 

// .NET, .NET Standard 2.0
method WriteByte(c: Byte): error
// Island
method WriteByte(c: byte): error

 

// .NET, .NET Standard 2.0
error WriteByte(Byte c)
// Island
error WriteByte(byte c)

 

// .NET, .NET Standard 2.0
func WriteByte(_ c: Byte) -> error
// Island
func WriteByte(_ c: byte) -> error

 

// .NET, .NET Standard 2.0
func WriteByte(c Byte) error
// Island
func WriteByte(c byte) error

 

// .NET, .NET Standard 2.0
Function WriteByte(c As Byte) As error
// Island
Function WriteByte(c As byte) As error

Parameters:

  • c:

Writer

 

// .NET, .NET Standard 2.0
var Writer: Memory<Writer>;
// Island
var Writer: Memory<Writer>;

 

// .NET, .NET Standard 2.0
Memory<Writer> Writer
// Island
Memory<Writer> Writer

 

// .NET, .NET Standard 2.0
var Writer: Memory<Writer>
// Island
var Writer: Memory<Writer>

 

// .NET, .NET Standard 2.0
Writer Memory<Writer>
// Island
Writer Memory<Writer>

 

// .NET, .NET Standard 2.0
FIELD Writer() As Memory<Writer>
// Island
FIELD Writer() As Memory<Writer>

WriteRune

 

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

 

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

 

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

 

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

 

Function WriteRune(r As rune) As Tuple (Of Int64, error)

Parameters:

  • r:

WriteString

 

method WriteString(s: string): tuple of (Int64, error)

 

(Int64, error) WriteString(string s)

 

func WriteString(_ s: string) -> (Int64, error)

 

func WriteString(s string) tuple of (Int64, error)

 

Function WriteString(s As string) As Tuple (Of 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) -> (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:

 

Reader

 

// .NET, .NET Standard 2.0
var Reader: Memory<Reader>;
// Island
var Reader: Memory<Reader>;

 

// .NET, .NET Standard 2.0
Memory<Reader> Reader
// Island
Memory<Reader> Reader

 

// .NET, .NET Standard 2.0
var Reader: Memory<Reader>
// Island
var Reader: Memory<Reader>

 

// .NET, .NET Standard 2.0
Reader Memory<Reader>
// Island
Reader Memory<Reader>

 

// .NET, .NET Standard 2.0
FIELD Reader() As Memory<Reader>
// Island
FIELD Reader() As Memory<Reader>

Writer

 

// .NET, .NET Standard 2.0
var Writer: Memory<Writer>;
// Island
var Writer: Memory<Writer>;

 

// .NET, .NET Standard 2.0
Memory<Writer> Writer
// Island
Memory<Writer> Writer

 

// .NET, .NET Standard 2.0
var Writer: Memory<Writer>
// Island
var Writer: Memory<Writer>

 

// .NET, .NET Standard 2.0
Writer Memory<Writer>
// Island
Writer Memory<Writer>

 

// .NET, .NET Standard 2.0
FIELD Writer() As Memory<Writer>
// Island
FIELD Writer() As Memory<Writer>

 

constructor

 

constructor

 

ReadWriter()

 

init()

 

Sub New()

constructor (Memory<Reader>, Memory<Writer>)

 

// .NET, .NET Standard 2.0
constructor(aReader: Memory<Reader>; aWriter: Memory<Writer>)
// Island
constructor(aReader: Memory<Reader>; aWriter: Memory<Writer>)

 

// .NET, .NET Standard 2.0
ReadWriter(Memory<Reader> aReader, Memory<Writer> aWriter)
// Island
ReadWriter(Memory<Reader> aReader, Memory<Writer> aWriter)

 

// .NET, .NET Standard 2.0
init(_ aReader: Memory<Reader>, _ aWriter: Memory<Writer>)
// Island
init(_ aReader: Memory<Reader>, _ aWriter: Memory<Writer>)

 

// .NET, .NET Standard 2.0
Sub New(aReader As Memory<Reader>, aWriter As Memory<Writer>)
// Island
Sub New(aReader As Memory<Reader>, aWriter As Memory<Writer>)

Parameters:

  • aReader:
  • aWriter:

constructor (ReadWriter)

 

constructor(value: ReadWriter)

 

ReadWriter(ReadWriter value)

 

init(_ value: ReadWriter)

 

Sub New(value As ReadWriter)

Parameters:

  • value:

Available

 

method Available: int

 

int Available()

 

func Available() -> int

 

func Available() int

 

Function Available() As int

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:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() error

 

Function Flush() As error

Peek

 

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

 

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

 

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

 

// .NET, .NET Standard 2.0
func Peek(n Int64) tuple of (Slice<Byte>, error)
// Island
func Peek(n int) tuple of (Slice<Byte>, error)

 

// .NET, .NET Standard 2.0
Function Peek(n As Int64) As Tuple (Of Slice<Byte>, error)
// Island
Function Peek(n As int) As Tuple (Of 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>) -> (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)

ReadBytes

 

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

 

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

 

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

 

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

 

// .NET, .NET Standard 2.0
Function ReadBytes(delim As Byte) As Tuple (Of Slice<Byte>, error)
// Island
Function ReadBytes(delim As byte) As Tuple (Of 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) -> (int64, error)

 

func ReadFrom(r Reader) tuple of (|name=n| int64, |name=err| error)

 

Function ReadFrom(r As Reader) As Tuple (Of int64, 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() -> (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

 

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

 

// .NET, .NET Standard 2.0
(string, error) ReadString(Byte delim)
// Island
(string, error) ReadString(byte delim)

 

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

 

// .NET, .NET Standard 2.0
func ReadString(delim Byte) tuple of (string, error)
// Island
func ReadString(delim byte) tuple of (string, error)

 

// .NET, .NET Standard 2.0
Function ReadString(delim As Byte) As Tuple (Of string, error)
// Island
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)

 

// .NET, .NET Standard 2.0
func Reset(r Reader) 
// Island
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

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

 

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

 

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

Parameters:

  • p:

WriteByte

 

// .NET, .NET Standard 2.0
method WriteByte(c: Byte): error
// Island
method WriteByte(c: byte): error

 

// .NET, .NET Standard 2.0
error WriteByte(Byte c)
// Island
error WriteByte(byte c)

 

// .NET, .NET Standard 2.0
func WriteByte(_ c: Byte) -> error
// Island
func WriteByte(_ c: byte) -> error

 

// .NET, .NET Standard 2.0
func WriteByte(c Byte) error
// Island
func WriteByte(c byte) error

 

// .NET, .NET Standard 2.0
Function WriteByte(c As Byte) As error
// Island
Function WriteByte(c As byte) As 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) -> (Int64, error)

 

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

 

Function WriteRune(r As rune) As Tuple (Of Int64, error)

Parameters:

  • r:

WriteString

 

method WriteString(s: string): tuple of (Int64, error)

 

(Int64, error) WriteString(string s)

 

func WriteString(_ s: string) -> (Int64, error)

 

func WriteString(s string) tuple of (Int64, error)

 

Function WriteString(s As string) As Tuple (Of 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) -> (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: