-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed from FileStream to ReadFile / WriteFile for the ultimate I/O …
…performance
- Loading branch information
1 parent
0697d6b
commit 90b3eec
Showing
12 changed files
with
603 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,8 +107,9 @@ static void GeneralTest() | |
|
||
fileNumber++; | ||
} | ||
catch | ||
catch (Exception ex) | ||
{ | ||
|
||
} | ||
} | ||
} | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
/* | ||
* PiSearch - https://github.com/JoshKeegan/PiSearch | ||
* WinFileFlagsAndAttributes - File Flags and attributes used by the Windows API when opening/creating a file | ||
* For a full list of possible values, see http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx | ||
* By Josh Keegan 03/01/2014 | ||
*/ | ||
|
||
namespace Haystacks | ||
{ | ||
public enum WinFileFlagsAndAttributes : uint | ||
{ | ||
FILE_FLAG_BACKUP_SEMANTICS = 0x02000000, | ||
FILE_FLAG_DELETE_ON_CLOSE = 0x04000000, | ||
FILE_FLAG_NO_BUFFERING = 0x20000000, | ||
FILE_FLAG_OPEN_NO_RECALL = 0x00100000, | ||
FILE_FLAG_OPEN_REPARSE_POINT = 0x00200000, | ||
FILE_FLAG_OVERLAPPED = 0x40000000, | ||
FILE_FLAG_POSIX_SEMANTICS = 0x0100000, | ||
FILE_FLAG_RANDOM_ACCESS = 0x10000000, | ||
FILE_FLAG_SESSION_AWARE = 0x00800000, | ||
FILE_FLAG_SEQUENTIAL_SCAN = 0x08000000, | ||
FILE_FLAG_WRITE_THROUGH = 0x80000000, | ||
} | ||
} |
Oops, something went wrong.