Writer

Overview

Location

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

Implements

Instance Methods


constructor

 

constructor

 

Writer()

 

init()

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

 

constructor(aerr: error; abuf: Slice<Byte>; an: int; awr: Writer)

 

Writer(error aerr, Slice<Byte> abuf, int an, Writer awr)

 

init(_ aerr: error, _ abuf: Slice<Byte>, _ an: int, _ awr: Writer)

Parameters:

  • aerr:
  • abuf:
  • an:
  • awr:

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

 

constructor(aerr: error; abuf: Slice<Byte>; an: Int64; awr: Writer)

 

Writer(error aerr, Slice<Byte> abuf, Int64 an, Writer awr)

 

init(_ aerr: error, _ abuf: Slice<Byte>, _ an: Int64, _ awr: Writer)

Parameters:

  • aerr:
  • abuf:
  • an:
  • awr:

constructor (Writer)

 

constructor(value: Writer)

 

Writer(Writer value)

 

init(_ value: Writer)

Parameters:

  • value:

Flush

 

method Flush: error

 

error Flush()

 

func Flush() -> error

 

func Flush() 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:

Available

 

method Available: int

 

int Available()

 

func Available() -> int

 

func Available() int

Buffered

 

method Buffered: int

 

int Buffered()

 

func Buffered() -> int

 

func Buffered() int

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:

Reset

 

method Reset(w: Writer)

 

void Reset(Writer w)

 

func Reset(_ w: Writer)

 

func Reset(w Writer)

Parameters:

  • w:

Size

 

method Size: int

 

int Size()

 

func Size() -> int

 

func Size() int

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: