mandreyel
dc885d0984
Add tests for mappings with different file offsets
2019-05-27 18:37:39 +02:00
mandreyel
eb6f4068d3
Merge pull request #47 from MambaWong/master
...
Fix memory mapped data offset
2019-05-20 12:57:29 +01:00
MambaWong
c071714a70
Fix memory mapped data offset
...
I think the virtual address maybe like this: ctx.data = mapping_start + offset - aligned_offset;
2019-05-19 13:29:27 +08:00
mandreyel
e101ff3e89
Add compile test case for file descriptor constructor overload
2019-05-11 16:38:39 +02:00
mandreyel
9e2ef64ce6
Start using human-readable output for test file
2019-05-08 08:50:09 +02:00
mandreyel
88e0263b07
Fix memory mapped data offset
2019-03-13 00:06:43 +01:00
mandreyel
514837b21e
Update test.cpp
2019-03-13 00:06:06 +01:00
mandreyel
18fbf199ec
Fix minor errors in internal docs
2019-03-12 22:58:51 +01:00
mandreyel
cafa31360f
Merge pull request #40 from patrick--/single_header
...
Initial single header support using amalgamate
2019-02-09 16:32:14 +00:00
Patrick Servello
3c655b70d9
Added single header file information to the README
2019-02-09 10:28:01 -06:00
Patrick Servello
647e977941
Initial single header support using amalgamate
2019-02-05 22:00:37 -06:00
mandreyel
3c658bf611
Merge pull request #38 from amallia/patch-1
...
comparison between signed and unsigned integer
2019-02-02 21:53:04 +01:00
Antonio Mallia
d25c02f09c
Update mmap.ipp
2019-02-02 14:07:14 -05:00
Antonio Mallia
d35a6db82a
Update mmap.ipp
2019-01-30 18:13:19 -05:00
mandreyel
c7c7163a82
Fix file length calculation bug and half-missing comment
2018-11-27 12:02:46 +01:00
mandreyel
e2fdbf6c35
Merge pull request #34 from mandreyel/wchar-paths
...
Add Windows wide char path support
2018-11-13 15:24:08 +01:00
mandreyel
d4283a45ec
Add Windows wide char path support
2018-11-13 11:30:51 +01:00
mandreyel
d77add92da
Merge pull request #32 from gmbeard/multi-target-windows-api
...
Multi target windows api
2018-11-11 15:15:41 +01:00
mandreyel
321bb4d89c
Merge pull request #31 from easyaspi314/master
...
Conditionally enable the exception-throwing constructors
2018-11-09 20:32:38 +01:00
easyaspi314 (Devin)
3c49b5c3fa
Add line break and comment #endifs
2018-11-09 11:30:47 -05:00
easyaspi314 (Devin)
ca14fbdff8
Update README.md to mention exceptions.
2018-11-09 11:28:52 -05:00
Greg Beard
6125094190
Merge branch 'master' into multi-target-windows-api
2018-11-09 11:59:41 +00:00
easyaspi314 (Devin)
cc9e98f382
Conditionally enable the exception-throwing constructors
...
This allows MIO to be compiled with -fno-exceptions, as that is the
only place where MIO uses them.
2018-11-08 23:32:14 -05:00
mandreyel
45e5fcde97
Third follow up attempt to fix MSVC SFINAE build error
2018-11-07 12:32:08 +01:00
mandreyel
bd14437895
Second follow up attempt to fix MSVC SFINAE build error
2018-11-07 12:08:49 +01:00
mandreyel
261acc6bc6
Follow up attempt to fix MSVC SFINAE build error
2018-11-07 11:42:42 +01:00
mandreyel
0da3002815
Fix missing error code in conditional_sync
2018-11-07 11:08:34 +01:00
mandreyel
d33a0d567f
Update docs to specify exception type
2018-10-26 09:02:12 +02:00
mandreyel
a345b8b92d
Merge pull request #29 from AlanAtWork/master
...
Throw std::system_error
2018-10-26 08:57:27 +02:00
AlanAtWork
56aaf4e71f
Throw std::system_error
2018-10-25 10:47:05 -05:00
mandreyel
2e048e5a25
Add entire file mapping overload to factory methods
2018-10-25 09:22:46 +02:00
mandreyel
99db68866c
Update README.md and example.cpp
2018-10-25 09:15:15 +02:00
mandreyel
43ee283c01
Merge pull request #28 from jdarpinian/default-args
...
Map entire file by default.
2018-10-25 08:59:39 +02:00
James Darpinian
0b3261071e
Map entire file by default.
2018-10-24 23:19:58 -07:00
mandreyel
039c4daa9e
Merge pull request #27 from jdarpinian/msvc
...
MSVC can't handle constexpr INVALID_HANDLE_VALUE
2018-10-24 17:45:46 +02:00
James Darpinian
99447c57cf
MSVC can't handle constexpr INVALID_HANDLE_VALUE
...
Causes error C2131: expression did not evaluate to a constant
note: failure was caused by unevaluable pointer value
2018-10-24 03:02:02 -07:00
mandreyel
9bc0133764
Merge pull request #25 from mandreyel/update-destructor-sync-defaults
...
Update destructor sync defaults
2018-10-24 10:09:49 +02:00
mandreyel
1157537c98
Update docs, example.cpp and README.md
2018-10-22 18:46:07 +02:00
mandreyel
865d7f35ce
Update basic_mmap destructor sync behavior
2018-10-22 14:57:47 +02:00
mandreyel
98d0d875b5
Refactor code to remove basic_mmap impl indirection
2018-10-22 14:46:42 +02:00
mandreyel
5ac44ecb00
Create invalid_handle value and update unmapped shared_mmap handle methods to return it
2018-10-22 13:30:35 +02:00
Greg Beard
3338d0ddaf
Merge branch 'master' into multi-target-windows-api
2018-10-22 11:09:10 +01:00
mandreyel
2dbf5d3050
Merge pull request #24 from GxvgiuU/shared_mmap-constructor
...
Fix shared_mmap constructor method
2018-10-21 17:30:51 +02:00
pierce
78d60cc6d9
Fix shared_mmap constructor method
2018-10-21 14:25:30 +08:00
Greg Beard
63947b7c9a
Changes wording/grammar of docs for extra win api target
2018-10-19 09:15:11 +01:00
Greg Beard
acfca0042e
Adds a mio::mio_full_winapi target, which defines no WinAPI flags
...
The extra target doesn't `#define` any of `WIN32_LEAN_AND_MEAN`,
`NOMINMAX`. The default `mio::mio` adds both of these. This commit also
removes these defines from the `.*pp` files; they're now inserted by the
compile commands.
2018-10-19 07:21:34 +01:00
mandreyel
365a80c9ac
Fix char* being an invalid path type
2018-10-18 19:30:41 +02:00
mandreyel
307db6a136
Merge pull request #18 from gmbeard/fix-missing-test-file
...
Fixes missing test file
2018-10-18 19:07:43 +02:00
Greg Beard
77125df199
Fixes missing test file
...
For an earlier PR (#16 ), I introduced a new test file for testing
unicode support on Windows. The project's `.gitignore` file excludes the
entire test directory, so it was missed out. Turns out that this test
file wasn't actually needed, but the CMake config still uses it. This
commit just changes this back to the original `test.cpp` file.
2018-10-18 17:09:19 +01:00
mandreyel
e0ae329583
Merge pull request #16 from gmbeard/windows-unicode-compilation-fix
...
Windows unicode compilation fix
2018-10-18 14:26:21 +02:00