Global

Location

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

 

constructor Island

 

constructor

 

__Global()

 

init()

 

Sub New()

Copy

 

class method Copy(dst: Writer; src: Reader): tuple of (written: int64, err: error)

 

static (int64 written, error err) Copy(Writer dst, Reader src)

 

static func Copy(_ dst: Writer, _ src: Reader) -> (written:int64, err:error)

 

func Copy(dst Writer, src Reader) (written int64, err error)

 

Shared Function Copy(dst As Writer, src As Reader) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:

CopyBuffer

 

class method CopyBuffer(dst: Writer; src: Reader; buf: Slice<Byte>): tuple of (written: int64, err: error)

 

static (int64 written, error err) CopyBuffer(Writer dst, Reader src, Slice<Byte> buf)

 

static func CopyBuffer(_ dst: Writer, _ src: Reader, _ buf: Slice<Byte>) -> (written:int64, err:error)

 

func CopyBuffer(dst Writer, src Reader, buf Slice<Byte>) (written int64, err error)

 

Shared Function CopyBuffer(dst As Writer, src As Reader, buf As Slice<Byte>) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:
  • buf:

CopyN

 

class method CopyN(dst: Writer; src: Reader; n: int64): tuple of (written: int64, err: error)

 

static (int64 written, error err) CopyN(Writer dst, Reader src, int64 n)

 

static func CopyN(_ dst: Writer, _ src: Reader, _ n: int64) -> (written:int64, err:error)

 

func CopyN(dst Writer, src Reader, n int64) (written int64, err error)

 

Shared Function CopyN(dst As Writer, src As Reader, n As int64) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:
  • n:

EOF

 

class var EOF: error;

 

static error EOF

 

static var EOF: error

 

EOF error

 

Shared FIELD EOF() As error

ErrClosedPipe

 

class var ErrClosedPipe: error;

 

static error ErrClosedPipe

 

static var ErrClosedPipe: error

 

ErrClosedPipe error

 

Shared FIELD ErrClosedPipe() As error

ErrNoProgress

 

class var ErrNoProgress: error;

 

static error ErrNoProgress

 

static var ErrNoProgress: error

 

ErrNoProgress error

 

Shared FIELD ErrNoProgress() As error

ErrShortBuffer

 

class var ErrShortBuffer: error;

 

static error ErrShortBuffer

 

static var ErrShortBuffer: error

 

ErrShortBuffer error

 

Shared FIELD ErrShortBuffer() As error

ErrShortWrite

 

class var ErrShortWrite: error;

 

static error ErrShortWrite

 

static var ErrShortWrite: error

 

ErrShortWrite error

 

Shared FIELD ErrShortWrite() As error

ErrUnexpectedEOF

 

class var ErrUnexpectedEOF: error;

 

static error ErrUnexpectedEOF

 

static var ErrUnexpectedEOF: error

 

ErrUnexpectedEOF error

 

Shared FIELD ErrUnexpectedEOF() As error

LimitReader

 

class method LimitReader(r: Reader; n: int64): Reader

 

static Reader LimitReader(Reader r, int64 n)

 

static func LimitReader(_ r: Reader, _ n: int64) -> Reader

 

func LimitReader(r Reader, n int64) Reader

 

Shared Function LimitReader(r As Reader, n As int64) As Reader

Parameters:

  • r:
  • n:

MultiReader

 

class method MultiReader(params readers: array of Reader): Reader

 

static Reader MultiReader(params Reader[] readers)

 

static func MultiReader(_ readers: Reader...) -> Reader

 

func MultiReader(readers []Reader) Reader

 

Shared Function MultiReader(ParamArray readers As Reader()) As Reader

Parameters:

  • readers:

MultiWriter

 

class method MultiWriter(params writers: array of Writer): Writer

 

static Writer MultiWriter(params Writer[] writers)

 

static func MultiWriter(_ writers: Writer...) -> Writer

 

func MultiWriter(writers []Writer) Writer

 

Shared Function MultiWriter(ParamArray writers As Writer()) As Writer

Parameters:

  • writers:

NewSectionReader

 

class method NewSectionReader(r: ReaderAt; off: int64; n: int64): Reference<SectionReader>

 

static Reference<SectionReader> NewSectionReader(ReaderAt r, int64 off, int64 n)

 

static func NewSectionReader(_ r: ReaderAt, _ off: int64, _ n: int64) -> Reference<SectionReader>

 

func NewSectionReader(r ReaderAt, off int64, n int64) Reference<SectionReader>

 

Shared Function NewSectionReader(r As ReaderAt, off As int64, n As int64) As Reference<SectionReader>

Parameters:

  • r:
  • off:
  • n:

Pipe

 

// .NET, Island
class method Pipe: tuple of (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
class method Pipe: ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
static (Reference<PipeReader>, Reference<PipeWriter>) Pipe()
// .NET Standard 2.0
static ValueTuple<Reference<PipeReader>, Reference<PipeWriter>> Pipe()

 

// .NET, Island
static func Pipe() -> (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
static func Pipe() -> ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
func Pipe() (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
func Pipe() ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
Shared Function Pipe() As Tuple (Of Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
Shared Function Pipe() As ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

ReadAtLeast

 

class method ReadAtLeast(r: Reader; buf: Slice<Byte>; min: int): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) ReadAtLeast(Reader r, Slice<Byte> buf, int min)

 

static func ReadAtLeast(_ r: Reader, _ buf: Slice<Byte>, _ min: int) -> (n:Int64, err:error)

 

func ReadAtLeast(r Reader, buf Slice<Byte>, min int) (n Int64, err error)

 

Shared Function ReadAtLeast(r As Reader, buf As Slice<Byte>, min As int) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • r:
  • buf:
  • min:

ReadFull

 

class method ReadFull(r: Reader; buf: Slice<Byte>): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) ReadFull(Reader r, Slice<Byte> buf)

 

static func ReadFull(_ r: Reader, _ buf: Slice<Byte>) -> (n:Int64, err:error)

 

func ReadFull(r Reader, buf Slice<Byte>) (n Int64, err error)

 

Shared Function ReadFull(r As Reader, buf As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • r:
  • buf:

SeekCurrent

 

const SeekCurrent: Int64 = 1;

 

const Int64 SeekCurrent = 1

 

static let SeekCurrent: Int64 = 1

 

const SeekCurrent Int64 =  = 1

 

Dim SeekCurrent As Int64 = 1

SeekEnd

 

const SeekEnd: Int64 = 2;

 

const Int64 SeekEnd = 2

 

static let SeekEnd: Int64 = 2

 

const SeekEnd Int64 =  = 2

 

Dim SeekEnd As Int64 = 2

SeekStart

 

const SeekStart: Int64 = 0;

 

const Int64 SeekStart = 0

 

static let SeekStart: Int64 = 0

 

const SeekStart Int64 =  = 0

 

Dim SeekStart As Int64 = 0

TeeReader

 

class method TeeReader(r: Reader; w: Writer): Reader

 

static Reader TeeReader(Reader r, Writer w)

 

static func TeeReader(_ r: Reader, _ w: Writer) -> Reader

 

func TeeReader(r Reader, w Writer) Reader

 

Shared Function TeeReader(r As Reader, w As Writer) As Reader

Parameters:

  • r:
  • w:

WriteString

 

class method WriteString(w: Writer; s: string): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) WriteString(Writer w, string s)

 

static func WriteString(_ w: Writer, _ s: string) -> (n:Int64, err:error)

 

func WriteString(w Writer, s string) (n Int64, err error)

 

Shared Function WriteString(w As Writer, s As string) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • w:
  • s:

 

SeekCurrent

 

const SeekCurrent: Int64 = 1;

 

const Int64 SeekCurrent = 1

 

static let SeekCurrent: Int64 = 1

 

const SeekCurrent Int64 =  = 1

 

Dim SeekCurrent As Int64 = 1

SeekEnd

 

const SeekEnd: Int64 = 2;

 

const Int64 SeekEnd = 2

 

static let SeekEnd: Int64 = 2

 

const SeekEnd Int64 =  = 2

 

Dim SeekEnd As Int64 = 2

SeekStart

 

const SeekStart: Int64 = 0;

 

const Int64 SeekStart = 0

 

static let SeekStart: Int64 = 0

 

const SeekStart Int64 =  = 0

 

Dim SeekStart As Int64 = 0

 

EOF

 

class var EOF: error;

 

static error EOF

 

static var EOF: error

 

EOF error

 

Shared FIELD EOF() As error

ErrClosedPipe

 

class var ErrClosedPipe: error;

 

static error ErrClosedPipe

 

static var ErrClosedPipe: error

 

ErrClosedPipe error

 

Shared FIELD ErrClosedPipe() As error

ErrNoProgress

 

class var ErrNoProgress: error;

 

static error ErrNoProgress

 

static var ErrNoProgress: error

 

ErrNoProgress error

 

Shared FIELD ErrNoProgress() As error

ErrShortBuffer

 

class var ErrShortBuffer: error;

 

static error ErrShortBuffer

 

static var ErrShortBuffer: error

 

ErrShortBuffer error

 

Shared FIELD ErrShortBuffer() As error

ErrShortWrite

 

class var ErrShortWrite: error;

 

static error ErrShortWrite

 

static var ErrShortWrite: error

 

ErrShortWrite error

 

Shared FIELD ErrShortWrite() As error

ErrUnexpectedEOF

 

class var ErrUnexpectedEOF: error;

 

static error ErrUnexpectedEOF

 

static var ErrUnexpectedEOF: error

 

ErrUnexpectedEOF error

 

Shared FIELD ErrUnexpectedEOF() As error

 

Copy

 

class method Copy(dst: Writer; src: Reader): tuple of (written: int64, err: error)

 

static (int64 written, error err) Copy(Writer dst, Reader src)

 

static func Copy(_ dst: Writer, _ src: Reader) -> (written:int64, err:error)

 

func Copy(dst Writer, src Reader) (written int64, err error)

 

Shared Function Copy(dst As Writer, src As Reader) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:

CopyBuffer

 

class method CopyBuffer(dst: Writer; src: Reader; buf: Slice<Byte>): tuple of (written: int64, err: error)

 

static (int64 written, error err) CopyBuffer(Writer dst, Reader src, Slice<Byte> buf)

 

static func CopyBuffer(_ dst: Writer, _ src: Reader, _ buf: Slice<Byte>) -> (written:int64, err:error)

 

func CopyBuffer(dst Writer, src Reader, buf Slice<Byte>) (written int64, err error)

 

Shared Function CopyBuffer(dst As Writer, src As Reader, buf As Slice<Byte>) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:
  • buf:

CopyN

 

class method CopyN(dst: Writer; src: Reader; n: int64): tuple of (written: int64, err: error)

 

static (int64 written, error err) CopyN(Writer dst, Reader src, int64 n)

 

static func CopyN(_ dst: Writer, _ src: Reader, _ n: int64) -> (written:int64, err:error)

 

func CopyN(dst Writer, src Reader, n int64) (written int64, err error)

 

Shared Function CopyN(dst As Writer, src As Reader, n As int64) As Tuple (Of written:=int64, err:=error)

Parameters:

  • dst:
  • src:
  • n:

LimitReader

 

class method LimitReader(r: Reader; n: int64): Reader

 

static Reader LimitReader(Reader r, int64 n)

 

static func LimitReader(_ r: Reader, _ n: int64) -> Reader

 

func LimitReader(r Reader, n int64) Reader

 

Shared Function LimitReader(r As Reader, n As int64) As Reader

Parameters:

  • r:
  • n:

MultiReader

 

class method MultiReader(params readers: array of Reader): Reader

 

static Reader MultiReader(params Reader[] readers)

 

static func MultiReader(_ readers: Reader...) -> Reader

 

func MultiReader(readers []Reader) Reader

 

Shared Function MultiReader(ParamArray readers As Reader()) As Reader

Parameters:

  • readers:

MultiWriter

 

class method MultiWriter(params writers: array of Writer): Writer

 

static Writer MultiWriter(params Writer[] writers)

 

static func MultiWriter(_ writers: Writer...) -> Writer

 

func MultiWriter(writers []Writer) Writer

 

Shared Function MultiWriter(ParamArray writers As Writer()) As Writer

Parameters:

  • writers:

NewSectionReader

 

class method NewSectionReader(r: ReaderAt; off: int64; n: int64): Reference<SectionReader>

 

static Reference<SectionReader> NewSectionReader(ReaderAt r, int64 off, int64 n)

 

static func NewSectionReader(_ r: ReaderAt, _ off: int64, _ n: int64) -> Reference<SectionReader>

 

func NewSectionReader(r ReaderAt, off int64, n int64) Reference<SectionReader>

 

Shared Function NewSectionReader(r As ReaderAt, off As int64, n As int64) As Reference<SectionReader>

Parameters:

  • r:
  • off:
  • n:

Pipe

 

// .NET, Island
class method Pipe: tuple of (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
class method Pipe: ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
static (Reference<PipeReader>, Reference<PipeWriter>) Pipe()
// .NET Standard 2.0
static ValueTuple<Reference<PipeReader>, Reference<PipeWriter>> Pipe()

 

// .NET, Island
static func Pipe() -> (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
static func Pipe() -> ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
func Pipe() (Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
func Pipe() ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

 

// .NET, Island
Shared Function Pipe() As Tuple (Of Reference<PipeReader>, Reference<PipeWriter>)
// .NET Standard 2.0
Shared Function Pipe() As ValueTuple<Reference<PipeReader>, Reference<PipeWriter>>

ReadAtLeast

 

class method ReadAtLeast(r: Reader; buf: Slice<Byte>; min: int): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) ReadAtLeast(Reader r, Slice<Byte> buf, int min)

 

static func ReadAtLeast(_ r: Reader, _ buf: Slice<Byte>, _ min: int) -> (n:Int64, err:error)

 

func ReadAtLeast(r Reader, buf Slice<Byte>, min int) (n Int64, err error)

 

Shared Function ReadAtLeast(r As Reader, buf As Slice<Byte>, min As int) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • r:
  • buf:
  • min:

ReadFull

 

class method ReadFull(r: Reader; buf: Slice<Byte>): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) ReadFull(Reader r, Slice<Byte> buf)

 

static func ReadFull(_ r: Reader, _ buf: Slice<Byte>) -> (n:Int64, err:error)

 

func ReadFull(r Reader, buf Slice<Byte>) (n Int64, err error)

 

Shared Function ReadFull(r As Reader, buf As Slice<Byte>) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • r:
  • buf:

TeeReader

 

class method TeeReader(r: Reader; w: Writer): Reader

 

static Reader TeeReader(Reader r, Writer w)

 

static func TeeReader(_ r: Reader, _ w: Writer) -> Reader

 

func TeeReader(r Reader, w Writer) Reader

 

Shared Function TeeReader(r As Reader, w As Writer) As Reader

Parameters:

  • r:
  • w:

WriteString

 

class method WriteString(w: Writer; s: string): tuple of (n: Int64, err: error)

 

static (Int64 n, error err) WriteString(Writer w, string s)

 

static func WriteString(_ w: Writer, _ s: string) -> (n:Int64, err:error)

 

func WriteString(w Writer, s string) (n Int64, err error)

 

Shared Function WriteString(w As Writer, s As string) As Tuple (Of n:=Int64, err:=error)

Parameters:

  • w:
  • s: