System::IO::FileStream::FileStream constructor
Contents
[
Hide
]FileStream::FileStream(const FileStream&) constructor
System::IO::FileStream::FileStream(const FileStream &)=delete
See Also
- Class FileStream
- Class FileStream
- Namespace System::IO
- Library Aspose.PDF for C++
FileStream::FileStream(const String&, FileMode) constructor
Constructs a new instance of FileStream class and initializes it with the specified parameters.
System::IO::FileStream::FileStream(const String &path, FileMode mode)
| Parameter | Type | Description |
|---|---|---|
| path | const String& | The path of the file to open. |
| mode | FileMode | Specifies the mode in which to open the file. |
See Also
- Class String
- Enum FileMode
- Class FileStream
- Namespace System::IO
- Library Aspose.PDF for C++
FileStream::FileStream(const String&, FileMode, FileAccess, FileShare, int32_t, bool) constructor
Constructs a new instance of FileStream class and initializes it with the specified parameters.
System::IO::FileStream::FileStream(const String &path, FileMode mode, FileAccess access, FileShare share, int32_t buffer_size, bool useAsync)
| Parameter | Type | Description |
|---|---|---|
| path | const String& | The path of the file to open. |
| mode | FileMode | Specifies the mode in which to open the file. |
| access | FileAccess | The requested access type. |
| share | FileShare | The type of access that other FileStream objects have to the opened file. |
| buffer_size | int32_t | The number of bytes bufferred during read and write operations. |
| useAsync | bool | Specifies whether to use asynchronous I/O or synchronous I/O. |
Remarks
The underlying operating system might not support asynchronous I/O.
See Also
- Class String
- Enum FileMode
- Enum FileAccess
- Enum FileShare
- Class FileStream
- Namespace System::IO
- Library Aspose.PDF for C++
FileStream::FileStream(const String&, FileMode, FileAccess, FileShare, int32_t, FileOptions) constructor
Constructs a new instance of FileStream class and initializes it with the specified parameters.
System::IO::FileStream::FileStream(const String &path, FileMode mode, FileAccess access, FileShare share=FileShare::Read, int32_t buffer_size=DefaultBufferSize, FileOptions options=FileOptions::SequentialScan)
| Parameter | Type | Description |
|---|---|---|
| path | const String& | The path of the file to open. |
| mode | FileMode | Specifies the mode in which to open the file. |
| access | FileAccess | The requested access type. |
| share | FileShare | The type of access that other FileStream objects have to the opened file. |
| buffer_size | int32_t | The number of bytes bufferred during read and write operations. |
| options | FileOptions | Additional options. |
See Also
- Class String
- Enum FileMode
- Enum FileAccess
- Enum FileShare
- Enum FileOptions
- Class FileStream
- Namespace System::IO
- Library Aspose.PDF for C++