FileHandle extension

Overview

Location

 

constructor

 

constructor(FileName: String; Mode: FileOpenMode)

 

FileHandle extension(String FileName, FileOpenMode Mode)

 

init(_ FileName: String, _ Mode: FileOpenMode)

 

FileHandle extension(String FileName, FileOpenMode Mode)

 

Sub New(FileName As String, Mode As FileOpenMode)

Parameters:

  • FileName:
  • Mode:

Close

 

method Close

 

void Close()

 

func Close()

 

void Close()

 

Sub Close()

Flush

 

method Flush

 

void Flush()

 

func Flush()

 

void Flush()

 

Sub Flush()

FromFile

 

class method FromFile(aFile: File; Mode: FileOpenMode): FileHandle

 

static FileHandle FromFile(File aFile, FileOpenMode Mode)

 

static func FromFile(_ aFile: File, _ Mode: FileOpenMode) -> FileHandle

 

static FileHandle FromFile(File aFile, FileOpenMode Mode)

 

Shared Function FromFile(aFile As File, Mode As FileOpenMode) As FileHandle

Parameters:

  • aFile:
  • Mode:

Length

 

property Length: Int64 read write;

 

Int64 Length { get; set; }

 

var Length: Int64 { get{} set{} }

 

Int64 Length { __get; __set; }

 

Property Length() As Int64

Position

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

var Position: Int64 { get{} set{} }

 

Int64 Position { __get; __set; }

 

Property Position() As Int64

Read (array of Byte, Integer): Integer

 

method Read(Buffer: array of Byte; Count: Integer): Integer

 

Integer Read(Byte[] Buffer, Integer Count)

 

func Read(_ Buffer: Byte..., _ Count: Integer) -> Integer

 

Integer Read(Byte[] Buffer, Integer Count)

 

Function Read(Buffer As Byte(), Count As Integer) As Integer

Parameters:

  • Buffer:
  • Count:

Read (array of Byte, Integer, Integer): Integer

 

method Read(Buffer: array of Byte; Offset: Integer; Count: Integer): Integer

 

Integer Read(Byte[] Buffer, Integer Offset, Integer Count)

 

func Read(_ Buffer: Byte..., _ Offset: Integer, _ Count: Integer) -> Integer

 

Integer Read(Byte[] Buffer, Integer Offset, Integer Count)

 

Function Read(Buffer As Byte(), Offset As Integer, Count As Integer) As Integer

Parameters:

  • Buffer:
  • Offset:
  • Count:

 

method Read(Count: Integer): ImmutableBinary

 

ImmutableBinary Read(Integer Count)

 

func Read(_ Count: Integer) -> ImmutableBinary

 

ImmutableBinary Read(Integer Count)

 

Function Read(Count As Integer) As ImmutableBinary

Parameters:

  • Count:

Seek

 

method Seek(Offset: Int64; Origin: SeekOrigin)

 

void Seek(Int64 Offset, SeekOrigin Origin)

 

func Seek(_ Offset: Int64, _ Origin: SeekOrigin)

 

void Seek(Int64 Offset, SeekOrigin Origin)

 

Sub Seek(Offset As Int64, Origin As SeekOrigin)

Parameters:

  • Offset:
  • Origin:

Write (array of Byte)

 

method Write(Buffer: array of Byte)

 

void Write(Byte[] Buffer)

 

func Write(_ Buffer: Byte...)

 

void Write(Byte[] Buffer)

 

Sub Write(Buffer As Byte())

Parameters:

  • Buffer:

Write (array of Byte, Integer)

 

method Write(Buffer: array of Byte; Count: Integer)

 

void Write(Byte[] Buffer, Integer Count)

 

func Write(_ Buffer: Byte..., _ Count: Integer)

 

void Write(Byte[] Buffer, Integer Count)

 

Sub Write(Buffer As Byte(), Count As Integer)

Parameters:

  • Buffer:
  • Count:

Write (array of Byte, Integer, Integer)

 

method Write(Buffer: array of Byte; Offset: Integer; Count: Integer)

 

void Write(Byte[] Buffer, Integer Offset, Integer Count)

 

func Write(_ Buffer: Byte..., _ Offset: Integer, _ Count: Integer)

 

void Write(Byte[] Buffer, Integer Offset, Integer Count)

 

Sub Write(Buffer As Byte(), Offset As Integer, Count As Integer)

Parameters:

  • Buffer:
  • Offset:
  • Count:

Write (ImmutableBinary)

 

method Write(Data: ImmutableBinary)

 

void Write(ImmutableBinary Data)

 

func Write(_ Data: ImmutableBinary)

 

void Write(ImmutableBinary Data)

 

Sub Write(Data As ImmutableBinary)

Parameters:

  • Data:

 

Length

 

property Length: Int64 read write;

 

Int64 Length { get; set; }

 

var Length: Int64 { get{} set{} }

 

Int64 Length { __get; __set; }

 

Property Length() As Int64

Position

 

property Position: Int64 read write;

 

Int64 Position { get; set; }

 

var Position: Int64 { get{} set{} }

 

Int64 Position { __get; __set; }

 

Property Position() As Int64

 

FromFile

 

class method FromFile(aFile: File; Mode: FileOpenMode): FileHandle

 

static FileHandle FromFile(File aFile, FileOpenMode Mode)

 

static func FromFile(_ aFile: File, _ Mode: FileOpenMode) -> FileHandle

 

static FileHandle FromFile(File aFile, FileOpenMode Mode)

 

Shared Function FromFile(aFile As File, Mode As FileOpenMode) As FileHandle

Parameters:

  • aFile:
  • Mode:

 

constructor

 

constructor(FileName: String; Mode: FileOpenMode)

 

FileHandle extension(String FileName, FileOpenMode Mode)

 

init(_ FileName: String, _ Mode: FileOpenMode)

 

FileHandle extension(String FileName, FileOpenMode Mode)

 

Sub New(FileName As String, Mode As FileOpenMode)

Parameters:

  • FileName:
  • Mode:

Close

 

method Close

 

void Close()

 

func Close()

 

void Close()

 

Sub Close()

Flush

 

method Flush

 

void Flush()

 

func Flush()

 

void Flush()

 

Sub Flush()

Read (array of Byte, Integer): Integer

 

method Read(Buffer: array of Byte; Count: Integer): Integer

 

Integer Read(Byte[] Buffer, Integer Count)

 

func Read(_ Buffer: Byte..., _ Count: Integer) -> Integer

 

Integer Read(Byte[] Buffer, Integer Count)

 

Function Read(Buffer As Byte(), Count As Integer) As Integer

Parameters:

  • Buffer:
  • Count:

Read (array of Byte, Integer, Integer): Integer

 

method Read(Buffer: array of Byte; Offset: Integer; Count: Integer): Integer

 

Integer Read(Byte[] Buffer, Integer Offset, Integer Count)

 

func Read(_ Buffer: Byte..., _ Offset: Integer, _ Count: Integer) -> Integer

 

Integer Read(Byte[] Buffer, Integer Offset, Integer Count)

 

Function Read(Buffer As Byte(), Offset As Integer, Count As Integer) As Integer

Parameters:

  • Buffer:
  • Offset:
  • Count:

 

method Read(Count: Integer): ImmutableBinary

 

ImmutableBinary Read(Integer Count)

 

func Read(_ Count: Integer) -> ImmutableBinary

 

ImmutableBinary Read(Integer Count)

 

Function Read(Count As Integer) As ImmutableBinary

Parameters:

  • Count:

Seek

 

method Seek(Offset: Int64; Origin: SeekOrigin)

 

void Seek(Int64 Offset, SeekOrigin Origin)

 

func Seek(_ Offset: Int64, _ Origin: SeekOrigin)

 

void Seek(Int64 Offset, SeekOrigin Origin)

 

Sub Seek(Offset As Int64, Origin As SeekOrigin)

Parameters:

  • Offset:
  • Origin:

Write (array of Byte)

 

method Write(Buffer: array of Byte)

 

void Write(Byte[] Buffer)

 

func Write(_ Buffer: Byte...)

 

void Write(Byte[] Buffer)

 

Sub Write(Buffer As Byte())

Parameters:

  • Buffer:

Write (array of Byte, Integer)

 

method Write(Buffer: array of Byte; Count: Integer)

 

void Write(Byte[] Buffer, Integer Count)

 

func Write(_ Buffer: Byte..., _ Count: Integer)

 

void Write(Byte[] Buffer, Integer Count)

 

Sub Write(Buffer As Byte(), Count As Integer)

Parameters:

  • Buffer:
  • Count:

Write (array of Byte, Integer, Integer)

 

method Write(Buffer: array of Byte; Offset: Integer; Count: Integer)

 

void Write(Byte[] Buffer, Integer Offset, Integer Count)

 

func Write(_ Buffer: Byte..., _ Offset: Integer, _ Count: Integer)

 

void Write(Byte[] Buffer, Integer Offset, Integer Count)

 

Sub Write(Buffer As Byte(), Offset As Integer, Count As Integer)

Parameters:

  • Buffer:
  • Offset:
  • Count:

Write (ImmutableBinary)

 

method Write(Data: ImmutableBinary)

 

void Write(ImmutableBinary Data)

 

func Write(_ Data: ImmutableBinary)

 

void Write(ImmutableBinary Data)

 

Sub Write(Data As ImmutableBinary)

Parameters:

  • Data: