Reader

Overview

Location

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

Implements

Instance Methods


constructor

 

constructor

 

Reader()

 

init()

constructor (Slice<Byte>, int64, int) Island

 

constructor(as: Slice<Byte>; ai: int64; aprevRune: int)

 

Reader(Slice<Byte> as, int64 ai, int aprevRune)

 

init(_ as: Slice<Byte>, _ ai: int64, _ aprevRune: int)

Parameters:

  • as:
  • ai:
  • aprevRune:

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

 

constructor(as: Slice<Byte>; ai: int64; aprevRune: Int64)

 

Reader(Slice<Byte> as, int64 ai, Int64 aprevRune)

 

init(_ as: Slice<Byte>, _ ai: int64, _ aprevRune: Int64)

Parameters:

  • as:
  • ai:
  • aprevRune:

constructor (Reader)

 

constructor(value: Reader)

 

Reader(Reader value)

 

init(_ value: Reader)

Parameters:

  • value:

Read

 

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

 

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

 

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

 

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

Parameters:

  • b:

ReadAt

 

method ReadAt(b: Slice<Byte>; off: int64): tuple of (n: Int64, err: error)

 

(Int64 n, error err) ReadAt(Slice<Byte> b, int64 off)

 

func ReadAt(_ b: Slice<Byte>, _ off: int64) -> (n:Int64, err:error)

 

func ReadAt(b Slice<Byte>, off int64) (n Int64, err error)

Parameters:

  • b:
  • off:

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>

UnreadByte

 

method UnreadByte: error

 

error UnreadByte()

 

func UnreadByte() -> error

 

func UnreadByte() error

Len

 

method Len: int

 

int Len()

 

func Len() -> int

 

func Len() int

ReadRune

 

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

 

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

 

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

 

func ReadRune() (ch rune, size Int64, err error)

Reset

 

method Reset(b: Slice<Byte>)

 

void Reset(Slice<Byte> b)

 

func Reset(_ b: Slice<Byte>)

 

func Reset(b Slice<Byte>)

Parameters:

  • b:

Seek

 

// .NET, Island
method Seek(offset: int64; whence: int): tuple of (int64, error)
// .NET Standard 2.0
method Seek(offset: int64; whence: int): ValueTuple<int64, error>

 

// .NET, Island
(int64, error) Seek(int64 offset, int whence)
// .NET Standard 2.0
ValueTuple<int64, error> Seek(int64 offset, int whence)

 

// .NET, Island
func Seek(_ offset: int64, _ whence: int) -> (int64, error)
// .NET Standard 2.0
func Seek(_ offset: int64, _ whence: int) -> ValueTuple<int64, error>

 

// .NET, Island
func Seek(offset int64, whence int) (int64, error)
// .NET Standard 2.0
func Seek(offset int64, whence int) ValueTuple<int64, error>

Parameters:

  • offset:
  • whence:

Size

 

method Size: int64

 

int64 Size()

 

func Size() -> int64

 

func Size() int64

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: