File

Overview

Location

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

Implements

Instance Methods


constructor

 

constructor

 

File()

 

init()

 

Sub New()

Close

 

method Close: error

 

error Close()

 

func Close() -> error

 

func Close() error

 

Function Close() As error

Name

 

method Name: String

 

String Name()

 

func Name() -> String

 

func Name() String

 

Function Name() As String

Read

 

// .NET, Island
method Read(p: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Read(p: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Read(Slice<Byte> p)
// .NET Standard 2.0
ValueTuple<Int64, error> Read(Slice<Byte> p)

 

// .NET, Island
func Read(_ p: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Read(_ p: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Read(p Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Read(p Slice<Byte>) ValueTuple<Int64, error>

 

// .NET, Island
Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)
// .NET Standard 2.0
Function Read(p As Slice<Byte>) As ValueTuple<Int64, error>

Parameters:

  • p:

ReadAt

 

// .NET, Island
method ReadAt(p: Slice<Byte>; off: int64): tuple of (Int64, error)
// .NET Standard 2.0
method ReadAt(p: Slice<Byte>; off: int64): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) ReadAt(Slice<Byte> p, int64 off)
// .NET Standard 2.0
ValueTuple<Int64, error> ReadAt(Slice<Byte> p, int64 off)

 

// .NET, Island
func ReadAt(_ p: Slice<Byte>, _ off: int64) -> (Int64, error)
// .NET Standard 2.0
func ReadAt(_ p: Slice<Byte>, _ off: int64) -> ValueTuple<Int64, error>

 

// .NET, Island
func ReadAt(p Slice<Byte>, off int64) (Int64, error)
// .NET Standard 2.0
func ReadAt(p Slice<Byte>, off int64) ValueTuple<Int64, error>

 

// .NET, Island
Function ReadAt(p As Slice<Byte>, off As int64) As Tuple (Of Int64, error)
// .NET Standard 2.0
Function ReadAt(p As Slice<Byte>, off As int64) As ValueTuple<Int64, error>

Parameters:

  • p:
  • off:

Readdir

 

// .NET, Island
method Readdir(n: int): tuple of (Slice<FileInfo>, error)
// .NET Standard 2.0
method Readdir(n: int): ValueTuple<Slice<FileInfo>, error>

 

// .NET, Island
(Slice<FileInfo>, error) Readdir(int n)
// .NET Standard 2.0
ValueTuple<Slice<FileInfo>, error> Readdir(int n)

 

// .NET, Island
func Readdir(_ n: int) -> (Slice<FileInfo>, error)
// .NET Standard 2.0
func Readdir(_ n: int) -> ValueTuple<Slice<FileInfo>, error>

 

// .NET, Island
func Readdir(n int) (Slice<FileInfo>, error)
// .NET Standard 2.0
func Readdir(n int) ValueTuple<Slice<FileInfo>, error>

 

// .NET, Island
Function Readdir(n As int) As Tuple (Of Slice<FileInfo>, error)
// .NET Standard 2.0
Function Readdir(n As int) As ValueTuple<Slice<FileInfo>, error>

Parameters:

  • n:

Readdirnames

 

// .NET, Island
method Readdirnames(n: Int32): tuple of (Slice<string>, error)
// .NET Standard 2.0
method Readdirnames(n: Int32): ValueTuple<Slice<string>, error>

 

// .NET, Island
(Slice<string>, error) Readdirnames(Int32 n)
// .NET Standard 2.0
ValueTuple<Slice<string>, error> Readdirnames(Int32 n)

 

// .NET, Island
func Readdirnames(_ n: Int32) -> (Slice<string>, error)
// .NET Standard 2.0
func Readdirnames(_ n: Int32) -> ValueTuple<Slice<string>, error>

 

// .NET, Island
func Readdirnames(n Int32) (Slice<string>, error)
// .NET Standard 2.0
func Readdirnames(n Int32) ValueTuple<Slice<string>, error>

 

// .NET, Island
Function Readdirnames(n As Int32) As Tuple (Of Slice<string>, error)
// .NET Standard 2.0
Function Readdirnames(n As Int32) As ValueTuple<Slice<string>, error>

Parameters:

  • n:

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>

 

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

Parameters:

  • offset:
  • whence:

Stat

 

// .NET, Island
method Stat: tuple of (FileInfo, error)
// .NET Standard 2.0
method Stat: ValueTuple<FileInfo, error>

 

// .NET, Island
(FileInfo, error) Stat()
// .NET Standard 2.0
ValueTuple<FileInfo, error> Stat()

 

// .NET, Island
func Stat() -> (FileInfo, error)
// .NET Standard 2.0
func Stat() -> ValueTuple<FileInfo, error>

 

// .NET, Island
func Stat() (FileInfo, error)
// .NET Standard 2.0
func Stat() ValueTuple<FileInfo, error>

 

// .NET, Island
Function Stat() As Tuple (Of FileInfo, error)
// .NET Standard 2.0
Function Stat() As ValueTuple<FileInfo, error>

Sync

 

method Sync

 

void Sync()

 

func Sync()

 

func Sync()

 

Sub Sync()

Write

 

// .NET, Island
method Write(p: Slice<Byte>): tuple of (Int64, error)
// .NET Standard 2.0
method Write(p: Slice<Byte>): ValueTuple<Int64, error>

 

// .NET, Island
(Int64, error) Write(Slice<Byte> p)
// .NET Standard 2.0
ValueTuple<Int64, error> Write(Slice<Byte> p)

 

// .NET, Island
func Write(_ p: Slice<Byte>) -> (Int64, error)
// .NET Standard 2.0
func Write(_ p: Slice<Byte>) -> ValueTuple<Int64, error>

 

// .NET, Island
func Write(p Slice<Byte>) (Int64, error)
// .NET Standard 2.0
func Write(p Slice<Byte>) ValueTuple<Int64, error>

 

// .NET, Island
Function Write(p As Slice<Byte>) As Tuple (Of Int64, error)
// .NET Standard 2.0
Function Write(p As Slice<Byte>) As ValueTuple<Int64, error>

Parameters:

  • p:

WriteString

 

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

 

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

 

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

 

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

 

// .NET, Island
Function WriteString(p As string) As Tuple (Of Int64, error)
// .NET Standard 2.0
Function WriteString(p As string) As ValueTuple<Int64, error>

Parameters:

  • p: