SeekOrigin
seek origins
Definition stream.h:54
int64_t Position
typedefs
Definition stream.h:32
int64_t Size
Definition stream.h:34
AccessMode
access modes
Definition stream.h:38
int64_t Offset
Definition stream.h:33
AccessPattern
access prefered pattern
Definition stream.h:47
Nebula's dynamic array class.
Definition array.h:60
Internal filesystem wrapper for Win32.
Definition win32fswrapper.h:23
static Util::String GetCurrentDirectory()
get current working directory
Definition win32fswrapper.cc:631
static IO::Stream::Size Read(Handle h, void *buf, IO::Stream::Size numBytes)
read from a file
Definition win32fswrapper.cc:129
static bool ReplaceFile(const Util::String &source, const Util::String &target)
rename a file
Definition win32fswrapper.cc:360
static bool IsDeviceName(const Util::String &str)
return true when the string is a device name (e.g. "C:")
Definition win32fswrapper.cc:730
static void Seek(Handle h, IO::Stream::Offset offset, IO::Stream::SeekOrigin orig)
seek in a file
Definition win32fswrapper.cc:195
static void SetFileWriteTime(const Util::String &path, IO::FileTime fileTime)
set the write-access time stamp of a file
Definition win32fswrapper.cc:434
static bool IsReadOnly(const Util::String &path)
get read-only status of a file
Definition win32fswrapper.cc:312
static IO::Stream::Position Tell(Handle h)
get position in file
Definition win32fswrapper.cc:224
static void SetReadOnly(const Util::String &path, bool readOnly)
set read-only status of a file
Definition win32fswrapper.cc:290
static IO::FileTime GetFileWriteTime(const Util::String &path)
get the last write-access time stamp of a file
Definition win32fswrapper.cc:454
static bool DirectoryExists(const Util::String &path)
return true if a directory exists
Definition win32fswrapper.cc:411
static void ConvertToWidePath(const Util::String &src, ushort *dst, SizeT dstNumBytes)
convert UTF8 path name to WideChar path name
static bool Eof(Handle h)
return true if at end-of-file
Definition win32fswrapper.cc:246
static Util::Array< Util::String > ListFiles(const Util::String &dirPath, const Util::String &pattern)
list all files in a directory
Definition win32fswrapper.cc:507
static Util::String GetProgramsDirectory()
get path to the "c:/program files" directory
Definition win32fswrapper.cc:612
HANDLE Handle
Definition win32fswrapper.h:25
static char * Map(Handle h, IO::Stream::AccessMode accessMode, Handle &mappedHandle)
map file to virtual memory
Definition win32fswrapper.cc:148
static Handle OpenFile(const Util::String &path, IO::Stream::AccessMode accessMode, IO::Stream::AccessPattern accessPattern, DWORD flagsAndAttributes=0)
open a file
Definition win32fswrapper.cc:30
static void Flush(Handle h)
flush a file
Definition win32fswrapper.cc:235
static Util::Array< Util::String > ListDirectories(const Util::String &dirPath, const Util::String &pattern)
list all subdirectories in a directory
Definition win32fswrapper.cc:541
static Util::String GetUserDirectory()
get path to the current user's home directory (for user: standard assign)
Definition win32fswrapper.cc:576
static void Unmap(Handle mapHandle, char *buf)
unmap file
Definition win32fswrapper.cc:184
static bool CreateDirectory(const Util::String &path)
create a directory
Definition win32fswrapper.cc:477
static bool DeleteDirectory(const Util::String &path)
delete an empty directory
Definition win32fswrapper.cc:374
static bool IsLocked(const Util::String &path)
get locked status of file
Definition win32fswrapper.cc:327
static Util::String GetAppDataDirectory()
get path to the current user's appdata directory (for appdata: standard assign)
Definition win32fswrapper.cc:594
static bool FileExists(const Util::String &path)
return true if a file exists
Definition win32fswrapper.cc:388
static Util::String GetHomeDirectory()
get path to the current application directory (for home: standard assign)
Definition win32fswrapper.cc:678
static bool DeleteFile(const Util::String &path)
delete a file
Definition win32fswrapper.cc:348
static void CloseFile(Handle h)
close a file
Definition win32fswrapper.cc:99
static IO::Stream::Size GetFileSize(Handle h)
get size of a file in bytes
Definition win32fswrapper.cc:261
static Util::String CreateTemporaryFilename(const Util::String &path)
create a temporary file name
Definition win32fswrapper.cc:490
static Util::String GetBinDirectory()
get path to the current bin directory (for bin: standard assign)
Definition win32fswrapper.cc:660
static Util::String GetTempDirectory()
get path to the current user's temp directory (for temp: standard assign)
Definition win32fswrapper.cc:644
@ Write
Definition filewatcher.h:47
[TODO: Describe Win32 subsystem]
Nebula's universal string class.
Definition String.cs:8
int SizeT
Definition types.h:42
unsigned short ushort
Definition types.h:34