RLib  5.7
RLib - an opensource, lightweight and multi-platform framework for cpp programming
System::IO Namespace Reference

The namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support More...

Namespaces

 Compression
 The namespace contains classes that provide basic compression and decompression services for streams
 

Classes

class  BufferedStream
 Creates a stream whose backing store is memory More...
 
class  Directory
 Exposes static methods for creating, moving, and enumerating through directories and subdirectories More...
 
class  File
 提供用于创建、复制、删除、移动和打开文件的静态方法,并协助创建 FileStream 对象 More...
 
struct  FileFullAttributes
 file attributes information More...
 
class  FileStream
 Provides a Stream for a file, supporting both synchronous and asynchronous read and write operations More...
 
class  IAllocator
 IAllocator defines the memory allocator interface More...
 
struct  MEMORY_INFORMATION
 
class  MemoryAllocator
 
class  MemoryPage
 Provides a Memory Page class base on Double-Linked List, which is the core of MemoryPool More...
 
class  MemoryPool
 A nonblocking thread-safe memory-pool implementation More...
 
class  MemoryStream
 Creates a stream whose backing store is memory. This is an abstract class More...
 
struct  Path
 Represents filesystem path More...
 
struct  PathInfo
 Represents filesystem path structure More...
 
class  Stream
 Provides a generic view of a sequence of bytes. This is an abstract class More...
 
class  StreamReader
 Provide a interface to read stream conveniently More...
 
class  UnmanagedMemoryStream
 Provides access to unmanaged blocks of memory More...
 

Typedefs

typedef struct System::IO::MEMORY_INFORMATIONPMEMORY_INFORMATION
 

Enumerations

enum  FileAccess : ACCESS_MASK {
  All = GENERIC_ALL, Read = GENERIC_READ, Write = GENERIC_WRITE, ReadWrite = GENERIC_READ | GENERIC_WRITE,
  NT_ALL = FILE_ALL_ACCESS, NT_READ = FILE_READ_DATA, NT_WRITE = FILE_WRITE_DATA, NT_DELETE = DELETE,
  NT_APPEND = FILE_APPEND_DATA, NT_READ_ATTRIBUTES = FILE_READ_ATTRIBUTES, NT_READ_EA = FILE_READ_EA, NT_WRITE_ATTRIBUTES = FILE_WRITE_ATTRIBUTES,
  NT_WRITE_EA = FILE_WRITE_EA, NT_EXECUTE = FILE_EXECUTE, NT_LIST_DIRECTORY = FILE_LIST_DIRECTORY, NT_TRAVERSE = FILE_TRAVERSE
}
 定义用于控制对文件的读访问、写访问或读/写访问的常数 More...
 
enum  FileMode {
  CreateOnly = FILE_CREATE, CreateNew = FILE_SUPERSEDE, CreateAlways = FILE_SUPERSEDE, OpenExist = FILE_OPEN,
  OpenOrCreate = FILE_OPEN_IF, Truncate = FILE_OVERWRITE, TruncateCreate = FILE_OVERWRITE_IF, AppendAlways = 0x7FFFFFFF
}
 指定操作系统打开文件的方式 More...
 
enum  FileAttributes {
  Normal = FILE_ATTRIBUTE_NORMAL, Encrypted = FILE_ATTRIBUTE_ENCRYPTED, Hidden = FILE_ATTRIBUTE_HIDDEN, Archive = FILE_ATTRIBUTE_ARCHIVE,
  Offline = FILE_ATTRIBUTE_OFFLINE, ReadOnly = FILE_ATTRIBUTE_READONLY, SystemFile = FILE_ATTRIBUTE_SYSTEM, Temporary = FILE_ATTRIBUTE_TEMPORARY
}
 提供文件和目录的特性 More...
 
enum  FileShare {
  None = NULL, Read = FILE_SHARE_READ, Write = FILE_SHARE_WRITE, Delete = FILE_SHARE_DELETE,
  ReadWrite = FILE_SHARE_READ | FILE_SHARE_WRITE, All = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
}
 包含用于控制其他 FileStream 对象对同一文件可以具有的访问类型的常数 More...
 
enum  FileOptions {
  None = NULL, WriteThrough = FILE_WRITE_THROUGH, RandomAccess = FILE_RANDOM_ACCESS, SequentialScan = FILE_SEQUENTIAL_ONLY,
  DeleteOnClose = FILE_DELETE_ON_CLOSE
}
 表示用于创建 FileStream 对象的附加选项 More...
 

Functions

 RLIB_INTERNAL_EXCEPTION (IOException, Exception)
 The exception that is set when an I/O error occurs More...
 

Variables

class RLIB_API RLIB_THREAD_SAFE MemoryPool
 

Detailed Description

The namespace contains types that allow reading and writing to files and data streams, and types that provide basic file and directory support

Enumeration Type Documentation

enum System::IO::FileAccess : ACCESS_MASK
strong

定义用于控制对文件的读访问、写访问或读/写访问的常数

提供文件和目录的特性

enum System::IO::FileMode
strong

指定操作系统打开文件的方式

表示用于创建 FileStream 对象的附加选项

enum System::IO::FileShare
strong

包含用于控制其他 FileStream 对象对同一文件可以具有的访问类型的常数

Function Documentation

System::IO::RLIB_INTERNAL_EXCEPTION ( IOException  ,
Exception   
)

The exception that is set when an I/O error occurs