File
Overview
Location
-
Reference:
- Go.dll .NET, .NET Standard 2.0
- Go.fx Island
- Namespace: go.os
- Platforms: .NET, .NET Standard 2.0, Island
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
method Read(p: Slice<Byte>): tuple of (Int64, error)
(Int64, error) Read(Slice<Byte> p)
func Read(_ p: Slice<Byte>) -> tuple of (Int64, error)
func Read(p Slice<Byte>) tuple of (Int64, error)
Function Read(p As Slice<Byte>) As Tuple (Of Int64, error)
Parameters:
- p:
ReadAt
method ReadAt(p: Slice<Byte>; off: int64): tuple of (Int64, error)
(Int64, error) ReadAt(Slice<Byte> p, int64 off)
func ReadAt(_ p: Slice<Byte>, _ off: int64) -> tuple of (Int64, error)
func ReadAt(p Slice<Byte>, off int64) tuple of (Int64, error)
Function ReadAt(p As Slice<Byte>, off As int64) As Tuple (Of Int64, error)
Parameters:
- p:
- off:
Readdir
method Readdir(n: int): tuple of (Slice<FileInfo>, error)
(Slice<FileInfo>, error) Readdir(int n)
func Readdir(_ n: int) -> tuple of (Slice<FileInfo>, error)
func Readdir(n int) tuple of (Slice<FileInfo>, error)
Function Readdir(n As int) As Tuple (Of Slice<FileInfo>, error)
Parameters:
- n:
Readdirnames
method Readdirnames(n: Int32): tuple of (Slice<string>, error)
(Slice<string>, error) Readdirnames(Int32 n)
func Readdirnames(_ n: Int32) -> tuple of (Slice<string>, error)
func Readdirnames(n Int32) tuple of (Slice<string>, error)
Function Readdirnames(n As Int32) As Tuple (Of Slice<string>, error)
Parameters:
- n:
Seek
method Seek(offset: int64; whence: int): tuple of (int64, error)
(int64, error) Seek(int64 offset, int whence)
func Seek(_ offset: int64, _ whence: int) -> tuple of (int64, error)
func Seek(offset int64, whence int) tuple of (int64, error)
Function Seek(offset As int64, whence As int) As Tuple (Of int64, error)
Parameters:
- offset:
- whence:
Stat
method Stat: tuple of (FileInfo, error)
(FileInfo, error) Stat()
func Stat() -> tuple of (FileInfo, error)
func Stat() tuple of (FileInfo, error)
Function Stat() As Tuple (Of FileInfo, error)
Sync
method Sync
void Sync()
func Sync()
// .NET, .NET Standard 2.0
func Sync()
// Island
func Sync() void
Sub Sync()
Write
method Write(p: Slice<Byte>): tuple of (Int64, error)
(Int64, error) Write(Slice<Byte> p)
func Write(_ p: Slice<Byte>) -> tuple of (Int64, error)
func Write(p Slice<Byte>) tuple of (Int64, error)
Function Write(p As Slice<Byte>) As Tuple (Of Int64, error)
Parameters:
- p:
WriteString
method WriteString(p: string): tuple of (Int64, error)
(Int64, error) WriteString(string p)
func WriteString(_ p: string) -> tuple of (Int64, error)
func WriteString(p string) tuple of (Int64, error)
Function WriteString(p As string) As Tuple (Of Int64, error)
Parameters:
- p: