127 Commits

Author SHA1 Message Date
mandreyel
01e8f68952
Merge pull request #63 from lkotsonis/fix/duplicate_target_name_in_cmake
fix duplicate target name in tests cmake
2020-12-20 11:13:29 +01:00
Lefteris Kotsonis
f4fa4292eb fix duplicate target name in tests cmake 2020-11-05 21:38:59 +02:00
mandreyel
8c0d3c7c23
Merge pull request #54 from petrmanek/master
Fixed typo in CMake config file.
2019-12-27 18:31:40 +01:00
mandreyel
b296e2d40f Fix not releasing file handle on unsuccessful mapping on win32 2019-12-27 18:25:47 +01:00
Petr Manek
312f041121 Fixed typo in CMake config file. 2019-09-02 16:39:46 +02:00
mandreyel
76251b8dde
Merge pull request #50 from apmccartney/master
Travis, CDash, and CMake 3.14 warnings
2019-08-03 13:10:09 +02:00
Austin McCartney
61567f4c57 Fixed CMake prefix generator bug 2019-06-15 09:31:54 -06:00
Austin McCartney
2bde42c3f2 Corrected CMakeLists.txt comment 2019-06-15 09:31:12 -06:00
Austin McCartney
62e6506330 Travis, CDash, and CMake 3.14 warnings 2019-06-08 11:45:46 -06:00
mandreyel
b9737f60c3
Merge pull request #49 from mandreyel/add-different-offset-tests
Add different offset tests
2019-05-27 18:43:20 +02:00
mandreyel
f75520c719 Update single include header 2019-05-27 18:42:32 +02:00
mandreyel
518b99b967 Fix offset method name to reflect actual intent
It was meant to return the mapping offset from the start of the file,
but in reality it returned the mapping offset from the start of the page
that is mapped. It is now renamed to reflect this.
2019-05-27 18:38:29 +02:00
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