vspyx.IO

Package Contents

Classes

BufferedInputStream

BufferedInputStream

FileInputStream

FileInputStream

FileOutputStream

FileOutputStream

FileStream

FileStream

Filesystem

Filesystem

InputOutputStream

InputOutputStream

InputStream

InputStream

MemoryInputOutputStream

MemoryInputOutputStream

MemoryMappedFile

MemoryMappedFile

Mode

Enum where members are also (and must be) ints

Module

Module

OutputStream

OutputStream

SeekableInputOutputStream

SeekableInputOutputStream

SeekableInputStream

SeekableInputStream

SeekableInputSubstream

SeekableInputSubstream

SeekableOutputStream

SeekableOutputStream

SeekableOutputSubstream

SeekableOutputSubstream

SeekableStream

SeekableStream

Stream

Stream

TextReader

TextReader

ZstdOutputStream

ZstdOutputStream

class vspyx.IO.BufferedInputStream

Bases: SeekableInputStream

Inheritance diagram of vspyx.IO.BufferedInputStream

BufferedInputStream

class vspyx.IO.FileInputStream

Bases: FileStream, SeekableInputStream

Inheritance diagram of vspyx.IO.FileInputStream

FileInputStream

class vspyx.IO.FileOutputStream

Bases: FileStream, SeekableOutputStream

Inheritance diagram of vspyx.IO.FileOutputStream

FileOutputStream

class vspyx.IO.FileStream

Bases: Stream

Inheritance diagram of vspyx.IO.FileStream

FileStream

FilePath :str
Size :int
UnixModifiedTime :int
class vspyx.IO.Filesystem

Bases: vspyx.Core.Object

Inheritance diagram of vspyx.IO.Filesystem

Filesystem

AbsolutePath(self, path: str) str
CanonicalPath(self, path: str) str
CombinePaths(self, path1: str, path2: str) str
ComparePaths(self, path1: str, path2: str) int
DirectoryExists(self, path: str) bool
EnumerateDirectory(self, path: str) List[str]
FileExists(self, path: str) bool
GetExtensionOfPath(self, path: str) str
GetFilenameOfPath(self, path: str) str
GetNumericAttribute(self, path: str, key: str) vspyx.Core.Numeric
GetParentPathOfPath(self, path: str) str
GetRootDirectoryOfPath(self, path: str) str
GetRootNameOfPath(self, path: str) str
GetRootPathOfPath(self, path: str) str
GetStemOfPath(self, path: str) str
GetStringAttribute(self, path: str, key: str) str
MakeDirectory(self, path: str) Any
OpenFileForRead(self, path: str) FileInputStream
OpenFileForWrite(self, path: str) FileOutputStream
OpenMemoryMappedFile(self, path: str, writable: bool) MemoryMappedFile
OpenMemoryMappedFile(self, path: str, writable: bool, writableFileSize: Any) MemoryMappedFile
PathIsAbsolute(self, path: str) bool
PathIsRelative(self, path: str) bool
RelativePath(self, relativeFrom: str, path: str) str
Remove(self, path: str) Any
RemoveAll(self, path: str) Any
SetNumericAttribute(self, path: str, key: str, value: vspyx.Core.Numeric) Any
SetStringAttribute(self, path: str, key: str, value: str) Any
SystemAbsolutePath(self, path: str) str
class vspyx.IO.InputOutputStream

Bases: InputStream, OutputStream

Inheritance diagram of vspyx.IO.InputOutputStream

InputOutputStream

class vspyx.IO.InputStream

Bases: Stream

Inheritance diagram of vspyx.IO.InputStream

InputStream

AvailableBytes :int
Read(self, buffer: Any, len: int) int
class vspyx.IO.MemoryInputOutputStream

Bases: SeekableInputStream, SeekableOutputStream

Inheritance diagram of vspyx.IO.MemoryInputOutputStream

MemoryInputOutputStream

class vspyx.IO.MemoryMappedFile

Bases: FileStream

Inheritance diagram of vspyx.IO.MemoryMappedFile

MemoryMappedFile

GetView(self, offset: int, size: int) vspyx.Core.BytesView
class vspyx.IO.Mode

Bases: enum.IntEnum

Inheritance diagram of vspyx.IO.Mode

Enum where members are also (and must be) ints

Append = 2
Read = 0
UpdateAppend = 5
UpdateRead = 3
UpdateWrite = 4
Write = 1
class vspyx.IO.Module

Bases: vspyx.Core.Module

Inheritance diagram of vspyx.IO.Module

Module

AppDataFilesystem :Filesystem
AppDataFilesystemRoot :str
BuiltInFilesystem :Filesystem
BuiltInFilesystemIsOSFilesystem :bool
BuiltInFilesystemRoot :str
OSFilesystem :Filesystem
SetupFilesystem :Filesystem
UserFilesystem :Filesystem
UserFilesystemRoot :str
NewChrootFilesystem(self, systemPath: str) Filesystem
NewTemporaryFilesystem(self) Filesystem
OpenFileForRead(self, path: str) FileInputStream
OpenFileForWrite(self, path: str) FileOutputStream
OpenMemoryMappedFile(self, path: str, writable: bool) MemoryMappedFile
OpenMemoryMappedFile(self, path: str, writable: bool, writableFileSize: Any) MemoryMappedFile
static SetAppDataFilesystemRootOverride(path: str) Any
static SetBuiltInFilesystemRootOverride(path: str) Any
static SetUserFilesystemRootOverride(path: str) Any
class vspyx.IO.OutputStream

Bases: Stream

Inheritance diagram of vspyx.IO.OutputStream

OutputStream

Flush(self) Any
Write(self, buffer: Any, len: int) int
class vspyx.IO.SeekableInputOutputStream

Bases: FileInputStream, FileOutputStream

Inheritance diagram of vspyx.IO.SeekableInputOutputStream

SeekableInputOutputStream

class vspyx.IO.SeekableInputStream

Bases: InputStream, SeekableStream

Inheritance diagram of vspyx.IO.SeekableInputStream

SeekableInputStream

class vspyx.IO.SeekableInputSubstream

Bases: FileInputStream

Inheritance diagram of vspyx.IO.SeekableInputSubstream

SeekableInputSubstream

AvailableBytes :int
FilePath :str
IsClosed :bool
Position :int
Size :int
UnixModifiedTime :int
Clone(self) Any
Close(self) Any
Read(self, buffer: Any, len: int) int
Seek(self, offset: int, origin: int) Any
class vspyx.IO.SeekableOutputStream

Bases: OutputStream, SeekableStream

Inheritance diagram of vspyx.IO.SeekableOutputStream

SeekableOutputStream

class vspyx.IO.SeekableOutputSubstream

Bases: FileOutputStream

Inheritance diagram of vspyx.IO.SeekableOutputSubstream

SeekableOutputSubstream

FilePath :str
IsClosed :bool
Position :int
Size :int
UnixModifiedTime :int
Clone(self) Any
Close(self) Any
Flush(self) Any
Seek(self, offset: int, origin: int) Any
Write(self, buffer: Any, len: int) int
class vspyx.IO.SeekableStream

Bases: Stream

Inheritance diagram of vspyx.IO.SeekableStream

SeekableStream

Position :int
Seek(self, offset: int, origin: int) Any
class vspyx.IO.Stream

Stream

IsClosed :bool
Clone(self) Any
Close(self) Any
assign(self, arg0: Stream) Stream
class vspyx.IO.TextReader

Bases: vspyx.Core.Object

Inheritance diagram of vspyx.IO.TextReader

TextReader

class Encoding

Bases: enum.IntEnum

Inheritance diagram of vspyx.IO.TextReader.Encoding

Enum where members are also (and must be) ints

UTF16_BIG_ENDIAN = 2
UTF16_LITTLE_ENDIAN = 1
UTF32_BIG_ENDIAN = 4
UTF32_LITTLE_ENDIAN = 3
UTF8 = 0
LastReadLine :str
static New(source: SeekableInputStream) TextReader
static New(source: InputStream, encoding: TextReader.Encoding) TextReader

Create a new TextReader with the specified encoding

ReadNextLineIfAvailable(self) bool
class vspyx.IO.ZstdOutputStream

Bases: OutputStream

Inheritance diagram of vspyx.IO.ZstdOutputStream

ZstdOutputStream

static InputBufferSize() int
static OutputBufferSize() int
SetCompressionLevel(self, level: int) Any