Welcome to mirror list, hosted at ThFree Co, Russian Federation.

classafio__v2__xxx_1_1map__handle.html - github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 98a3d4037fe4a93f41cfa882d0ac3d85e1d554d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>AFIO: afio_v2_xxx::map_handle Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">AFIO
   &#160;<span id="projectnumber">v2.00 late alpha</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classafio__v2__xxx_1_1map__handle.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classafio__v2__xxx_1_1map__handle-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">afio_v2_xxx::map_handle Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div>  </div>
</div><!--header-->
<div class="contents">

<p>A handle to a memory mapped region of memory, either backed by the system page file or by a section.  
 <a href="classafio__v2__xxx_1_1map__handle.html#details">More...</a></p>

<p><code>#include &quot;map_handle.hpp&quot;</code></p>
<div class="dynheader">
Inheritance diagram for afio_v2_xxx::map_handle:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classafio__v2__xxx_1_1map__handle.png" usemap="#afio_5Fv2_5Fxxx::map_5Fhandle_map" alt=""/>
  <map id="afio_5Fv2_5Fxxx::map_5Fhandle_map" name="afio_5Fv2_5Fxxx::map_5Fhandle_map">
<area href="classafio__v2__xxx_1_1io__handle.html" title="A handle to something capable of scatter-gather i/o. " alt="afio_v2_xxx::io_handle" shape="rect" coords="0,56,153,80"/>
<area href="classafio__v2__xxx_1_1handle.html" title="A native_handle_type which is managed by the lifetime of this object instance. " alt="afio_v2_xxx::handle" shape="rect" coords="0,0,153,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a9cde0ddea1310cdec3db32ad69f29527"><td class="memItemLeft" align="right" valign="top"><a id="a9cde0ddea1310cdec3db32ad69f29527"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>extent_type</b> = io_handle::extent_type</td></tr>
<tr class="separator:a9cde0ddea1310cdec3db32ad69f29527"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26d90317426d6a95abb27caff26d1568"><td class="memItemLeft" align="right" valign="top"><a id="a26d90317426d6a95abb27caff26d1568"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>size_type</b> = io_handle::size_type</td></tr>
<tr class="separator:a26d90317426d6a95abb27caff26d1568"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2fc92b11c3dc6021436261eab13e48"><td class="memItemLeft" align="right" valign="top"><a id="a4a2fc92b11c3dc6021436261eab13e48"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>mode</b> = <a class="el" href="classafio__v2__xxx_1_1handle.html#a0489b6c1e25cd2bad2ba1ec86e1aaf18">io_handle::mode</a></td></tr>
<tr class="separator:a4a2fc92b11c3dc6021436261eab13e48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d6628e75030c5f83dd679ff0a7a6d6b"><td class="memItemLeft" align="right" valign="top"><a id="a1d6628e75030c5f83dd679ff0a7a6d6b"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>creation</b> = <a class="el" href="classafio__v2__xxx_1_1handle.html#a45ff5c1c5662623d99156870dfeee0a7">io_handle::creation</a></td></tr>
<tr class="separator:a1d6628e75030c5f83dd679ff0a7a6d6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e76ea37b167d23b43b27794282667f4"><td class="memItemLeft" align="right" valign="top"><a id="a8e76ea37b167d23b43b27794282667f4"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>caching</b> = <a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">io_handle::caching</a></td></tr>
<tr class="separator:a8e76ea37b167d23b43b27794282667f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ac624b2af8f1cccdf87d80f5542b709"><td class="memItemLeft" align="right" valign="top"><a id="a4ac624b2af8f1cccdf87d80f5542b709"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>flag</b> = io_handle::flag</td></tr>
<tr class="separator:a4ac624b2af8f1cccdf87d80f5542b709"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45a37a4b395e125f84cd9a9e1995c504"><td class="memItemLeft" align="right" valign="top"><a id="a45a37a4b395e125f84cd9a9e1995c504"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>buffer_type</b> = <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">io_handle::buffer_type</a></td></tr>
<tr class="separator:a45a37a4b395e125f84cd9a9e1995c504"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe6c2e6318b90d83660f47f9a8ec24d1"><td class="memItemLeft" align="right" valign="top"><a id="abe6c2e6318b90d83660f47f9a8ec24d1"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>const_buffer_type</b> = <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">io_handle::const_buffer_type</a></td></tr>
<tr class="separator:abe6c2e6318b90d83660f47f9a8ec24d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0af15b220ec3cfd1816206a5e795c934"><td class="memItemLeft" align="right" valign="top"><a id="a0af15b220ec3cfd1816206a5e795c934"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>buffers_type</b> = <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">io_handle::buffers_type</a></td></tr>
<tr class="separator:a0af15b220ec3cfd1816206a5e795c934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a272e3e3dd846e5a4ee86e7193403500a"><td class="memItemLeft" align="right" valign="top"><a id="a272e3e3dd846e5a4ee86e7193403500a"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>const_buffers_type</b> = <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">io_handle::const_buffers_type</a></td></tr>
<tr class="separator:a272e3e3dd846e5a4ee86e7193403500a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9051ebc2ea492cdd7c14e01fbb5a3a92"><td class="memTemplParams" colspan="2"><a id="a9051ebc2ea492cdd7c14e01fbb5a3a92"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:a9051ebc2ea492cdd7c14e01fbb5a3a92"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><b>io_request</b> = <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_handle::io_request</a>&lt; T &gt;</td></tr>
<tr class="separator:a9051ebc2ea492cdd7c14e01fbb5a3a92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ea36471bce9cae1604da211a4afa779"><td class="memTemplParams" colspan="2"><a id="a1ea36471bce9cae1604da211a4afa779"></a>
template&lt;class T &gt; </td></tr>
<tr class="memitem:a1ea36471bce9cae1604da211a4afa779"><td class="memTemplItemLeft" align="right" valign="top">using&#160;</td><td class="memTemplItemRight" valign="bottom"><b>io_result</b> = <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_handle::io_result</a>&lt; T &gt;</td></tr>
<tr class="separator:a1ea36471bce9cae1604da211a4afa779"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aacabd3633b7c08a422c3e912f6319959"><td class="memItemLeft" align="right" valign="top"><a id="aacabd3633b7c08a422c3e912f6319959"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>path_type</b> = <a class="el" href="classafio__v2__xxx_1_1handle.html#a6c4df2242ece6f63ba7ef4e6baafaca6">handle::path_type</a></td></tr>
<tr class="separator:aacabd3633b7c08a422c3e912f6319959"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a57d804e792acee6f848b75ad3d8ff439"><td class="memItemLeft" align="right" valign="top"><a id="a57d804e792acee6f848b75ad3d8ff439"></a>
constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a57d804e792acee6f848b75ad3d8ff439">map_handle</a> ()</td></tr>
<tr class="memdesc:a57d804e792acee6f848b75ad3d8ff439"><td class="mdescLeft">&#160;</td><td class="mdescRight">Default constructor. <br /></td></tr>
<tr class="separator:a57d804e792acee6f848b75ad3d8ff439"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96cb504683feb27581012d48fd967cfc"><td class="memItemLeft" align="right" valign="top"><a id="a96cb504683feb27581012d48fd967cfc"></a>
constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a96cb504683feb27581012d48fd967cfc">map_handle</a> (<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;&amp;o) noexcept</td></tr>
<tr class="memdesc:a96cb504683feb27581012d48fd967cfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Implicit move construction of map_handle permitted. <br /></td></tr>
<tr class="separator:a96cb504683feb27581012d48fd967cfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acd3a23554d49cd7761c05c78316e843d"><td class="memItemLeft" align="right" valign="top"><a id="acd3a23554d49cd7761c05c78316e843d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#acd3a23554d49cd7761c05c78316e843d">map_handle</a> (const <a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;)=delete</td></tr>
<tr class="memdesc:acd3a23554d49cd7761c05c78316e843d"><td class="mdescLeft">&#160;</td><td class="mdescRight">No copy construction (use <code>clone()</code>) <br /></td></tr>
<tr class="separator:acd3a23554d49cd7761c05c78316e843d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa2de383f07c16362890a8602d6089cef"><td class="memItemLeft" align="right" valign="top"><a id="aa2de383f07c16362890a8602d6089cef"></a>
<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#aa2de383f07c16362890a8602d6089cef">operator=</a> (<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;&amp;o) noexcept</td></tr>
<tr class="memdesc:aa2de383f07c16362890a8602d6089cef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Move assignment of map_handle permitted. <br /></td></tr>
<tr class="separator:aa2de383f07c16362890a8602d6089cef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6643b27340d9bc8d2e29c9e085f8799c"><td class="memItemLeft" align="right" valign="top"><a id="a6643b27340d9bc8d2e29c9e085f8799c"></a>
<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a6643b27340d9bc8d2e29c9e085f8799c">operator=</a> (const <a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;)=delete</td></tr>
<tr class="memdesc:a6643b27340d9bc8d2e29c9e085f8799c"><td class="mdescLeft">&#160;</td><td class="mdescRight">No copy assignment. <br /></td></tr>
<tr class="separator:a6643b27340d9bc8d2e29c9e085f8799c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a295685127f9dacc561b5f9600d82fad5"><td class="memItemLeft" align="right" valign="top"><a id="a295685127f9dacc561b5f9600d82fad5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a295685127f9dacc561b5f9600d82fad5">swap</a> (<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &amp;o) noexcept</td></tr>
<tr class="memdesc:a295685127f9dacc561b5f9600d82fad5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swap with another instance. <br /></td></tr>
<tr class="separator:a295685127f9dacc561b5f9600d82fad5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca05f73280e20cb18cc0dd7f60a1aae1"><td class="memItemLeft" align="right" valign="top"><a id="aca05f73280e20cb18cc0dd7f60a1aae1"></a>
virtual result&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#aca05f73280e20cb18cc0dd7f60a1aae1">close</a> () noexcept override</td></tr>
<tr class="memdesc:aca05f73280e20cb18cc0dd7f60a1aae1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unmap the mapped view. <br /></td></tr>
<tr class="separator:aca05f73280e20cb18cc0dd7f60a1aae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac484c07601be4e987b5f1332bdccfee3"><td class="memItemLeft" align="right" valign="top"><a id="ac484c07601be4e987b5f1332bdccfee3"></a>
virtual <a class="el" href="structafio__v2__xxx_1_1native__handle__type.html">native_handle_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac484c07601be4e987b5f1332bdccfee3">release</a> () noexcept override</td></tr>
<tr class="memdesc:ac484c07601be4e987b5f1332bdccfee3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Releases the mapped view, but does NOT release the native handle. <br /></td></tr>
<tr class="separator:ac484c07601be4e987b5f1332bdccfee3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6ab309f4df975892f3bcbef345c779b"><td class="memItemLeft" align="right" valign="top"><a id="ad6ab309f4df975892f3bcbef345c779b"></a>
virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>barrier</b> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt; reqs=<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;(), bool wait_for_device=false, bool and_metadata=false, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept override</td></tr>
<tr class="separator:ad6ab309f4df975892f3bcbef345c779b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab8a43a5388161f629fef5ee7256dbbc8"><td class="memItemLeft" align="right" valign="top"><a id="ab8a43a5388161f629fef5ee7256dbbc8"></a>
<a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ab8a43a5388161f629fef5ee7256dbbc8">section</a> () const noexcept</td></tr>
<tr class="memdesc:ab8a43a5388161f629fef5ee7256dbbc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">The memory section this handle is using. <br /></td></tr>
<tr class="separator:ab8a43a5388161f629fef5ee7256dbbc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a127eef4449f6afcddbdb684030776868"><td class="memItemLeft" align="right" valign="top"><a id="a127eef4449f6afcddbdb684030776868"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a127eef4449f6afcddbdb684030776868">set_section</a> (<a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> *s) noexcept</td></tr>
<tr class="memdesc:a127eef4449f6afcddbdb684030776868"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the memory section this handle is using. <br /></td></tr>
<tr class="separator:a127eef4449f6afcddbdb684030776868"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f203a9bb0bee94ac6b395ac5f3a2270"><td class="memItemLeft" align="right" valign="top"><a id="a6f203a9bb0bee94ac6b395ac5f3a2270"></a>
byte *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a6f203a9bb0bee94ac6b395ac5f3a2270">address</a> () const noexcept</td></tr>
<tr class="memdesc:a6f203a9bb0bee94ac6b395ac5f3a2270"><td class="mdescLeft">&#160;</td><td class="mdescRight">The address in memory where this mapped view resides. <br /></td></tr>
<tr class="separator:a6f203a9bb0bee94ac6b395ac5f3a2270"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac049430769b0fa1d06c93160cef5a2f9"><td class="memItemLeft" align="right" valign="top"><a id="ac049430769b0fa1d06c93160cef5a2f9"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a> () const noexcept</td></tr>
<tr class="memdesc:ac049430769b0fa1d06c93160cef5a2f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">The offset of the memory map. <br /></td></tr>
<tr class="separator:ac049430769b0fa1d06c93160cef5a2f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad29ceb1ecb38e9e74e63404b7db3a5a2"><td class="memItemLeft" align="right" valign="top"><a id="ad29ceb1ecb38e9e74e63404b7db3a5a2"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ad29ceb1ecb38e9e74e63404b7db3a5a2">capacity</a> () const noexcept</td></tr>
<tr class="memdesc:ad29ceb1ecb38e9e74e63404b7db3a5a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The reservation size of the memory map. <br /></td></tr>
<tr class="separator:ad29ceb1ecb38e9e74e63404b7db3a5a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba6ebe9afaccfaf59a92c5b85c72e7d2"><td class="memItemLeft" align="right" valign="top"><a id="aba6ebe9afaccfaf59a92c5b85c72e7d2"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#aba6ebe9afaccfaf59a92c5b85c72e7d2">length</a> () const noexcept</td></tr>
<tr class="memdesc:aba6ebe9afaccfaf59a92c5b85c72e7d2"><td class="mdescLeft">&#160;</td><td class="mdescRight">The size of the memory map. This is the accessible size, NOT the reservation size. <br /></td></tr>
<tr class="separator:aba6ebe9afaccfaf59a92c5b85c72e7d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5c57d56e5704ced94de606895a1fe9bd"><td class="memItemLeft" align="right" valign="top"><a id="a5c57d56e5704ced94de606895a1fe9bd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a5c57d56e5704ced94de606895a1fe9bd">is_nvram</a> () const noexcept</td></tr>
<tr class="memdesc:a5c57d56e5704ced94de606895a1fe9bd"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the map is of non-volatile RAM. <br /></td></tr>
<tr class="separator:a5c57d56e5704ced94de606895a1fe9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abaff8ae673c35e9bb150e3970dd205a5"><td class="memItemLeft" align="right" valign="top"><a id="abaff8ae673c35e9bb150e3970dd205a5"></a>
result&lt; <a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#abaff8ae673c35e9bb150e3970dd205a5">update_map</a> () noexcept</td></tr>
<tr class="memdesc:abaff8ae673c35e9bb150e3970dd205a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Update the size of the memory map to that of any backing section, up to the reservation limit. <br /></td></tr>
<tr class="separator:abaff8ae673c35e9bb150e3970dd205a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9699a9a290ba974184f844c2f6038e8"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#af9699a9a290ba974184f844c2f6038e8">truncate</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a> newsize, bool permit_relocation=false) noexcept</td></tr>
<tr class="separator:af9699a9a290ba974184f844c2f6038e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4cdb7b9643da8c8e2dee0c8b01511e83"><td class="memItemLeft" align="right" valign="top"><a id="a4cdb7b9643da8c8e2dee0c8b01511e83"></a>
result&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a4cdb7b9643da8c8e2dee0c8b01511e83">commit</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> region, section_handle::flag flag=section_handle::flag::readwrite) noexcept</td></tr>
<tr class="memdesc:a4cdb7b9643da8c8e2dee0c8b01511e83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ask the system to commit the system resources to make the memory represented by the buffer available with the given permissions. addr and length should be page aligned (see utils::page_sizes()), if not the returned buffer is the region actually committed. <br /></td></tr>
<tr class="separator:a4cdb7b9643da8c8e2dee0c8b01511e83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b69e8faa8a9e47dec1b1a123c722a3e"><td class="memItemLeft" align="right" valign="top"><a id="a5b69e8faa8a9e47dec1b1a123c722a3e"></a>
result&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a5b69e8faa8a9e47dec1b1a123c722a3e">decommit</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> region) noexcept</td></tr>
<tr class="memdesc:a5b69e8faa8a9e47dec1b1a123c722a3e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ask the system to make the memory represented by the buffer unavailable and to decommit the system resources representing them. addr and length should be page aligned (see utils::page_sizes()), if not the returned buffer is the region actually decommitted. <br /></td></tr>
<tr class="separator:a5b69e8faa8a9e47dec1b1a123c722a3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac35a85e8a6cca721640ddc6b5008e145"><td class="memItemLeft" align="right" valign="top">result&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac35a85e8a6cca721640ddc6b5008e145">zero_memory</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> region) noexcept</td></tr>
<tr class="separator:ac35a85e8a6cca721640ddc6b5008e145"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa25715985351f79e034bb1ef37f74824"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#aa25715985351f79e034bb1ef37f74824">do_not_store</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> region) noexcept</td></tr>
<tr class="separator:aa25715985351f79e034bb1ef37f74824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d8c8f3fcecd58b55316d42799abf6f3"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a4d8c8f3fcecd58b55316d42799abf6f3">read</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept override</td></tr>
<tr class="memdesc:a4d8c8f3fcecd58b55316d42799abf6f3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from the mapped view.  <a href="#a4d8c8f3fcecd58b55316d42799abf6f3">More...</a><br /></td></tr>
<tr class="separator:a4d8c8f3fcecd58b55316d42799abf6f3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00b7e1e99089c2641c45ee824811ebc1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a00b7e1e99089c2641c45ee824811ebc1">write</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept override</td></tr>
<tr class="memdesc:a00b7e1e99089c2641c45ee824811ebc1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data to the mapped view.  <a href="#a00b7e1e99089c2641c45ee824811ebc1">More...</a><br /></td></tr>
<tr class="separator:a00b7e1e99089c2641c45ee824811ebc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d9cbbb7aae98704c6ad97de080c4210"><td class="memItemLeft" align="right" valign="top">virtual size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a4d9cbbb7aae98704c6ad97de080c4210">max_buffers</a> () const noexcept</td></tr>
<tr class="memdesc:a4d9cbbb7aae98704c6ad97de080c4210"><td class="mdescLeft">&#160;</td><td class="mdescRight">The <em>maximum</em> number of buffers which a single read or write syscall can process at a time for this specific open handle. On POSIX, this is known as <code>IOV_MAX</code>.  <a href="#a4d9cbbb7aae98704c6ad97de080c4210">More...</a><br /></td></tr>
<tr class="separator:a4d9cbbb7aae98704c6ad97de080c4210"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71d7636f40607829cacc2c974c4a2a28"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a71d7636f40607829cacc2c974c4a2a28">read</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="memdesc:a71d7636f40607829cacc2c974c4a2a28"><td class="mdescLeft">&#160;</td><td class="mdescRight">Read data from the open handle.  <a href="#a71d7636f40607829cacc2c974c4a2a28">More...</a><br /></td></tr>
<tr class="separator:a71d7636f40607829cacc2c974c4a2a28"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a928a8ab64d5b7d68dc7e2b3e5849df24"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a928a8ab64d5b7d68dc7e2b3e5849df24">read</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>, std::initializer_list&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt; lst, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="separator:a928a8ab64d5b7d68dc7e2b3e5849df24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aefac4710e5617264347f437b04732c01"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#aefac4710e5617264347f437b04732c01">write</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="memdesc:aefac4710e5617264347f437b04732c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Write data to the open handle.  <a href="#aefac4710e5617264347f437b04732c01">More...</a><br /></td></tr>
<tr class="separator:aefac4710e5617264347f437b04732c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add161546c0769941fce4fd9f06934e03"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#add161546c0769941fce4fd9f06934e03">write</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>, std::initializer_list&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a> &gt; lst, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="separator:add161546c0769941fce4fd9f06934e03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a243156928e89b8988a1412f211b3b603"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a243156928e89b8988a1412f211b3b603">barrier</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt; reqs=<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;(), bool wait_for_device=false, bool and_metadata=false, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept=0</td></tr>
<tr class="memdesc:a243156928e89b8988a1412f211b3b603"><td class="mdescLeft">&#160;</td><td class="mdescRight">Issue a write reordering barrier such that writes preceding the barrier will reach storage before writes after this barrier.  <a href="#a243156928e89b8988a1412f211b3b603">More...</a><br /></td></tr>
<tr class="separator:a243156928e89b8988a1412f211b3b603"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a88689b15e6e8b6ce1f945737dee4369e"><td class="memItemLeft" align="right" valign="top">virtual result&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">lock</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>, <a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> bytes, bool exclusive=true, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="memdesc:a88689b15e6e8b6ce1f945737dee4369e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tries to lock the range of bytes specified for shared or exclusive access. Be aware this passes through the same semantics as the underlying OS call, including any POSIX insanity present on your platform:  <a href="#a88689b15e6e8b6ce1f945737dee4369e">More...</a><br /></td></tr>
<tr class="separator:a88689b15e6e8b6ce1f945737dee4369e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad44dcd9c7ca9e7a094dd1bc7c8aa4897"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#ad44dcd9c7ca9e7a094dd1bc7c8aa4897">lock</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="separator:ad44dcd9c7ca9e7a094dd1bc7c8aa4897"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeabd245b6edcfb57779b29c6f2ea9737"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#aeabd245b6edcfb57779b29c6f2ea9737">lock</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt; reqs, <a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a> d=<a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()) noexcept</td></tr>
<tr class="separator:aeabd245b6edcfb57779b29c6f2ea9737"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0a1c4773b9fa7bbd04fee0756075d319"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a0a1c4773b9fa7bbd04fee0756075d319">try_lock</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>, <a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> bytes, bool exclusive=true) noexcept</td></tr>
<tr class="separator:a0a1c4773b9fa7bbd04fee0756075d319"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a96b9da71ee7791fbaaa2470c936ec763"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1io__handle.html#a96b9da71ee7791fbaaa2470c936ec763">unlock</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>, <a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> bytes) noexcept</td></tr>
<tr class="memdesc:a96b9da71ee7791fbaaa2470c936ec763"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unlocks a byte range previously locked.  <a href="#a96b9da71ee7791fbaaa2470c936ec763">More...</a><br /></td></tr>
<tr class="separator:a96b9da71ee7791fbaaa2470c936ec763"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a657c12a309cf02bf2351bfcc7f41463b"><td class="memItemLeft" align="right" valign="top"><a id="a657c12a309cf02bf2351bfcc7f41463b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a657c12a309cf02bf2351bfcc7f41463b">swap</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html">handle</a> &amp;o) noexcept</td></tr>
<tr class="memdesc:a657c12a309cf02bf2351bfcc7f41463b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Swap with another instance. <br /></td></tr>
<tr class="separator:a657c12a309cf02bf2351bfcc7f41463b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a616a67222676af5ec5b3aa94d7c02428"><td class="memItemLeft" align="right" valign="top">virtual result&lt; <a class="el" href="classafio__v2__xxx_1_1handle.html#a6c4df2242ece6f63ba7ef4e6baafaca6">path_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a616a67222676af5ec5b3aa94d7c02428">current_path</a> () const noexcept</td></tr>
<tr class="separator:a616a67222676af5ec5b3aa94d7c02428"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a54790e954f57372b87b095451cc79c38"><td class="memItemLeft" align="right" valign="top">result&lt; <a class="el" href="classafio__v2__xxx_1_1handle.html">handle</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a54790e954f57372b87b095451cc79c38">clone</a> () const noexcept</td></tr>
<tr class="separator:a54790e954f57372b87b095451cc79c38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4194a05dd9694d2c47d5a45f925db1d7"><td class="memItemLeft" align="right" valign="top"><a id="a4194a05dd9694d2c47d5a45f925db1d7"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a4194a05dd9694d2c47d5a45f925db1d7">is_valid</a> () const noexcept</td></tr>
<tr class="memdesc:a4194a05dd9694d2c47d5a45f925db1d7"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the handle is valid (and usually open) <br /></td></tr>
<tr class="separator:a4194a05dd9694d2c47d5a45f925db1d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a349e001cbe359d4e7a8f066c69e9361e"><td class="memItemLeft" align="right" valign="top"><a id="a349e001cbe359d4e7a8f066c69e9361e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a349e001cbe359d4e7a8f066c69e9361e">is_readable</a> () const noexcept</td></tr>
<tr class="memdesc:a349e001cbe359d4e7a8f066c69e9361e"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the handle is readable. <br /></td></tr>
<tr class="separator:a349e001cbe359d4e7a8f066c69e9361e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5be9a526bc5c1be758b0cfc36a262f6e"><td class="memItemLeft" align="right" valign="top"><a id="a5be9a526bc5c1be758b0cfc36a262f6e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a5be9a526bc5c1be758b0cfc36a262f6e">is_writable</a> () const noexcept</td></tr>
<tr class="memdesc:a5be9a526bc5c1be758b0cfc36a262f6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the handle is writable. <br /></td></tr>
<tr class="separator:a5be9a526bc5c1be758b0cfc36a262f6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae33d4d0faa1377cd371bd6a0ae0769ae"><td class="memItemLeft" align="right" valign="top"><a id="ae33d4d0faa1377cd371bd6a0ae0769ae"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#ae33d4d0faa1377cd371bd6a0ae0769ae">is_append_only</a> () const noexcept</td></tr>
<tr class="memdesc:ae33d4d0faa1377cd371bd6a0ae0769ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the handle is append only. <br /></td></tr>
<tr class="separator:ae33d4d0faa1377cd371bd6a0ae0769ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1610ec7fb0a41f039e3e17e0dc467ab"><td class="memItemLeft" align="right" valign="top">virtual result&lt; void &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#af1610ec7fb0a41f039e3e17e0dc467ab">set_append_only</a> (bool enable) noexcept</td></tr>
<tr class="separator:af1610ec7fb0a41f039e3e17e0dc467ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af42904dd49b5517a303e7cb256eae939"><td class="memItemLeft" align="right" valign="top"><a id="af42904dd49b5517a303e7cb256eae939"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#af42904dd49b5517a303e7cb256eae939">is_overlapped</a> () const noexcept</td></tr>
<tr class="memdesc:af42904dd49b5517a303e7cb256eae939"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if overlapped. <br /></td></tr>
<tr class="separator:af42904dd49b5517a303e7cb256eae939"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac62f621c42be6eeb8d9a5700da367f9"><td class="memItemLeft" align="right" valign="top"><a id="aac62f621c42be6eeb8d9a5700da367f9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#aac62f621c42be6eeb8d9a5700da367f9">is_seekable</a> () const noexcept</td></tr>
<tr class="memdesc:aac62f621c42be6eeb8d9a5700da367f9"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if seekable. <br /></td></tr>
<tr class="separator:aac62f621c42be6eeb8d9a5700da367f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:affb10caeeca67b804695b7378be29e23"><td class="memItemLeft" align="right" valign="top"><a id="affb10caeeca67b804695b7378be29e23"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#affb10caeeca67b804695b7378be29e23">requires_aligned_io</a> () const noexcept</td></tr>
<tr class="memdesc:affb10caeeca67b804695b7378be29e23"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if requires aligned i/o. <br /></td></tr>
<tr class="separator:affb10caeeca67b804695b7378be29e23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a526c300d421155ccc071b04db4bca65d"><td class="memItemLeft" align="right" valign="top"><a id="a526c300d421155ccc071b04db4bca65d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a526c300d421155ccc071b04db4bca65d">is_regular</a> () const noexcept</td></tr>
<tr class="memdesc:a526c300d421155ccc071b04db4bca65d"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a regular file or device. <br /></td></tr>
<tr class="separator:a526c300d421155ccc071b04db4bca65d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa53d88105df8c6be01be649829a65b14"><td class="memItemLeft" align="right" valign="top"><a id="aa53d88105df8c6be01be649829a65b14"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#aa53d88105df8c6be01be649829a65b14">is_directory</a> () const noexcept</td></tr>
<tr class="memdesc:aa53d88105df8c6be01be649829a65b14"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a directory. <br /></td></tr>
<tr class="separator:aa53d88105df8c6be01be649829a65b14"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c777f045dc2b0248b891d6e7811d152"><td class="memItemLeft" align="right" valign="top"><a id="a3c777f045dc2b0248b891d6e7811d152"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a3c777f045dc2b0248b891d6e7811d152">is_symlink</a> () const noexcept</td></tr>
<tr class="memdesc:a3c777f045dc2b0248b891d6e7811d152"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a symlink. <br /></td></tr>
<tr class="separator:a3c777f045dc2b0248b891d6e7811d152"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab790af4654f5455d8c5e1f1d397543ca"><td class="memItemLeft" align="right" valign="top"><a id="ab790af4654f5455d8c5e1f1d397543ca"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#ab790af4654f5455d8c5e1f1d397543ca">is_multiplexer</a> () const noexcept</td></tr>
<tr class="memdesc:ab790af4654f5455d8c5e1f1d397543ca"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a multiplexer like BSD kqueues, Linux epoll or Windows IOCP. <br /></td></tr>
<tr class="separator:ab790af4654f5455d8c5e1f1d397543ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad02958278a0d92e4ec4fb864ba1eb35b"><td class="memItemLeft" align="right" valign="top"><a id="ad02958278a0d92e4ec4fb864ba1eb35b"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#ad02958278a0d92e4ec4fb864ba1eb35b">is_process</a> () const noexcept</td></tr>
<tr class="memdesc:ad02958278a0d92e4ec4fb864ba1eb35b"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a process. <br /></td></tr>
<tr class="separator:ad02958278a0d92e4ec4fb864ba1eb35b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5b2859fabe04dbfc37020daed618257"><td class="memItemLeft" align="right" valign="top"><a id="ac5b2859fabe04dbfc37020daed618257"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#ac5b2859fabe04dbfc37020daed618257">is_section</a> () const noexcept</td></tr>
<tr class="memdesc:ac5b2859fabe04dbfc37020daed618257"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if a memory section. <br /></td></tr>
<tr class="separator:ac5b2859fabe04dbfc37020daed618257"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00f42a44de714feb3ed86dd0a175e69c"><td class="memItemLeft" align="right" valign="top"><a id="a00f42a44de714feb3ed86dd0a175e69c"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a00f42a44de714feb3ed86dd0a175e69c">kernel_caching</a> () const noexcept</td></tr>
<tr class="memdesc:a00f42a44de714feb3ed86dd0a175e69c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Kernel cache strategy used by this handle. <br /></td></tr>
<tr class="separator:a00f42a44de714feb3ed86dd0a175e69c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a71137cb82edd9a1bcb24f64886b5826d"><td class="memItemLeft" align="right" valign="top"><a id="a71137cb82edd9a1bcb24f64886b5826d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a71137cb82edd9a1bcb24f64886b5826d">are_reads_from_cache</a> () const noexcept</td></tr>
<tr class="memdesc:a71137cb82edd9a1bcb24f64886b5826d"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if the handle uses the kernel page cache for reads. <br /></td></tr>
<tr class="separator:a71137cb82edd9a1bcb24f64886b5826d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97ffbbf53f51549549efef0b49e125dc"><td class="memItemLeft" align="right" valign="top"><a id="a97ffbbf53f51549549efef0b49e125dc"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a97ffbbf53f51549549efef0b49e125dc">are_writes_durable</a> () const noexcept</td></tr>
<tr class="memdesc:a97ffbbf53f51549549efef0b49e125dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if writes are safely on storage on completion. <br /></td></tr>
<tr class="separator:a97ffbbf53f51549549efef0b49e125dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3fc7db93fac699f5ecad453642ed314e"><td class="memItemLeft" align="right" valign="top"><a id="a3fc7db93fac699f5ecad453642ed314e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a3fc7db93fac699f5ecad453642ed314e">are_safety_fsyncs_issued</a> () const noexcept</td></tr>
<tr class="memdesc:a3fc7db93fac699f5ecad453642ed314e"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if issuing safety fsyncs is on. <br /></td></tr>
<tr class="separator:a3fc7db93fac699f5ecad453642ed314e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3d876f5996605158fd6a0582adadad6"><td class="memItemLeft" align="right" valign="top"><a id="ab3d876f5996605158fd6a0582adadad6"></a>
flag&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#ab3d876f5996605158fd6a0582adadad6">flags</a> () const noexcept</td></tr>
<tr class="memdesc:ab3d876f5996605158fd6a0582adadad6"><td class="mdescLeft">&#160;</td><td class="mdescRight">The flags this handle was opened with. <br /></td></tr>
<tr class="separator:ab3d876f5996605158fd6a0582adadad6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a875440f1b368472f1840c70c266f3a48"><td class="memItemLeft" align="right" valign="top"><a id="a875440f1b368472f1840c70c266f3a48"></a>
<a class="el" href="structafio__v2__xxx_1_1native__handle__type.html">native_handle_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1handle.html#a875440f1b368472f1840c70c266f3a48">native_handle</a> () const noexcept</td></tr>
<tr class="memdesc:a875440f1b368472f1840c70c266f3a48"><td class="mdescLeft">&#160;</td><td class="mdescRight">The native handle used by this handle. <br /></td></tr>
<tr class="separator:a875440f1b368472f1840c70c266f3a48"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a74e5785071e0d89b51edcbc9bc6089db"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a74e5785071e0d89b51edcbc9bc6089db">barrier</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a> req, bool evict=false) noexcept</td></tr>
<tr class="separator:a74e5785071e0d89b51edcbc9bc6089db"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c43d182b257682d320f12f6e6be30b3"><td class="memItemLeft" align="right" valign="top">static result&lt; <a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#a9c43d182b257682d320f12f6e6be30b3">map</a> (<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a> bytes, section_handle::flag _flag=section_handle::flag::readwrite) noexcept</td></tr>
<tr class="separator:a9c43d182b257682d320f12f6e6be30b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab2f2816821bcde22353855873a34c48"><td class="memItemLeft" align="right" valign="top">static result&lt; <a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#aab2f2816821bcde22353855873a34c48">map</a> (<a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> &amp;<a class="el" href="classafio__v2__xxx_1_1map__handle.html#ab8a43a5388161f629fef5ee7256dbbc8">section</a>, <a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a> bytes=0, <a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a> <a class="el" href="classafio__v2__xxx_1_1map__handle.html#ac049430769b0fa1d06c93160cef5a2f9">offset</a>=0, section_handle::flag _flag=section_handle::flag::readwrite) noexcept</td></tr>
<tr class="separator:aab2f2816821bcde22353855873a34c48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae16cb0af9b96f90f87f42318f7d35e65"><td class="memItemLeft" align="right" valign="top"><a id="ae16cb0af9b96f90f87f42318f7d35e65"></a>
static result&lt; span&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ae16cb0af9b96f90f87f42318f7d35e65">prefetch</a> (span&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt; regions) noexcept</td></tr>
<tr class="memdesc:ae16cb0af9b96f90f87f42318f7d35e65"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ask the system to begin to asynchronously prefetch the span of memory regions given, returning the regions actually prefetched. Note that on Windows 7 or earlier the system call to implement this was not available, and so you will see an empty span returned. <br /></td></tr>
<tr class="separator:ae16cb0af9b96f90f87f42318f7d35e65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab569da5c3ffa64200f8b10dbe683bbc8"><td class="memItemLeft" align="right" valign="top">static result&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classafio__v2__xxx_1_1map__handle.html#ab569da5c3ffa64200f8b10dbe683bbc8">prefetch</a> (<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> region) noexcept</td></tr>
<tr class="separator:ab569da5c3ffa64200f8b10dbe683bbc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a735b3ed30ff1387c9af82dccb6147545"><td class="memItemLeft" align="right" valign="top"><a id="a735b3ed30ff1387c9af82dccb6147545"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>map_handle</b> (<a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> *<a class="el" href="classafio__v2__xxx_1_1map__handle.html#ab8a43a5388161f629fef5ee7256dbbc8">section</a>)</td></tr>
<tr class="separator:a735b3ed30ff1387c9af82dccb6147545"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:af776fe76eb1e2e493d9d2ddbde0b150c"><td class="memItemLeft" align="right" valign="top"><a id="af776fe76eb1e2e493d9d2ddbde0b150c"></a>
<a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>_section</b> {nullptr}</td></tr>
<tr class="separator:af776fe76eb1e2e493d9d2ddbde0b150c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00181d29f9a6e646bd9b07e0c35e9a8b"><td class="memItemLeft" align="right" valign="top"><a id="a00181d29f9a6e646bd9b07e0c35e9a8b"></a>
byte *&#160;</td><td class="memItemRight" valign="bottom"><b>_addr</b> {nullptr}</td></tr>
<tr class="separator:a00181d29f9a6e646bd9b07e0c35e9a8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b7bae1f24ec1ae96822fb865bfd0ea5"><td class="memItemLeft" align="right" valign="top"><a id="a5b7bae1f24ec1ae96822fb865bfd0ea5"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_offset</b> {0}</td></tr>
<tr class="separator:a5b7bae1f24ec1ae96822fb865bfd0ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d3f93b7f145af54e62e0401dc57e600"><td class="memItemLeft" align="right" valign="top"><a id="a1d3f93b7f145af54e62e0401dc57e600"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_reservation</b> {0}</td></tr>
<tr class="separator:a1d3f93b7f145af54e62e0401dc57e600"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adffdff916ccf13d88a02ddb6b6a421c8"><td class="memItemLeft" align="right" valign="top"><a id="adffdff916ccf13d88a02ddb6b6a421c8"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_length</b> {0}</td></tr>
<tr class="separator:adffdff916ccf13d88a02ddb6b6a421c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdcdfc9d1ed9193bff10f3a03257b677"><td class="memItemLeft" align="right" valign="top"><a id="abdcdfc9d1ed9193bff10f3a03257b677"></a>
section_handle::flag&#160;</td><td class="memItemRight" valign="bottom"><b>_flag</b> {section_handle::flag::none}</td></tr>
<tr class="separator:abdcdfc9d1ed9193bff10f3a03257b677"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af024e3d92d9a01ac367734e9cdc517fb"><td class="memItemLeft" align="right" valign="top"><a id="af024e3d92d9a01ac367734e9cdc517fb"></a>
<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9e">caching</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_caching</b> {<a class="el" href="classafio__v2__xxx_1_1handle.html#a6f7e37c73271968271c2342023f58c9ea334c4a4c42fdb79d7ebc3e73b517e6f8">caching::none</a>}</td></tr>
<tr class="separator:af024e3d92d9a01ac367734e9cdc517fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac46e0a296c31fcd0a996a79d78647fb6"><td class="memItemLeft" align="right" valign="top"><a id="ac46e0a296c31fcd0a996a79d78647fb6"></a>
flag&#160;</td><td class="memItemRight" valign="bottom"><b>_flags</b> {flag::none}</td></tr>
<tr class="separator:ac46e0a296c31fcd0a996a79d78647fb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a771ef2bf39ad784eb6265dde077792ad"><td class="memItemLeft" align="right" valign="top"><a id="a771ef2bf39ad784eb6265dde077792ad"></a>
<a class="el" href="structafio__v2__xxx_1_1native__handle__type.html">native_handle_type</a>&#160;</td><td class="memItemRight" valign="bottom"><b>_v</b></td></tr>
<tr class="separator:a771ef2bf39ad784eb6265dde077792ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a04d5b12318493f32de67854714001ab2"><td class="memItemLeft" align="right" valign="top"><a id="a04d5b12318493f32de67854714001ab2"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>mapped_file_handle</b></td></tr>
<tr class="separator:a04d5b12318493f32de67854714001ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A handle to a memory mapped region of memory, either backed by the system page file or by a section. </p>
<p>An important concept to realise with mapped regions is that they can far exceed the size of their backing storage. This allows one to reserve address space for a file which may grow in the future. This is how <code>mapped_file_handle</code> is implemented to provide very fast memory mapped file i/o of a potentially growing file.</p>
<p>The size you specify when creating the map handle is the address space reservation. The map's <code>length()</code> will return the last known <b>valid</b> length of the mapped data i.e. the backing storage's length at the time of construction. This length is used by <code>read()</code> and <code>write()</code> to prevent reading and writing off the end of the mapped region. You can update this length to the backing storage's length using <code>update_map()</code> up to the reservation limit.</p>
<p>You can attempt to modify the address space reservation after creation using <code>truncate()</code>. If successful, this will be more efficient than tearing down the map and creating a new larger map.</p>
<p>The native handle returned by this map handle is always that of the backing storage, but closing this handle does not close that of the backing storage, nor does releasing this handle release that of the backing storage. Locking byte ranges of this handle is therefore equal to locking byte ranges in the original backing storage, which can be very useful.</p>
<h2>Barriers:</h2>
<p><code>map_handle</code>, because it implements <code>io_handle</code>, implements <code>barrier()</code> in a very conservative way to account for OS differences i.e. it calls <code>msync()</code>, and then the <code>barrier()</code> implementation for the backing file (probably <code>fsync()</code> or equivalent on most platforms, which synchronises the entire file).</p>
<p>This is vast overkill if you are using non-volatile RAM, so a special <em>inlined</em> <code>barrier()</code> implementation taking a single buffer and no other arguments is also provided. This calls the appropriate architecture-specific instructions to cause the CPU to write all preceding writes out of the write buffers and CPU caches to main memory, so for Intel CPUs this would be <code>CLWB &lt;each cache line&gt;; SFENCE;</code>. As this is inlined, it ought to produce optimal code. If your CPU does not support the requisite instructions (or AFIO has not added support), and empty buffer will be returned to indicate that nothing was barriered, same as the normal <code>barrier()</code> function.</p>
<dl class="section see"><dt>See also</dt><dd><code>mapped_file_handle</code>, <code>algorithm::mapped_span</code> </dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a243156928e89b8988a1412f211b3b603"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a243156928e89b8988a1412f211b3b603">&#9670;&nbsp;</a></span>barrier() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>&gt; afio_v2_xxx::io_handle::barrier </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em> = <code><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt;&#160;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>&#160;&gt;()</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>wait_for_device</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>and_metadata</em> = <code>false</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Issue a write reordering barrier such that writes preceding the barrier will reach storage before writes after this barrier. </p>
<dl class="section warning"><dt>Warning</dt><dd><b>Assume that this call is a no-op</b>. It is not reliably implemented in many common use cases, for example if your code is running inside a LXC container, or if the user has mounted the filing system with non-default options. Instead open the handle with <code>caching::reads</code> which means that all writes form a strict sequential order not completing until acknowledged by the storage device. Filing system can and do use different algorithms to give much better performance with <code>caching::reads</code>, some (e.g. ZFS) spectacularly better.</dd>
<dd>
Let me repeat again: consider this call to be a <b>hint</b> to poke the kernel with a stick to go start to do some work sooner rather than later. <b>It may be ignored entirely</b>.</dd>
<dd>
For portability, you can only assume that barriers write order for a single handle instance. You cannot assume that barriers write order across multiple handles to the same inode, or across processes.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The buffers barriered, which may not be the buffers input. The size of each scatter-gather buffer is updated with the number of bytes of that buffer barriered. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reqs</td><td>A scatter-gather and offset request for what range to barrier. May be ignored on some platforms which always write barrier the entire file. Supplying a default initialised reqs write barriers the entire file. </td></tr>
    <tr><td class="paramname">wait_for_device</td><td>True if you want the call to wait until data reaches storage and that storage has acknowledged the data is physically written. Slow. </td></tr>
    <tr><td class="paramname">and_metadata</td><td>True if you want the call to sync the metadata for retrieving the writes before the barrier after a sudden power loss event. Slow. Setting this to false enables much faster performance, especially on non-volatile memory. </td></tr>
    <tr><td class="paramname">d</td><td>An optional deadline by which the i/o must complete, else it is cancelled. Note function may return significantly after this deadline if the i/o takes long to cancel. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX fdatasync() or Windows NtFlushBuffersFileEx() can return. </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>None. </dd></dl>

</div>
</div>
<a id="a74e5785071e0d89b51edcbc9bc6089db"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74e5785071e0d89b51edcbc9bc6089db">&#9670;&nbsp;</a></span>barrier() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a> afio_v2_xxx::map_handle::barrier </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a>&#160;</td>
          <td class="paramname"><em>req</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>evict</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Lightweight inlined barrier which causes the CPU to write out all buffered writes and dirty cache lines in the request to main memory. </p><dl class="section return"><dt>Returns</dt><dd>The cache lines actually barriered. This may be empty. This function does not return an error. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">req</td><td>The range of cache lines to write barrier. </td></tr>
    <tr><td class="paramname">evict</td><td>Whether to also evict the cache lines from CPU caches, useful if they will not be used again.</td></tr>
  </table>
  </dd>
</dl>
<p>Upon return, one knows that memory in the returned buffer has been barriered (it may be empty if there is no support for this operation in AFIO, or if the current CPU does not support this operation). You may find the <code>is_nvram()</code> observer of particular use here. </p>
<div class="fragment"><div class="line"><a name="l00364"></a><span class="lineno">  364</span>&#160;  {</div><div class="line"><a name="l00365"></a><span class="lineno">  365</span>&#160;    const_buffer_type ret{(<a class="code" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html#a1a57197235e88675736a032578a3fd0c">const_buffer_type::pointer</a>)(((uintptr_t) req.data) &amp; 31), 0};</div><div class="line"><a name="l00366"></a><span class="lineno">  366</span>&#160;    ret.<a class="code" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html#af355ceae82988f25cfa34d595550cbcf">len</a> = req.data + req.len - ret.data;</div><div class="line"><a name="l00367"></a><span class="lineno">  367</span>&#160;    <span class="keywordflow">for</span>(<a class="code" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html#a1a57197235e88675736a032578a3fd0c">const_buffer_type::pointer</a> addr = ret.data; addr &lt; ret.data + ret.len; addr += 32)</div><div class="line"><a name="l00368"></a><span class="lineno">  368</span>&#160;    {</div><div class="line"><a name="l00369"></a><span class="lineno">  369</span>&#160;      <span class="comment">// Slightly UB ...</span></div><div class="line"><a name="l00370"></a><span class="lineno">  370</span>&#160;      <span class="keyword">auto</span> *p = <span class="keyword">reinterpret_cast&lt;</span><span class="keyword">const </span>persistent&lt;byte&gt; *<span class="keyword">&gt;</span>(addr);</div><div class="line"><a name="l00371"></a><span class="lineno">  371</span>&#160;      <span class="keywordflow">if</span>(memory_flush_none == p-&gt;flush(evict ? memory_flush_evict : memory_flush_retain))</div><div class="line"><a name="l00372"></a><span class="lineno">  372</span>&#160;      {</div><div class="line"><a name="l00373"></a><span class="lineno">  373</span>&#160;        req.len = 0;</div><div class="line"><a name="l00374"></a><span class="lineno">  374</span>&#160;        <span class="keywordflow">break</span>;</div><div class="line"><a name="l00375"></a><span class="lineno">  375</span>&#160;      }</div><div class="line"><a name="l00376"></a><span class="lineno">  376</span>&#160;    }</div><div class="line"><a name="l00377"></a><span class="lineno">  377</span>&#160;    <span class="keywordflow">return</span> ret;</div><div class="line"><a name="l00378"></a><span class="lineno">  378</span>&#160;  }</div><div class="ttc" id="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type_html_a1a57197235e88675736a032578a3fd0c"><div class="ttname"><a href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html#a1a57197235e88675736a032578a3fd0c">afio_v2_xxx::io_handle::const_buffer_type::pointer</a></div><div class="ttdeci">const byte * pointer</div><div class="ttdoc">Type of the pointer to memory. </div><div class="ttdef"><b>Definition:</b> io_handle.hpp:70</div></div>
<div class="ttc" id="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type_html_af355ceae82988f25cfa34d595550cbcf"><div class="ttname"><a href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html#af355ceae82988f25cfa34d595550cbcf">afio_v2_xxx::io_handle::const_buffer_type::len</a></div><div class="ttdeci">size_type len</div><div class="ttdoc">The number of bytes to write from this address. Try to make this a 64 byte multiple, or ideally, a whole multiple of page_size(). </div><div class="ttdef"><b>Definition:</b> io_handle.hpp:77</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a54790e954f57372b87b095451cc79c38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a54790e954f57372b87b095451cc79c38">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="classafio__v2__xxx_1_1handle.html">handle</a>&gt; afio_v2_xxx::handle::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Clone this handle (copy constructor is disabled to avoid accidental copying)</p>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX dup() or DuplicateHandle() can return. </dd></dl>

</div>
</div>
<a id="a616a67222676af5ec5b3aa94d7c02428"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a616a67222676af5ec5b3aa94d7c02428">&#9670;&nbsp;</a></span>current_path()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual result&lt;<a class="el" href="classafio__v2__xxx_1_1handle.html#a6c4df2242ece6f63ba7ef4e6baafaca6">path_type</a>&gt; afio_v2_xxx::handle::current_path </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the current path of the open handle as said by the operating system. Note that you are NOT guaranteed that any path refreshed bears any resemblance to the original, some operating systems will return some different path which still reaches the same inode via some other route e.g. hardlinks, dereferenced symbolic links, etc. Windows and Linux correctly track changes to the specific path the handle was opened with, not getting confused by other hard links. MacOS nearly gets it right, but under some circumstances e.g. renaming may switch to a different hard link's path which is almost certainly a bug.</p>
<p>If AFIO was not able to determine the current path for this open handle e.g. the inode has been unlinked, it returns an empty path. Be aware that FreeBSD can return an empty (deleted) path for file inodes no longer cached by the kernel path cache, AFIO cannot detect the difference. FreeBSD will also return any path leading to the inode if it is hard linked. FreeBSD does implement path retrieval for directory inodes correctly however, and see <code>algorithm::stablized_path&lt;T&gt;</code> for a handle adapter which makes use of that.</p>
<p>On Linux if <code>/proc</code> is not mounted, this call fails with an error. All APIs in AFIO which require the use of <code>current_path()</code> can be told to not use it e.g. <code>flag::disable_safety_unlinks</code>. It is up to you to detect if <code>current_path()</code> is not working, and to change how you call AFIO appropriately.</p>
<dl class="section warning"><dt>Warning</dt><dd>This call is expensive, it always asks the kernel for the current path, and no checking is done to ensure what the kernel returns is accurate or even sensible. Be aware that despite these precautions, paths are unstable and <b>can change randomly at any moment</b>. Most code written to use absolute file systems paths is <b>racy</b>, so don't do it, use <code>path_handle</code> to fix a base location on the file system and work from that anchor instead!</dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>At least one malloc for the <code>path_type</code>, likely several more. </dd></dl>
<dl class="section see"><dt>See also</dt><dd><code>algorithm::cached_parent_handle_adapter&lt;T&gt;</code> which overrides this with an implementation based on retrieving the current path of a cached handle to the parent directory. On platforms with instability or failure to retrieve the correct current path for regular files, the cached parent handle adapter works around the problem by taking advantage of directory inodes not having the same instability problems on any platform. </dd></dl>

</div>
</div>
<a id="aa25715985351f79e034bb1ef37f74824"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa25715985351f79e034bb1ef37f74824">&#9670;&nbsp;</a></span>do_not_store()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a>&gt; afio_v2_xxx::map_handle::do_not_store </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a>&#160;</td>
          <td class="paramname"><em>region</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Ask the system to unset the dirty flag for the memory represented by the buffer. This will prevent any changes not yet sent to the backing storage from being sent in the future, also if the system kicks out this page and reloads it you may see some edition of the underlying storage instead of what was here. addr and length should be page aligned (see utils::page_sizes()), if not the returned buffer is the region actually undirtied.</p>
<dl class="section warning"><dt>Warning</dt><dd>This function destroys the contents of unwritten pages in the region in a totally unpredictable fashion. Only use it if you don't care how much of the region reaches physical storage or not. Note that the region is not necessarily zeroed, and may be randomly zeroed.</dd></dl>
<dl class="section note"><dt>Note</dt><dd>Microsoft Windows does not support unsetting the dirty flag on file backed maps, so on Windows this call does nothing. </dd></dl>

</div>
</div>
<a id="a88689b15e6e8b6ce1f945737dee4369e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a88689b15e6e8b6ce1f945737dee4369e">&#9670;&nbsp;</a></span>lock() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual result&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a>&gt; afio_v2_xxx::io_handle::lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>exclusive</em> = <code>true</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Tries to lock the range of bytes specified for shared or exclusive access. Be aware this passes through the same semantics as the underlying OS call, including any POSIX insanity present on your platform: </p>
<ul>
<li>Any fd closed on an inode must release all byte range locks on that inode for all other fds. If your OS isn't new enough to support the non-insane lock API, <code>flag::byte_lock_insanity</code> will be set in flags() after the first call to this function.</li>
<li>Threads replace each other's locks, indeed locks replace each other's locks.</li>
</ul>
<p>You almost cetainly should use your choice of an <code>algorithm::shared_fs_mutex::*</code> instead of this as those are more portable and performant.</p>
<dl class="section warning"><dt>Warning</dt><dd>This is a low-level API which you should not use directly in portable code. Another issue is that atomic lock upgrade/downgrade, if your platform implements that (you should assume it does not in portable code), means that on POSIX you need to <em>release</em> the old <code>extent_guard</code> after creating a new one over the same byte range, otherwise the old <code>extent_guard</code>'s destructor will simply unlock the range entirely. On Windows however upgrade/downgrade locks overlay, so on that platform you must <em>not</em> release the old <code>extent_guard</code>. Look into <code>algorithm::shared_fs_mutex::safe_byte_ranges</code> for a portable solution.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>An extent guard, the destruction of which will call unlock(). </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>The offset to lock. Note that on POSIX the top bit is always cleared before use as POSIX uses signed transport for offsets. If you want an advisory rather than mandatory lock on Windows, one technique is to force top bit set so the region you lock is not the one you will i/o - obviously this reduces maximum file size to (2^63)-1. </td></tr>
    <tr><td class="paramname">bytes</td><td>The number of bytes to lock. Zero means lock the entire file using any more efficient alternative algorithm where available on your platform (specifically, on BSD and OS X use flock() for non-insane semantics). </td></tr>
    <tr><td class="paramname">exclusive</td><td>Whether the lock is to be exclusive. </td></tr>
    <tr><td class="paramname">d</td><td>An optional deadline by which the lock must complete, else it is cancelled. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX fcntl() can return, <code>errc::timed_out</code>, <code>errc::not_supported</code> may be returned if deadline i/o is not possible with this particular handle configuration (e.g. non-overlapped HANDLE on Windows). </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>The default synchronous implementation in file_handle performs no memory allocation. The asynchronous implementation in async_file_handle performs one calloc and one free. </dd></dl>

</div>
</div>
<a id="ad44dcd9c7ca9e7a094dd1bc7c8aa4897"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad44dcd9c7ca9e7a094dd1bc7c8aa4897">&#9670;&nbsp;</a></span>lock() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a>&gt; afio_v2_xxx::io_handle::lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00424"></a><span class="lineno">  424</span>&#160;  {</div><div class="line"><a name="l00425"></a><span class="lineno">  425</span>&#160;    <span class="keywordtype">size_t</span> bytes = 0;</div><div class="line"><a name="l00426"></a><span class="lineno">  426</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;i : reqs.buffers)</div><div class="line"><a name="l00427"></a><span class="lineno">  427</span>&#160;    {</div><div class="line"><a name="l00428"></a><span class="lineno">  428</span>&#160;      <span class="keywordflow">if</span>(bytes + i.len &lt; bytes)</div><div class="line"><a name="l00429"></a><span class="lineno">  429</span>&#160;      {</div><div class="line"><a name="l00430"></a><span class="lineno">  430</span>&#160;        <span class="keywordflow">return</span> errc::value_too_large;</div><div class="line"><a name="l00431"></a><span class="lineno">  431</span>&#160;      }</div><div class="line"><a name="l00432"></a><span class="lineno">  432</span>&#160;      bytes += i.len;</div><div class="line"><a name="l00433"></a><span class="lineno">  433</span>&#160;    }</div><div class="line"><a name="l00434"></a><span class="lineno">  434</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">lock</a>(reqs.offset, bytes, <span class="keyword">false</span>, d);</div><div class="line"><a name="l00435"></a><span class="lineno">  435</span>&#160;  }</div><div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a88689b15e6e8b6ce1f945737dee4369e"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">afio_v2_xxx::io_handle::lock</a></div><div class="ttdeci">virtual result&lt; extent_guard &gt; lock(extent_type offset, extent_type bytes, bool exclusive=true, deadline d=deadline()) noexcept</div><div class="ttdoc">Tries to lock the range of bytes specified for shared or exclusive access. Be aware this passes throu...</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="aeabd245b6edcfb57779b29c6f2ea9737"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeabd245b6edcfb57779b29c6f2ea9737">&#9670;&nbsp;</a></span>lock() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a>&gt; afio_v2_xxx::io_handle::lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00438"></a><span class="lineno">  438</span>&#160;  {</div><div class="line"><a name="l00439"></a><span class="lineno">  439</span>&#160;    <span class="keywordtype">size_t</span> bytes = 0;</div><div class="line"><a name="l00440"></a><span class="lineno">  440</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;i : reqs.buffers)</div><div class="line"><a name="l00441"></a><span class="lineno">  441</span>&#160;    {</div><div class="line"><a name="l00442"></a><span class="lineno">  442</span>&#160;      <span class="keywordflow">if</span>(bytes + i.len &lt; bytes)</div><div class="line"><a name="l00443"></a><span class="lineno">  443</span>&#160;      {</div><div class="line"><a name="l00444"></a><span class="lineno">  444</span>&#160;        <span class="keywordflow">return</span> errc::value_too_large;</div><div class="line"><a name="l00445"></a><span class="lineno">  445</span>&#160;      }</div><div class="line"><a name="l00446"></a><span class="lineno">  446</span>&#160;      bytes += i.len;</div><div class="line"><a name="l00447"></a><span class="lineno">  447</span>&#160;    }</div><div class="line"><a name="l00448"></a><span class="lineno">  448</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">lock</a>(reqs.offset, bytes, <span class="keyword">true</span>, d);</div><div class="line"><a name="l00449"></a><span class="lineno">  449</span>&#160;  }</div><div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a88689b15e6e8b6ce1f945737dee4369e"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">afio_v2_xxx::io_handle::lock</a></div><div class="ttdeci">virtual result&lt; extent_guard &gt; lock(extent_type offset, extent_type bytes, bool exclusive=true, deadline d=deadline()) noexcept</div><div class="ttdoc">Tries to lock the range of bytes specified for shared or exclusive access. Be aware this passes throu...</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a9c43d182b257682d320f12f6e6be30b3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9c43d182b257682d320f12f6e6be30b3">&#9670;&nbsp;</a></span>map() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static result&lt;<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a>&gt; afio_v2_xxx::map_handle::map </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">section_handle::flag&#160;</td>
          <td class="paramname"><em>_flag</em> = <code>section_handle::flag::readwrite</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create new memory and map it into view. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">bytes</td><td>How many bytes to create and map. Typically will be rounded up to a multiple of the page size (see <code>utils::page_sizes()</code>) on POSIX, 64Kb on Windows. </td></tr>
    <tr><td class="paramname">_flag</td><td>The permissions with which to map the view. <code>flag::none</code> can be useful for reserving virtual address space without committing system resources, use commit() to later change availability of memory.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section note"><dt>Note</dt><dd>On Microsoft Windows this constructor uses the faster VirtualAlloc() which creates less versatile page backed memory. If you want anonymous memory allocated from a paging file backed section instead, create a page file backed section and then a mapped view from that using the other constructor. This makes available all those very useful VM tricks Windows can do with section mapped memory which VirtualAlloc() memory cannot do.</dd></dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX mmap() or VirtualAlloc() can return. </dd></dl>

</div>
</div>
<a id="aab2f2816821bcde22353855873a34c48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab2f2816821bcde22353855873a34c48">&#9670;&nbsp;</a></span>map() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static result&lt;<a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a>&gt; afio_v2_xxx::map_handle::map </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1section__handle.html">section_handle</a> &amp;&#160;</td>
          <td class="paramname"><em>section</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td>
          <td class="paramname"><em>bytes</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">section_handle::flag&#160;</td>
          <td class="paramname"><em>_flag</em> = <code>section_handle::flag::readwrite</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Create a memory mapped view of a backing storage, optionally reserving additional address space for later growth. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">section</td><td>A memory section handle specifying the backing storage to use. </td></tr>
    <tr><td class="paramname">bytes</td><td>How many bytes to reserve (0 = the size of the section). Rounded up to nearest 64Kb on Windows. </td></tr>
    <tr><td class="paramname">offset</td><td>The offset into the backing storage to map from. Typically needs to be at least a multiple of the page size (see utils::page_sizes()), on Windows it needs to be a multiple of the kernel memory allocation granularity (typically 64Kb). </td></tr>
    <tr><td class="paramname">_flag</td><td>The permissions with which to map the view which are constrained by the permissions of the memory section. <code>flag::none</code> can be useful for reserving virtual address space without committing system resources, use commit() to later change availability of memory.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX mmap() or NtMapViewOfSection() can return. </dd></dl>

</div>
</div>
<a id="a4d9cbbb7aae98704c6ad97de080c4210"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d9cbbb7aae98704c6ad97de080c4210">&#9670;&nbsp;</a></span>max_buffers()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual size_t afio_v2_xxx::io_handle::max_buffers </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>The <em>maximum</em> number of buffers which a single read or write syscall can process at a time for this specific open handle. On POSIX, this is known as <code>IOV_MAX</code>. </p>
<p>Note that the actual number of buffers accepted for a read or a write may be significantly lower than this system-defined limit, depending on available resources. The <code>read()</code> or <code>write()</code> call will return the buffers accepted.</p>
<p>Note also that some OSs will error out if you supply more than this limit to <code>read()</code> or <code>write()</code>, but other OSs do not. Some OSs guarantee that each i/o syscall has effects atomically visible or not to other i/o, other OSs do not.</p>
<p>Microsoft Windows and OS X does not implement scatter-gather file i/o syscalls. Thus this function will always return <code>1</code> in that situation. </p>

</div>
</div>
<a id="ab569da5c3ffa64200f8b10dbe683bbc8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab569da5c3ffa64200f8b10dbe683bbc8">&#9670;&nbsp;</a></span>prefetch()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static result&lt;<a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a>&gt; afio_v2_xxx::map_handle::prefetch </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a>&#160;</td>
          <td class="paramname"><em>region</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00500"></a><span class="lineno">  500</span>&#160;  {</div><div class="line"><a name="l00501"></a><span class="lineno">  501</span>&#160;    OUTCOME_TRY(ret, <a class="code" href="classafio__v2__xxx_1_1map__handle.html#ae16cb0af9b96f90f87f42318f7d35e65">prefetch</a>(span&lt;buffer_type&gt;(&amp;region, 1)));</div><div class="line"><a name="l00502"></a><span class="lineno">  502</span>&#160;    <span class="keywordflow">return</span> *ret.data();</div><div class="line"><a name="l00503"></a><span class="lineno">  503</span>&#160;  }</div><div class="ttc" id="classafio__v2__xxx_1_1map__handle_html_ae16cb0af9b96f90f87f42318f7d35e65"><div class="ttname"><a href="classafio__v2__xxx_1_1map__handle.html#ae16cb0af9b96f90f87f42318f7d35e65">afio_v2_xxx::map_handle::prefetch</a></div><div class="ttdeci">static result&lt; span&lt; buffer_type &gt; &gt; prefetch(span&lt; buffer_type &gt; regions) noexcept</div><div class="ttdoc">Ask the system to begin to asynchronously prefetch the span of memory regions given, returning the regions actually prefetched. Note that on Windows 7 or earlier the system call to implement this was not available, and so you will see an empty span returned. </div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a71d7636f40607829cacc2c974c4a2a28"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a71d7636f40607829cacc2c974c4a2a28">&#9670;&nbsp;</a></span>read() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a>&gt; afio_v2_xxx::io_handle::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read data from the open handle. </p>
<dl class="section warning"><dt>Warning</dt><dd>Depending on the implementation backend, <b>very</b> different buffers may be returned than you supplied. You should <b>always</b> use the buffers returned and assume that they point to different memory and that each buffer's size will have changed.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The buffers read, which may not be the buffers input. The size of each scatter-gather buffer is updated with the number of bytes of that buffer transferred, and the pointer to the data may be <em>completely</em> different to what was submitted (e.g. it may point into a memory map). </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reqs</td><td>A scatter-gather and offset request. </td></tr>
    <tr><td class="paramname">d</td><td>An optional deadline by which the i/o must complete, else it is cancelled. Note function may return significantly after this deadline if the i/o takes long to cancel. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX read() can return, <code>errc::timed_out</code>, <code>errc::operation_canceled</code>. <code>errc::not_supported</code> may be returned if deadline i/o is not possible with this particular handle configuration (e.g. reading from regular files on POSIX or reading from a non-overlapped HANDLE on Windows). </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>The default synchronous implementation in file_handle performs no memory allocation. The asynchronous implementation in async_file_handle performs one calloc and one free. </dd></dl>

</div>
</div>
<a id="a928a8ab64d5b7d68dc7e2b3e5849df24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a928a8ab64d5b7d68dc7e2b3e5849df24">&#9670;&nbsp;</a></span>read() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a>&gt; afio_v2_xxx::io_handle::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::initializer_list&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a> &gt;&#160;</td>
          <td class="paramname"><em>lst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;  {</div><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    buffer_type *_reqs = <span class="keyword">reinterpret_cast&lt;</span>buffer_type *<span class="keyword">&gt;</span>(alloca(<span class="keyword">sizeof</span>(buffer_type) * lst.size()));</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;    memcpy(_reqs, lst.begin(), <span class="keyword">sizeof</span>(buffer_type) * lst.size());</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    io_request&lt;buffers_type&gt; reqs(<a class="code" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a>(_reqs, lst.size()), offset);</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classafio__v2__xxx_1_1io__handle.html#a71d7636f40607829cacc2c974c4a2a28">read</a>(reqs, d);</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;  }</div><div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a70a3c5e6f62efc95db81f831f3b90a2c"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">afio_v2_xxx::io_handle::buffers_type</a></div><div class="ttdeci">span&lt; buffer_type &gt; buffers_type</div><div class="ttdoc">The scatter buffers type used by this handle. Guaranteed to be TrivialType apart from construction...</div><div class="ttdef"><b>Definition:</b> io_handle.hpp:86</div></div>
<div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a71d7636f40607829cacc2c974c4a2a28"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a71d7636f40607829cacc2c974c4a2a28">afio_v2_xxx::io_handle::read</a></div><div class="ttdeci">virtual io_result&lt; buffers_type &gt; read(io_request&lt; buffers_type &gt; reqs, deadline d=deadline()) noexcept</div><div class="ttdoc">Read data from the open handle. </div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a4d8c8f3fcecd58b55316d42799abf6f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d8c8f3fcecd58b55316d42799abf6f3">&#9670;&nbsp;</a></span>read() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a>&gt; afio_v2_xxx::map_handle::read </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a70a3c5e6f62efc95db81f831f3b90a2c">buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Read data from the mapped view. </p>
<dl class="section note"><dt>Note</dt><dd>Because this implementation never copies memory, you can pass in buffers with a null address.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The buffers read, which will never be the buffers input because they will point into the mapped view. The size of each scatter-gather buffer is updated with the number of bytes of that buffer transferred. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reqs</td><td>A scatter-gather and offset request. </td></tr>
    <tr><td class="paramname">d</td><td>Ignored. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>None, though the various signals and structured exception throws common to using memory maps may occur. </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>None. </dd></dl>

</div>
</div>
<a id="af1610ec7fb0a41f039e3e17e0dc467ab"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af1610ec7fb0a41f039e3e17e0dc467ab">&#9670;&nbsp;</a></span>set_append_only()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual result&lt;void&gt; afio_v2_xxx::handle::set_append_only </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>enable</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Changes whether this handle is append only or not.</p>
<dl class="section warning"><dt>Warning</dt><dd>On Windows this is implemented as a bit of a hack to make it fast like on POSIX, so make sure you open the handle for read/write originally. Note unlike on POSIX the append_only disposition will be the only one toggled, seekable and readable will remain turned on.</dd></dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Whatever POSIX fcntl() returns. On Windows nothing is changed on the handle. </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>No memory allocation. </dd></dl>

</div>
</div>
<a id="af9699a9a290ba974184f844c2f6038e8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9699a9a290ba974184f844c2f6038e8">&#9670;&nbsp;</a></span>truncate()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&gt; afio_v2_xxx::map_handle::truncate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a0adf7fa00e23ed561328f473986e9ccc">size_type</a>&#160;</td>
          <td class="paramname"><em>newsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>permit_relocation</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Resize the reservation of the memory map without changing the address (unless the map was zero sized, in which case a new address will be chosen).</p>
<p>If shrinking, address space is released on POSIX, and on Windows if the new size is zero. If the new size is zero, the address is set to null to prevent surprises. Windows does not support modifying existing mapped regions, so if the new size is not zero, the call will probably fail. Windows should let you truncate a previous extension however, if it is exact.</p>
<p>If expanding, an attempt is made to map in new reservation immediately after the current address reservation, thus extending the reservation. If anything else is mapped in after the current reservation, the function fails.</p>
<dl class="section note"><dt>Note</dt><dd>On all supported platforms apart from OS X, proprietary flags exist to avoid performing a map if a map extension cannot be immediately placed after the current map. On OS X, we hint where we'd like the new map to go, but if something is already there OS X will place the map elsewhere. In this situation, we delete the new map and return failure, which is inefficient, but there is nothing else we can do.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The bytes actually reserved. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">newsize</td><td>The bytes to truncate the map reservation to. Rounded up to the nearest page size (POSIX) or 64Kb on Windows. </td></tr>
    <tr><td class="paramname">permit_relocation</td><td>Permit the address to change (some OSs provide a syscall for resizing a memory map). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX <code>mremap()</code>, <code>mmap(addr)</code> or <code>VirtualAlloc(addr)</code> can return. </dd></dl>

</div>
</div>
<a id="a0a1c4773b9fa7bbd04fee0756075d319"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0a1c4773b9fa7bbd04fee0756075d319">&#9670;&nbsp;</a></span>try_lock()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle_1_1extent__guard.html">extent_guard</a>&gt; afio_v2_xxx::io_handle::try_lock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>bytes</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>exclusive</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00421"></a><span class="lineno">  421</span>&#160;{ <span class="keywordflow">return</span> <a class="code" href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">lock</a>(offset, bytes, exclusive, deadline(std::chrono::seconds(0))); }</div><div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a88689b15e6e8b6ce1f945737dee4369e"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a88689b15e6e8b6ce1f945737dee4369e">afio_v2_xxx::io_handle::lock</a></div><div class="ttdeci">virtual result&lt; extent_guard &gt; lock(extent_type offset, extent_type bytes, bool exclusive=true, deadline d=deadline()) noexcept</div><div class="ttdoc">Tries to lock the range of bytes specified for shared or exclusive access. Be aware this passes throu...</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a96b9da71ee7791fbaaa2470c936ec763"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96b9da71ee7791fbaaa2470c936ec763">&#9670;&nbsp;</a></span>unlock()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void afio_v2_xxx::io_handle::unlock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>bytes</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Unlocks a byte range previously locked. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">offset</td><td>The offset to unlock. This should be an offset previously locked. </td></tr>
    <tr><td class="paramname">bytes</td><td>The number of bytes to unlock. This should be a byte extent previously locked. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX fcntl() can return. </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>None. </dd></dl>

</div>
</div>
<a id="aefac4710e5617264347f437b04732c01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aefac4710e5617264347f437b04732c01">&#9670;&nbsp;</a></span>write() <span class="overload">[1/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>&gt; afio_v2_xxx::io_handle::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write data to the open handle. </p>
<dl class="section warning"><dt>Warning</dt><dd>Depending on the implementation backend, not all of the buffers input may be written and the some buffers at the end of the returned buffers may return with zero bytes written. For example, with a zeroed deadline, some backends may only consume as many buffers as the system has available write slots for, thus for those backends this call is "non-blocking" in the sense that it will return immediately even if it could not schedule a single buffer write. Another example is that some implementations will not auto-extend the length of a file when a write exceeds the maximum extent, you will need to issue a <code>truncate(newsize)</code> first.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>The buffers written, which may not be the buffers input. The size of each scatter-gather buffer is updated with the number of bytes of that buffer transferred. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reqs</td><td>A scatter-gather and offset request. </td></tr>
    <tr><td class="paramname">d</td><td>An optional deadline by which the i/o must complete, else it is cancelled. Note function may return significantly after this deadline if the i/o takes long to cancel. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>Any of the values POSIX write() can return, <code>errc::timed_out</code>, <code>errc::operation_canceled</code>. <code>errc::not_supported</code> may be returned if deadline i/o is not possible with this particular handle configuration (e.g. writing to regular files on POSIX or writing to a non-overlapped HANDLE on Windows). </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>The default synchronous implementation in file_handle performs no memory allocation. The asynchronous implementation in async_file_handle performs one calloc and one free. </dd></dl>

</div>
</div>
<a id="add161546c0769941fce4fd9f06934e03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#add161546c0769941fce4fd9f06934e03">&#9670;&nbsp;</a></span>write() <span class="overload">[2/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>&gt; afio_v2_xxx::io_handle::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classafio__v2__xxx_1_1handle.html#a818fff07c92eaab72532092d1c2a14f9">extent_type</a>&#160;</td>
          <td class="paramname"><em>offset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::initializer_list&lt; <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1const__buffer__type.html">const_buffer_type</a> &gt;&#160;</td>
          <td class="paramname"><em>lst</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. </p>
<div class="fragment"><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;  {</div><div class="line"><a name="l00270"></a><span class="lineno">  270</span>&#160;    const_buffer_type *_reqs = <span class="keyword">reinterpret_cast&lt;</span>const_buffer_type *<span class="keyword">&gt;</span>(alloca(<span class="keyword">sizeof</span>(const_buffer_type) * lst.size()));</div><div class="line"><a name="l00271"></a><span class="lineno">  271</span>&#160;    memcpy(_reqs, lst.begin(), <span class="keyword">sizeof</span>(const_buffer_type) * lst.size());</div><div class="line"><a name="l00272"></a><span class="lineno">  272</span>&#160;    io_request&lt;const_buffers_type&gt; reqs(<a class="code" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>(_reqs, lst.size()), offset);</div><div class="line"><a name="l00273"></a><span class="lineno">  273</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="classafio__v2__xxx_1_1io__handle.html#aefac4710e5617264347f437b04732c01">write</a>(reqs, d);</div><div class="line"><a name="l00274"></a><span class="lineno">  274</span>&#160;  }</div><div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_a639b8760b1b98df95e4956f6cc56f6b5"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">afio_v2_xxx::io_handle::const_buffers_type</a></div><div class="ttdeci">span&lt; const_buffer_type &gt; const_buffers_type</div><div class="ttdoc">The gather buffers type used by this handle. Guaranteed to be TrivialType apart from construction...</div><div class="ttdef"><b>Definition:</b> io_handle.hpp:88</div></div>
<div class="ttc" id="classafio__v2__xxx_1_1io__handle_html_aefac4710e5617264347f437b04732c01"><div class="ttname"><a href="classafio__v2__xxx_1_1io__handle.html#aefac4710e5617264347f437b04732c01">afio_v2_xxx::io_handle::write</a></div><div class="ttdeci">virtual io_result&lt; const_buffers_type &gt; write(io_request&lt; const_buffers_type &gt; reqs, deadline d=deadline()) noexcept</div><div class="ttdoc">Write data to the open handle. </div></div>
</div><!-- fragment -->
</div>
</div>
<a id="a00b7e1e99089c2641c45ee824811ebc1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00b7e1e99089c2641c45ee824811ebc1">&#9670;&nbsp;</a></span>write() <span class="overload">[3/3]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__result.html">io_result</a>&lt;<a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a>&gt; afio_v2_xxx::map_handle::write </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1io__request.html">io_request</a>&lt; <a class="el" href="classafio__v2__xxx_1_1io__handle.html#a639b8760b1b98df95e4956f6cc56f6b5">const_buffers_type</a> &gt;&#160;</td>
          <td class="paramname"><em>reqs</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>&#160;</td>
          <td class="paramname"><em>d</em> = <code><a class="el" href="structafio__v2__xxx_1_1deadline.html">deadline</a>()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Write data to the mapped view. </p>
<dl class="section return"><dt>Returns</dt><dd>The buffers written, which will never be the buffers input because they will point at where the data was copied into the mapped view. The size of each scatter-gather buffer is updated with the number of bytes of that buffer transferred. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">reqs</td><td>A scatter-gather and offset request. </td></tr>
    <tr><td class="paramname">d</td><td>Ignored. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section user"><dt>Errors returnable</dt><dd>None, though the various signals and structured exception throws common to using memory maps may occur. </dd></dl>
<dl class="section user"><dt>Memory Allocations</dt><dd>None. </dd></dl>

</div>
</div>
<a id="ac35a85e8a6cca721640ddc6b5008e145"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac35a85e8a6cca721640ddc6b5008e145">&#9670;&nbsp;</a></span>zero_memory()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">result&lt;void&gt; afio_v2_xxx::map_handle::zero_memory </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structafio__v2__xxx_1_1io__handle_1_1buffer__type.html">buffer_type</a>&#160;</td>
          <td class="paramname"><em>region</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Zero the memory represented by the buffer. Differs from zero() because it acts on mapped memory, but may call zero() internally.</p>
<p>On Linux, Windows and FreeBSD any full 4Kb pages will be deallocated from the system entirely, including the extents for them in any backing storage. On newer Linux kernels the kernel can additionally swap whole 4Kb pages for freshly zeroed ones making this a very efficient way of zeroing large ranges of memory. </p><dl class="section user"><dt>Errors returnable</dt><dd>Any of the errors returnable by madvise() or DiscardVirtualMemory or the zero() function. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/afio/v2.0/<a class="el" href="map__handle_8hpp.html">map_handle.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespaceafio__v2__xxx.html">afio_v2_xxx</a></li><li class="navelem"><a class="el" href="classafio__v2__xxx_1_1map__handle.html">map_handle</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>