File: bufdataset.xml

package info (click to toggle)
fpc 3.2.2%2Bdfsg-48
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 341,456 kB
  • sloc: pascal: 3,820,194; xml: 194,356; ansic: 9,637; asm: 8,482; java: 5,346; sh: 4,813; yacc: 3,956; makefile: 2,705; lex: 2,661; javascript: 2,454; sql: 929; php: 474; cpp: 145; perl: 136; sed: 132; csh: 34; tcl: 7
file content (5342 lines) | stat: -rw-r--r-- 251,808 bytes parent folder | download | duplicates (4)
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
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
<?xml version="1.0" encoding="UTF-8"?>
<fpdoc-descriptions>
  <package name="fcl">
    <!--
    ====================================================================
        bufdataset
    ====================================================================
    -->
    <module name="bufdataset">
      <short>
        Implements a database-aware buffered dataset
      </short>
      <descr>
        <p>
          Implements a database-aware buffered dataset.
        </p>
        <p>
          Original Authors: Joost van der Sluis and members of the Free Pascal development team.
        </p>
      </descr>

      <!-- unresolved external references -->
      <element name="Classes"/>
      <element name="SysUtils"/>
      <element name="db"/>
      <element name="bufdataset_parser"/>

      <element name="TResolverErrorEvent">
        <short>
          Defines the event handler for update errors in TBufDataset
        </short>
        <descr>
          <p>
            <var>TResolverErrorEvent</var> is an object procedure which defines an event handler signalled when an error occurs while updating a record in <var>TBufDataset</var>. TResolverErrorEvent is the type used for the TCustomBufDataset.OnUpdateError property. Applications should create a routine which uses the signature for the type to handle the event notification. The routine should update the Response argument to indicate the action taken for the event notification.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.OnUpdateError">TCustomBufDataset.OnUpdateError</link>
        </seealso>
      </element>
      <element name="TResolverErrorEvent.Sender">
        <short>Class generating the event notification</short>
      </element>
      <element name="TResolverErrorEvent.DataSet">
        <short>Dataset for the event notification</short>
      </element>
      <element name="TResolverErrorEvent.E">
        <short>Exception for the event notification</short>
      </element>
      <element name="TResolverErrorEvent.UpdateKind">
        <short>Type of update where the error occurred</short>
      </element>
      <element name="TResolverErrorEvent.Response">
        <short>Response from the event handler</short>
      </element>

      <element name="PBlobBuffer">
        <short>
          Pointer to the TBlobBuffer type
        </short>
        <descr>
          <p>
            <var>PBlobBuffer</var> is a pointer to the <var>TBlobBuffer</var> type. PBlobBuffer is used to allocate and access the buffers for Blob fields (Memo or Graphic field types). PBlobBuffer is used in TBufBlobField, TBufBlobStream, and in TBufDataset methods which perform record buffer management.
          </p>
        </descr>
        <seealso>
          <link id="TBufBlobField">TBufBlobField</link>
          <link id="TBufBlobStream">TBufBlobStream</link>
          <link id="TCustomBufDataset">TCustomBufDataset</link>
          <link id="TBufDataset">TBufDataset</link>
        </seealso>
      </element>

      <element name="TBlobBuffer">
        <short>
          Represents a buffer allocated for a Blob field
        </short>
        <descr>
          <p>
            <var>TBlobBuffer</var> is a record type used to represent a buffer allocated for a Blob field. Pointers to TBlobBuffer (PBlobBuffer) are used in the implementation of  TBufBlobStream and TBufDataset.
          </p>
        </descr>
        <seealso>
          <link id="TBufBlobStream">TBufBlobStream</link>
          <link id="TBlobField">TBlobField</link>
          <link id="TCustomBufDataset">TCustomBufDataset</link>
          <link id="TBufDataset">TBufDataset</link>
        </seealso>
      </element>
      <element name="TBlobBuffer.FieldNo">
        <short>Ordinal position of the field for the Block buffer</short>
      </element>
      <element name="TBlobBuffer.OrgBufID">
        <short>Identifies the original blob buffer for an update buffer</short>
      </element>
      <element name="TBlobBuffer.Buffer">
        <short>Pointer to memory allocated for the Blob buffer</short>
      </element>
      <element name="TBlobBuffer.Size">
        <short>Size of the memory allocated for the Blob buffer</short>
      </element>

      <element name="PBufBlobField">
        <short>Pointer to a TBufBlobField type</short>
        <descr></descr>
        <seealso></seealso>
      </element>

      <element name="TBufBlobField">
        <short>Implements a Blob field for TBufDataset</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufBlobField.ConnBlobBuffer">
        <short>Array of database-specific byte values</short>
      </element>
      <element name="TBufBlobField.BlobBuffer">
        <short></short>
      </element>

      <element name="TBufBlobStream">
        <short>
          Implements a Blob Stream for TBufDataset
        </short>
        <descr>
          <p>
            <var>TBufBlobStream</var> is a <var>TStream</var> descendant which implements a Blob Stream for TBufDataset. TBufBlobStream has members which represent the Dataset and Field for the Blob, its Buffer, and modification flags. TBufBlobStream provides overridden methods used to perform Read, Write, and Seek operations using the buffer allocated for a Blob field.
          </p>
          <p>
            TBufBlobStream instances are created in the TBufDataset.CreateBlobStream method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.CreateBlobStream">
            TCustomBufDataset.CreateBlobStream
          </link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TBufBlobStream.FField"/>
      <element name="TBufBlobStream.FDataSet"/>
      <element name="TBufBlobStream.FBlobBuffer"/>
      <element name="TBufBlobStream.FPosition"/>
      <element name="TBufBlobStream.FModified"/>

      <!-- visibility: protected -->
      <element name="TBufBlobStream.Seek">
        <short>Moves the stream to the specified relative position</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufBlobStream.Seek.Result">
        <short>New position in the stream following the operation</short>
      </element>
      <element name="TBufBlobStream.Seek.Offset">
        <short>Relative offset to locate in the stream</short>
      </element>
      <element name="TBufBlobStream.Seek.Origin">
        <short>Origin for the relative offset value</short>
      </element>

      <element name="TBufBlobStream.Read">
        <short>
          Reads the specified number of bytes from the stream into the given buffer
        </short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufBlobStream.Read.Result">
        <short>Actual number of bytes red in the method</short>
      </element>
      <element name="TBufBlobStream.Read.Buffer">
        <short>Buffer used to store values read from the stream</short>
      </element>
      <element name="TBufBlobStream.Read.Count">
        <short>Number of bytes to include in the read operation</short>
      </element>

      <element name="TBufBlobStream.Write">
        <short>
          Writes values from the the specified buffer to the stream
        </short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufBlobStream.Write.Result">
        <short>Actual number of bytes written in the method</short>
      </element>
      <element name="TBufBlobStream.Write.Buffer">
        <short>Values written to the stream</short>
      </element>
      <element name="TBufBlobStream.Write.Count">
        <short>Number of bytes in the buffer to write to the stream</short>
      </element>

      <!-- visibility: public -->
      <element name="TBufBlobStream.Create">
        <short>Constructor for the class instance</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufBlobStream.Create.Field">
        <short>Field with metadata for the Blob field</short>
      </element>
      <element name="TBufBlobStream.Create.Mode">
        <short>Operations allowed using the stream</short>
      </element>

      <element name="TBufBlobStream.Destroy">
        <short>Destructor for the class instance</short>
        <descr>
          Destroy is the destructor for the class instance.
        </descr>
        <seealso></seealso>
      </element>

      <element name="PBufRecLinkItem">
        <short>Pointer to a TBufRecLinkItem type</short>
        <descr></descr>
        <seealso></seealso>
      </element>

      <element name="TBufRecLinkItem">
        <short>Stores bookmarks to the previous and next records in a linked list</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufRecLinkItem.prior">
        <short>Bookmark to the previous record</short>
      </element>
      <element name="TBufRecLinkItem.next">
        <short>Bookmark to the next record</short>
      </element>

      <element name="PBufBookmark">
        <short>Pointer to the TBufBookmark type</short>
        <descr></descr>
        <seealso></seealso>
      </element>

      <element name="TBufBookmark">
        <short>Implements a Bookmark for TBufDataset</short>
        <descr>
          TBufBookmark is a record type used to implement a Bookmark for TBufDataset.
        </descr>
        <seealso></seealso>
      </element>
      <element name="TBufBookmark.BookMarkData">
        <short>Pointer to bookmark data in a record buffer </short>
      </element>
      <element name="TBufBookmark.BookmarkInt">
        <short>Index for the record buffer in an array index</short>
      </element>
      <element name="TBufBookmark.BookmarkFlag">
        <short>Bookmark flag value for a record buffer</short>
      </element>

      <element name="TRecUpdateBuffer">
        <short>Implements a buffer used for record updates in TBufDataset</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TRecUpdateBuffer.UpdateKind">
        <short>Update kind for the record update buffer</short>
      </element>
      <element name="TRecUpdateBuffer.BookMarkData">
        <short>Bookmark data for the record update buffer</short>
        <descr>
          <p>
            Bookmark value for the record update buffer.
          </p>
          <ul>
            <li>
              <var>-1</var> if the update was cancelled. For example: a newly appended record has been deleted.
            </li>
            <li>
              If UpdateKind is <var>ukInsert</var>, it contains a bookmark to the newly created record.
            </li>
            <li>
              If UpdateKind is <var>ukModify</var>, it contains a bookmark to the record with the new data.
            </li>
            <li>
              If UpdateKind is <var>ukDelete</var>, it contains a bookmark to the deleted record (i.e. the record is still there).
            </li>
          </ul>
        </descr>
      </element>

      <element name="TRecUpdateBuffer.NextBookMarkData">
        <short>
          Bookmark for the record following a deleted record
        </short>
        <descr>
          <p>
            Bookmark information for the record immediately after the record. If UpdateKind is <var>ukDelete</var>, it contains a bookmark to the record just after the deleted record.
          </p>
        </descr>
      </element>

      <element name="TRecUpdateBuffer.OldValuesBuffer">
        <short>Buffer for pre-editing values for the record</short>
        <descr>
          <ul>
            <li>
              If UpdateKind is <var>ukModify</var>, it contains a record buffer which contains the old data.
            </li>
            <li>
              If UpdateKind is <var>ukDelete</var>, it contains a record buffer with the data of the deleted record.
            </li>
          </ul>
        </descr>
      </element>

      <element name="TRecordsUpdateBuffer">
        <short>Array of update buffers for record updates</short>
        <descr>
          <p>
            <var>TRecordsUpdateBuffer</var> is an array of <var>TRecUpdateBuffer</var> type used to implement an array of update buffers for records in TBufDataset.
          </p>
        </descr>
        <seealso>
          <link id="TRecUpdateBuffer">TRecUpdateBuffer</link>
          <link id="TCustomBufDataset">TCustomBufDataset</link>
        </seealso>
      </element>

      <element name="TCompareFunc">
        <short>
          Function used to compare values to determine their relative sort order
        </short>
        <descr>
          <p>
            <var>TCompareFunc</var> is an <var>Int64</var> function type used to compare pointers using the specified locate option values. TCompareFunc is used in the implementation of the TDBCompareRec type.
          </p>
        </descr>
        <seealso>
          <link id="TDBCompareStruct">TDBCompareRec</link>
        </seealso>
      </element>
      <element name="TCompareFunc.Result">
        <short>Relative order for the compared pointer values</short>
      </element>
      <element name="TCompareFunc.subValue">
        <short>Pointer to a compared value</short>
      </element>
      <element name="TCompareFunc.aValue">
        <short>Pointer to a compared value</short>
      </element>
      <element name="TCompareFunc.size">
        <short>Number of bytes included in the comparison</short>
      </element>
      <element name="TCompareFunc.options">
        <short>Locate options to use in the routine</short>
      </element>

      <element name="TDBCompareRec">
        <short>
          Implements a structure used to compare buffers for fields in TBufDataset.
        </short>
        <descr>
          <p>
            <var>TDBCompareRec</var> is a record type which implements a structure used to compare buffers for fields in TBufDataset. TDBCompareRec is used in the implementation of the TDBCompareStruct type.
          </p>
        </descr>
        <seealso>
          <link id="TCompareFunc">TCompareFunc</link>
          <link id="#fcl.db.TLocateOptions">TLocateOptions</link>
        </seealso>
      </element>
      <element name="TDBCompareRec.CompareFunc">
        <short>
          Function used to determine the relative sort order for compared field values
        </short>
      </element>
      <element name="TDBCompareRec.Off">
        <short>Offset to data in the record buffer</short>
      </element>
      <element name="TDBCompareRec.NullBOff">
        <short>Offset to the Null Bitmap in record data</short>
      </element>
      <element name="TDBCompareRec.FieldInd">
        <short>Ordinal position for the field</short>
      </element>
      <element name="TDBCompareRec.Size">
        <short>Size of the compared values</short>
      </element>
      <element name="TDBCompareRec.Options">
        <short>Locate options used in the comparison</short>
      </element>
      <element name="TDBCompareRec.Desc">
        <short>Indicates if the field is ordered in descending order</short>
      </element>

      <element name="TDBCompareStruct">
        <short>
          Implements a structure used to compare values for a group of fields in TBufDataset
        </short>
        <descr>
          TDBCompareStruct is an array of TDBCompareRec type used to implement a structure to compare values for a group of fields in TBufDataset. TDBCompareStruct is used in the implementation of TBufIndex and its descendent classes.
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TDBCompareRec">TDBCompareRec</link>
          <link id="TCustomBufDataset">TCustomBufDataset</link>
        </seealso>
      </element>

      <element name="TBufIndex">
        <short>
          Defines the interface used to implement indexes in TBufDataset
        </short>
        <descr>
          <p>
            <var>TBufIndex</var> is a <var>TObject</var> descendant which defines the interface used to implement indexes in TBufDataset. TBufIndex provides access to the Dataset with field values for the index, and methods to perform record navigation and index maintenance.
          </p>
          <p>
            TBufIndex contains many virtual and abstract methods that should be implemented in a descendent class which provides a specific index implementation, such as: TDoubleLinkedBufIndex, TUniDirectionalBufIndex, and TArrayBufIndex.
          </p>
          <p>
            TBufIndex is the type used for the TBufDataset.BufferIndex property.
          </p>
        </descr>
        <seealso>
          <link id="TDoubleLinkedBufIndex">TDoubleLinkedBufIndex</link>
          <link id="TUniDirectionalBufIndex">TUniDirectionalBufIndex</link>
          <link id="TArrayBufIndex">TArrayBufIndex</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TBufIndex.FDataSet"/>

      <!-- visibility: protected -->
      <element name="TBufIndex.GetBookmarkSize" link="TBufIndex.BookmarkSize">
        <short>Gets the value for the BookmarkSize property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetBookmarkSize.Result">
        <short>Value for the BookmarkSize property</short>
      </element>

      <element name="TBufIndex.GetCurrentBuffer" link="TBufIndex.CurrentBuffer">
        <short>Gets the value for the CurrentBuffer property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetCurrentBuffer.Result">
        <short>Value for the CurrentBuffer property</short>
      </element>

      <element name="TBufIndex.GetCurrentRecord" link="TBufIndex.CurrentRecord">
        <short>Gets the value for the CurrentRecord property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetCurrentRecord.Result">
        <short>Value for the CurrentRecord property</short>
      </element>

      <element name="TBufIndex.GetIsInitialized" link="TBufIndex.IsInitialized">
        <short>Gets the value for the IsInitialized property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetIsInitialized.Result">
        <short>Value for the IsInitialized property</short>
      </element>

      <element name="TBufIndex.GetSpareBuffer" link="TBufIndex.SpareBuffer">
        <short>Gets the value for the SpareBuffer property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetSpareBuffer.Result">
        <short>Value for the SpareBuffer property</short>
      </element>

      <element name="TBufIndex.GetSpareRecord" link="TBufIndex.SpareRecord">
        <short>Gets the value for the SpareRecord property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetSpareRecord.Result">
        <short>Value for the SpareRecord property</short>
      </element>

      <element name="TBufIndex.GetRecNo" link="TBufIndex.RecNo">
        <short>Gets the value for the RecNo property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.GetRecNo.Result">
        <short>Value for the RecNo property</short>
      </element>

      <element name="TBufIndex.SetRecNo" link="TBufIndex.RecNo">
        <short>Sets the value for the RecNo property</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.SetRecNo.ARecNo">
        <short>New value for the RecNo property</short>
      </element>

      <!-- visibility: public -->
      <element name="TBufIndex.DBCompareStruct">
        <short>Structure used when comparing record/field values in the index</short>
        <descr>
          <p>
            <var>DBCompareStruct</var> is an array of <var>TDBCompareRec</var> type used when comparing record/field values in the index.
          </p>
        </descr>
      </element>

      <element name="TBufIndex.Name">
        <short>Name of the index</short>
        <descr>
          <p>
            <var>Name</var> is a public <var>String</var> member that provides a name or identifier for the index.
          </p>
        </descr>
      </element>
      <element name="TBufIndex.FieldsName">
        <short>Field names included in the index</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.CaseinsFields">
        <short>Case-insensitive field names in the index</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.DescFields">
        <short>Descending fields in the index</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.Options">
        <short>Options for the index</short>
        <descr></descr>
      </element>
      <element name="TBufIndex.IndNr">
        <short>Ordinal position for the index in the list of indexes</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.Create">
        <short>Constructor for the class instance</short>
        <descr>
          <p>
            <var>Create</var> is the constructor for the class instance. Create calls the inherited constructor, and stores the ADataset parameter to the internal member used for the TCustomBufDataset class instance.
          </p>
        </descr>
      </element>
      <element name="TBufIndex.Create.ADataset">
        <short>Dataset for the index</short>
      </element>

      <element name="TBufIndex.ScrollBackward">
        <short>
          Moves to the prior record in the index
        </short>
        <descr>
          <p>
            <var>ScrollBackward</var> is a TGetResult function used to scrolling to the previous record in the index order. ScrollBackward implements the behavior needed to support the <var>TDataset.MoveBy</var> method using the index order for the dataset.
          </p>
          <p>
            ScrollBackward is an abstract virtual method method, and must be implemented in a descendent class. The return value is a TGetResult enumeration value that indicates the result for the scroll request.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TGetResult">TGetResult</link>
          <link id="#fcl.Db.TDataset.MoveBy">TDataset.MoveBy</link>
        </seealso>
      </element>
      <element name="TBufIndex.ScrollBackward.Result">
        <short>Result for the scroll request</short>
      </element>

      <element name="TBufIndex.ScrollForward">
        <short>Moves to the next record in the index</short>
      </element>
      <element name="TBufIndex.ScrollForward.Result">
        <short></short>
      </element>

      <element name="TBufIndex.ScrollFirst">
        <short>Moves to the first record in the index</short>
      </element>
      <element name="TBufIndex.ScrollFirst.Result">
        <short>TGetResult value for the method</short>
      </element>

      <element name="TBufIndex.ScrollLast">
        <short>Moves to the last record in the index</short>
      </element>

      <element name="TBufIndex.GetCurrent">
        <short>
          Gets the record buffer for the current record in the dataset
        </short>
      </element>
      <element name="TBufIndex.GetCurrent.Result">
        <short>TGetResult for the method</short>
      </element>

      <element name="TBufIndex.GetRecord">
        <short>
          Gets prior/next record relative to the specified bookmark
        </short>
        <descr>
          <p>
            <var>GetRecord</var> is used to get the prior/next record relative to the specified bookmark.  GetRecord is a virtual method that should be overridden in a descendent class; the implementation in TBufIndex simply returns the value <var>grError</var> as the return value for the method.
          </p>
          <p>
            Please note that GetRecord should <b>not</b> change the current record in the dataset on exit.
          </p>
        </descr>
      </element>
      <element name="TBufIndex.GetRecord.Result">
        <short>TGetResult value for the method</short>
      </element>
      <element name="TBufIndex.GetRecord.ABookmark">
        <short>Pointer to the bookmark for the record</short>
      </element>
      <element name="TBufIndex.GetRecord.GetMode">
        <short>Relative position for the requested record</short>
      </element>

      <element name="TBufIndex.SetToFirstRecord">
        <short>
          Sets the index to the first record in the index order
        </short>
      </element>

      <element name="TBufIndex.SetToLastRecord">
        <short>
          Sets the index to the last record in the index order
        </short>
      </element>

      <element name="TBufIndex.StoreCurrentRecord">
        <short>Stores the record buffer for the current record</short>
      </element>

      <element name="TBufIndex.RestoreCurrentRecord">
        <short>Restores the stored record buiffer to the current record</short>
      </element>

      <element name="TBufIndex.CanScrollForward">
        <short>Indicates if the index can be scrolled forward</short>
      </element>
      <element name="TBufIndex.CanScrollForward.Result">
        <short>True when another record is available in  the index order</short>
      </element>

      <element name="TBufIndex.DoScrollForward">
        <short>Implements actions need to scroll forward in the index</short>
      </element>

      <element name="TBufIndex.StoreCurrentRecIntoBookmark">
        <short></short>
      </element>
      <element name="TBufIndex.StoreCurrentRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TBufIndex.StoreSpareRecIntoBookmark">
        <short></short>
      </element>
      <element name="TBufIndex.StoreSpareRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TBufIndex.GotoBookmark">
        <short>Moves the index position to the specified Bookmark</short>
      </element>
      <element name="TBufIndex.GotoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TBufIndex.BookmarkValid">
        <short>Indicates the specified Bookmark is valid</short>
      </element>
      <element name="TBufIndex.BookmarkValid.Result">
        <short></short>
      </element>
      <element name="TBufIndex.BookmarkValid.ABookmark">
        <short></short>
      </element>

      <element name="TBufIndex.CompareBookmarks">
        <short>Gets the relative order for the specified Bookmarks</short>
      </element>
      <element name="TBufIndex.CompareBookmarks.Result">
        <short></short>
      </element>
      <element name="TBufIndex.CompareBookmarks.ABookmark1">
        <short></short>
      </element>
      <element name="TBufIndex.CompareBookmarks.ABookmark2">
        <short></short>
      </element>

      <element name="TBufIndex.SameBookmarks">
        <short>Indicates if the specified Bookmarks are for the same record</short>
      </element>
      <element name="TBufIndex.SameBookmarks.Result">
        <short></short>
      </element>
      <element name="TBufIndex.SameBookmarks.ABookmark1">
        <short></short>
      </element>
      <element name="TBufIndex.SameBookmarks.ABookmark2">
        <short></short>
      </element>

      <element name="TBufIndex.InitialiseIndex">
        <short>Initializes the index</short>
        <descr></descr>
        <seealso></seealso>
      </element>

      <element name="TBufIndex.InitialiseSpareRecord">
        <short>Initializes values in the spare record for the index</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TBufIndex.InitialiseSpareRecord.ASpareRecord">
        <short></short>
      </element>

      <element name="TBufIndex.ReleaseSpareRecord">
        <short>Releases resources allocated to the spare record for the index</short>
        <descr></descr>
        <seealso></seealso>
      </element>

      <element name="TBufIndex.AddRecord">
        <short>
          Adds a record to the index
        </short>
        <descr>
          Adds a record to the end of the index as the new last record (spare record). AddRecord is used in the GetNextPacket method.
        </descr>
      </element>

      <element name="TBufIndex.InsertRecordBeforeCurrentRecord">
        <short>
          Inserts a record before the current record in the index order
        </short>
        <descr>
          <p>
            Inserts a record before the current record using the sort order for the active index.
          </p>
        </descr>
      </element>
      <element name="TBufIndex.InsertRecordBeforeCurrentRecord.ARecord">
        <short>Record buffer to insert into the index</short>
      </element>

      <element name="TBufIndex.RemoveRecordFromIndex">
        <short>
          Remove the record at the specified bookmark from the index
        </short>
      </element>
      <element name="TBufIndex.RemoveRecordFromIndex.ABookmark">
        <short>Bookmark for the record to remove from the index</short>
      </element>

      <element name="TBufIndex.OrderCurrentRecord">
        <short></short>
        <descr></descr>
      </element>

      <element name="TBufIndex.BeginUpdate">
        <short></short>
        <descr></descr>
      </element>

      <element name="TBufIndex.EndUpdate">
        <short></short>
        <descr></descr>
      </element>

      <element name="TBufIndex.SpareRecord">
        <short>Spare record for the index</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.SpareBuffer">
        <short>Spare record buffer for the index</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.CurrentRecord">
        <short>Current record in the index</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.CurrentBuffer">
        <short>Current record buffer in the index</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.IsInitialized">
        <short>Indicates if the index has been initialized</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.BookmarkSize">
        <short>Size (number of bytes) needed for Bookmarks in the index</short>
        <descr></descr>
      </element>

      <element name="TBufIndex.RecNo">
        <short>Active record number in the index</short>
        <descr></descr>
      </element>

      <element name="TDoubleLinkedBufIndex" link="TBufIndex">
        <short>
          Implements an index using a doubly-linked list
        </short>
        <descr>
          <p>
            <var>TDoubleLinkedBufIndex</var> is a <var>TBufIndex</var> descendant that implements an index using a doubly-linked list. Nodes in the doubly-linked list are implemented using the TBufRecLinkItem record type and the PBufRecLinkItem pointer type. TDoubleLinkedBufIndex provides two sentinel nodes that represent the first and last items in the linked list.
          </p>
          <p>
            TDoubleLinkedBufIndex is the type used to implement the default index (<var>'DEFAULT_ORDER'</var>) in TBufDataset.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TBufRecLinkItem">TBufRecLinkItem</link>
          <link id="PBufRecLinkItem">PBufRecLinkItem</link>
          <link id="TBufDataset">TBufDataset</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TDoubleLinkedBufIndex.FCursOnFirstRec"/>
      <element name="TDoubleLinkedBufIndex.FStoredRecBuf"/>
      <element name="TDoubleLinkedBufIndex.FCurrentRecBuf"/>

      <!-- visibility: protected -->
      <element name="TDoubleLinkedBufIndex.GetBookmarkSize">
        <short>Gets the value for the BookmarkSize property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetBookmarkSize.Result">
        <short>Value for the BookmarkSize property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetCurrentBuffer">
        <short>Gets the value for the CurrentBuffer property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetCurrentBuffer.Result">
        <short>Value for the CurrentBuffer property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetCurrentRecord">
        <short>Gets the value for the CurrentRecord property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetCurrentRecord.Result">
        <short>Value for the CurrentRecord property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetIsInitialized">
        <short>Gets the value for the IsInitialized property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetIsInitialized.Result">
        <short>Value for the IsInitialized property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetSpareBuffer">
        <short>Gets the value for the SpareBuffer property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetSpareBuffer.Result">
        <short>Value for the SpareBuffer property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetSpareRecord">
        <short>Gets the value for the SpareRecord property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetSpareRecord.Result">
        <short>Value for the SpareRecord property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetRecNo">
        <short>Gets the value for the RecNo property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetRecNo.Result">
        <short>Value for the RecNo property</short>
      </element>

      <element name="TDoubleLinkedBufIndex.SetRecNo">
        <short>Sets the value for the RecNo property</short>
      </element>
      <element name="TDoubleLinkedBufIndex.SetRecNo.ARecNo">
        <short>New value for the RecNo property</short>
      </element>

      <!-- visibility: public -->
      <element name="TDoubleLinkedBufIndex.FLastRecBuf"/>
      <element name="TDoubleLinkedBufIndex.FFirstRecBuf"/>
      <element name="TDoubleLinkedBufIndex.FNeedScroll"/>

      <element name="TDoubleLinkedBufIndex.ScrollBackward">
        <short>Scrolls the index toward the beginning of the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.ScrollBackward.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.ScrollForward">
        <short>Scrolls the index towards the end of the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.ScrollForward.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetCurrent">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetCurrent.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.ScrollFirst">
        <short>Scrolls to the first entry in the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.ScrollFirst.Result">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.ScrollFirst.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.ScrollLast">
        <short>Scrolls to the last entry in the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.ScrollLast.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.GetRecord">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetRecord.Result">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetRecord.ABookmark">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.GetRecord.GetMode">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.SetToFirstRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.SetToLastRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.StoreCurrentRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.RestoreCurrentRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.CanScrollForward">
        <short>Indicates if the index can be scrolled towards the end of the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.CanScrollForward.Result">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.DoScrollForward">
        <short>Implements actions needed to scroll forward using the index</short>
      </element>

      <element name="TDoubleLinkedBufIndex.StoreCurrentRecIntoBookmark">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.StoreCurrentRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.StoreSpareRecIntoBookmark">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.StoreSpareRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.GotoBookmark">
        <short>Navigates the index to the specified Bookmark</short>
      </element>
      <element name="TDoubleLinkedBufIndex.GotoBookmark.ABookmark">
        <short>Bookmark to make active in the index</short>
      </element>

      <element name="TDoubleLinkedBufIndex.CompareBookmarks">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.CompareBookmarks.Result">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.CompareBookmarks.ABookmark1">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.CompareBookmarks.ABookmark2">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.SameBookmarks">
        <short>Compares Bookmark values for ordering in the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.SameBookmarks.Result">
        <short></short>
      </element>
      <element name="TDoubleLinkedBufIndex.SameBookmarks.ABookmark1">
        <short>First Bookmark for the comparison</short>
      </element>
      <element name="TDoubleLinkedBufIndex.SameBookmarks.ABookmark2">
        <short>Second Bookmark for the comparison</short>
      </element>

      <element name="TDoubleLinkedBufIndex.InitialiseIndex">
        <short>Initializes the index</short>
      </element>

      <element name="TDoubleLinkedBufIndex.InitialiseSpareRecord">
        <short>Initializes the spare record in the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.InitialiseSpareRecord.ASpareRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.ReleaseSpareRecord">
        <short>Releases the spare record in the index</short>
      </element>

      <element name="TDoubleLinkedBufIndex.BeginUpdate">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.AddRecord">
        <short>Adds a record to the index</short>
      </element>

      <element name="TDoubleLinkedBufIndex.InsertRecordBeforeCurrentRecord">
        <short>Inserts a record prior to the current record in the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.InsertRecordBeforeCurrentRecord.ARecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.RemoveRecordFromIndex">
        <short>Removes the record at the specified Bookmark from the index</short>
      </element>
      <element name="TDoubleLinkedBufIndex.RemoveRecordFromIndex.ABookmark">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.OrderCurrentRecord">
        <short></short>
      </element>

      <element name="TDoubleLinkedBufIndex.EndUpdate">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex" link="TBufIndex">
        <short>Implements a uni-directional index</short>
        <descr>
          <p>
            <var>TUniDirectionalBufIndex</var> is a <var>TBufIndex</var> descendant that implements a uni-directional index. TUniDirectionalBufIndex does not require bookmarks used for navigation; it is uni-directional and the next record is always available in the buffers allocated for the index.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TUniDirectionalBufIndex.FSpareBuffer"/>

      <!-- visibility: protected -->
      <element name="TUniDirectionalBufIndex.GetBookmarkSize">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetBookmarkSize.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetCurrentBuffer">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetCurrentBuffer.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetCurrentRecord">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetCurrentRecord.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetIsInitialized">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetIsInitialized.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetSpareBuffer">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetSpareBuffer.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetSpareRecord">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetSpareRecord.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetRecNo">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetRecNo.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.SetRecNo">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.SetRecNo.ARecNo">
        <short></short>
      </element>

      <!-- visibility: public -->
      <element name="TUniDirectionalBufIndex.ScrollBackward">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.ScrollBackward.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.ScrollForward">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.ScrollForward.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GetCurrent">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GetCurrent.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.ScrollFirst">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.ScrollFirst.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.ScrollLast">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.SetToFirstRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.SetToLastRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.StoreCurrentRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.RestoreCurrentRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.CanScrollForward">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.CanScrollForward.Result">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.DoScrollForward">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.StoreCurrentRecIntoBookmark">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.StoreCurrentRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.StoreSpareRecIntoBookmark">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.StoreSpareRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.GotoBookmark">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.GotoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.InitialiseIndex">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.InitialiseSpareRecord">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.InitialiseSpareRecord.ASpareRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.ReleaseSpareRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.BeginUpdate">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.AddRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.InsertRecordBeforeCurrentRecord">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.InsertRecordBeforeCurrentRecord.ARecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.RemoveRecordFromIndex">
        <short></short>
      </element>
      <element name="TUniDirectionalBufIndex.RemoveRecordFromIndex.ABookmark">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.OrderCurrentRecord">
        <short></short>
      </element>

      <element name="TUniDirectionalBufIndex.EndUpdate">
        <short></short>
      </element>

      <element name="TArrayBufIndex" link="TBufIndex">
        <short>Implements an index using an array of record buffers</short>
        <descr>
          <p>
            <var>TArrayBufIndex</var> is a <var>TBufIndex</var> descendant that implements an index using an array of record buffers. TArrayBufIndex uses an internal member with an array of pointers to the TRecordBuffer data type used for record buffers in the index. TArrayBufIndex provides support for Bookmarks in the dataset using TBufBookmark.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TRecordBuffer">TRecordBuffer</link>
          <link id="TBufBookmark">TBufBookmark</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TArrayBufIndex.FStoredRecBuf"/>
      <element name="TArrayBufIndex.FInitialBuffers"/>
      <element name="TArrayBufIndex.FGrowBuffer"/>

      <element name="TArrayBufIndex.GetRecordFromBookmark">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetRecordFromBookmark.Result">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetRecordFromBookmark.ABookmark">
        <short></short>
      </element>

      <!-- visibility: protected -->
      <element name="TArrayBufIndex.GetBookmarkSize">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetBookmarkSize.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetCurrentBuffer">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetCurrentBuffer.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetCurrentRecord">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetCurrentRecord.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetIsInitialized">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetIsInitialized.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetSpareBuffer">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetSpareBuffer.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetSpareRecord">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetSpareRecord.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetRecNo">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetRecNo.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.SetRecNo">
        <short></short>
      </element>
      <element name="TArrayBufIndex.SetRecNo.ARecNo">
        <short></short>
      </element>

      <!-- visibility: public -->
      <element name="TArrayBufIndex.FRecordArray"/>
      <element name="TArrayBufIndex.FCurrentRecInd"/>
      <element name="TArrayBufIndex.FLastRecInd"/>
      <element name="TArrayBufIndex.FNeedScroll"/>

      <element name="TArrayBufIndex.Create">
        <short></short>
      </element>
      <element name="TArrayBufIndex.Create.ADataset">
        <short></short>
      </element>

      <element name="TArrayBufIndex.ScrollBackward">
        <short></short>
      </element>
      <element name="TArrayBufIndex.ScrollBackward.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.ScrollForward">
        <short></short>
      </element>
      <element name="TArrayBufIndex.ScrollForward.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GetCurrent">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GetCurrent.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.ScrollFirst">
        <short></short>
      </element>
      <element name="TArrayBufIndex.ScrollFirst.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.ScrollLast">
        <short></short>
      </element>

      <element name="TArrayBufIndex.SetToFirstRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.SetToLastRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.StoreCurrentRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.RestoreCurrentRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.CanScrollForward">
        <short></short>
      </element>
      <element name="TArrayBufIndex.CanScrollForward.Result">
        <short></short>
      </element>

      <element name="TArrayBufIndex.DoScrollForward">
        <short></short>
      </element>

      <element name="TArrayBufIndex.StoreCurrentRecIntoBookmark">
        <short></short>
      </element>
      <element name="TArrayBufIndex.StoreCurrentRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TArrayBufIndex.StoreSpareRecIntoBookmark">
        <short></short>
      </element>
      <element name="TArrayBufIndex.StoreSpareRecIntoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TArrayBufIndex.GotoBookmark">
        <short></short>
      </element>
      <element name="TArrayBufIndex.GotoBookmark.ABookmark">
        <short></short>
      </element>

      <element name="TArrayBufIndex.InitialiseIndex">
        <short></short>
      </element>

      <element name="TArrayBufIndex.InitialiseSpareRecord">
        <short></short>
      </element>
      <element name="TArrayBufIndex.InitialiseSpareRecord.ASpareRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.ReleaseSpareRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.BeginUpdate">
        <short></short>
      </element>

      <element name="TArrayBufIndex.AddRecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.InsertRecordBeforeCurrentRecord">
        <short></short>
      </element>
      <element name="TArrayBufIndex.InsertRecordBeforeCurrentRecord.ARecord">
        <short></short>
      </element>

      <element name="TArrayBufIndex.RemoveRecordFromIndex">
        <short></short>
      </element>
      <element name="TArrayBufIndex.RemoveRecordFromIndex.ABookmark">
        <short></short>
      </element>

      <element name="TArrayBufIndex.EndUpdate">
        <short></short>
      </element>

      <element name="TRowStateValue">
        <short>
          Row state values for records in TBufDataset
        </short>
        <descr>
          <p>
            <var>TRowStateValue</var> is an enumeration type with values that indicate the state for field values in the row. Values in the enumeration indicate how fields in an update buffer differ from the fields in the original record data. Values from TRowStateValue are stored in the TRowState type, and used in data packet readers for TBufDataset (TDataPacketReader).
          </p>
        </descr>
        <seealso></seealso>
      </element>
      <element name="TRowStateValue.rsvOriginal">
        <short>Buffer contains the original value(s)</short>
      </element>
      <element name="TRowStateValue.rsvDeleted">
        <short>Buffer is for a record that will be deleted</short>
      </element>
      <element name="TRowStateValue.rsvInserted">
        <short>Buffer is for a record that will be inserted</short>
      </element>
      <element name="TRowStateValue.rsvUpdated">
        <short>Buffer is for a record that will be updated</short>
      </element>
      <element name="TRowStateValue.rsvDetailUpdates">
        <short>Buffer is for updates to a detail (child) dataset</short>
      </element>

      <element name="TRowState">
        <short>
          Stores values from the TRowStateValue enumeration
        </short>
        <descr>
          <p>
            <var>TRowState</var> is a set type used to store values from the <var>TRowStateValue</var> enumeration. TRowState is used to indicate the state for records loaded and saved using the data packet handler in TBufDataset.
          </p>
        </descr>
        <seealso>
          <link id ="TDatapacketReader">TDatapacketReader</link>
          <link id ="TFpcBinaryDatapacketReader">TFpcBinaryDatapacketReader</link>
        </seealso>
      </element>

      <element name="TDataPacketFormat">
        <short>Indicates the format used for data packets in TBufDataset</short>
        <descr></descr>
        <seealso></seealso>
      </element>
      <element name="TDataPacketFormat.dfBinary">
        <short>Data packets are in binary format</short>
      </element>
      <element name="TDataPacketFormat.dfXML">
        <short>Data packets are in XML format</short>
      </element>
      <element name="TDataPacketFormat.dfXMLUTF8">
        <short>Data packets are in UTF-8-encoded XML format</short>
      </element>
      <element name="TDataPacketFormat.dfAny">
        <short>
          Data packets can be in any supported format (detected by the packet reader)
        </short>
      </element>
      <element name="TDataPacketFormat.dfDefault">
        <short>Use the default XML format. Same as using dfAny.</short>
      </element>

      <element name="TDatapacketReaderClass">
        <short>Class type used to create data packet readers for TBufDataset</short>
      </element>

      <element name="TDataPacketReader">
        <short>
          Implements a data packet reader for TBufDataset
        </short>
        <descr>
          <p>
            <var>TDataPacketReader</var> is a <var>TObject</var> descendant which implements a data packet reader for TBufDataset. TDataPacketReader is a concept borrowed from TClientDatset in Delphi. Data packets are used to access the values in its dataset. Data packets can contain field definitions or record data. Data packets can store their values in binary format or as an XML document.
          </p>
          <p>
            TDataPacketReader provides properties and methods that allow access to the field definitions, field values, and row states for record buffers in its dataset. Methods are provided to load and save field definitions or record data using a stream. Methods are provided to recognize the storage format for the data packets in the stream.
          </p>
          <p>
            Many of the methods in TDataPacketReader are declared as virtual or abstract. They are implemented in descendent classes that use a specific data packet format, such as TFpcBinaryDatapacketReader or TXMLDatapacketReader (in <var>xmldatapacketreader.pp</var>).
          </p>
        </descr>
        <seealso>
          <link id="TFpcBinaryDatapacketReader">
            TFpcBinaryDatapacketReader
          </link>
          <link id="#fcl.XmlDatapacketReader.TXMLDatapacketReader">
            TXMLDatapacketReader
          </link>
        </seealso>
      </element>

      <!-- visibility: default -->
      <element name="TDataPacketReader.FDataSet"/>
      <element name="TDataPacketReader.FStream"/>

      <!-- visibility: protected -->
      <element name="TDataPacketReader.RowStateToByte">
        <short></short>
      </element>
      <element name="TDataPacketReader.RowStateToByte.Result">
        <short></short>
      </element>
      <element name="TDataPacketReader.RowStateToByte.ARowState">
        <short></short>
      </element>

      <element name="TDataPacketReader.ByteToRowState">
        <short></short>
      </element>
      <element name="TDataPacketReader.ByteToRowState.Result">
        <short></short>
      </element>
      <element name="TDataPacketReader.ByteToRowState.AByte">
        <short></short>
      </element>

      <element name="TDataPacketReader.RestoreBlobField">
        <short></short>
      </element>
      <element name="TDataPacketReader.RestoreBlobField.AField">
        <short></short>
      </element>
      <element name="TDataPacketReader.RestoreBlobField.ASource">
        <short></short>
      </element>
      <element name="TDataPacketReader.RestoreBlobField.ASize">
        <short></short>
      </element>

      <element name="TDataPacketReader.DataSet">
        <short>Dataset for values handled in the data packet reader</short>
      </element>

      <element name="TDataPacketReader.Stream">
        <short></short>
      </element>

      <!-- visibility: public -->
      <element name="TDataPacketReader.Create">
        <short>Constructor for the class instance</short>
      </element>
      <element name="TDataPacketReader.Create.aDataset">
        <short>aDataset associated with the data packet reader</short>
      </element>
      <element name="TDataPacketReader.Create.AStream">
        <short>Stream used to read values handled in the data packet reader</short>
      </element>

      <element name="TDataPacketReader.LoadFieldDefs">
        <short>Loads the field definitions for the dataset from a stream</short>
      </element>
      <element name="TDataPacketReader.LoadFieldDefs.AnAutoIncValue">
        <short></short>
      </element>

      <element name="TDataPacketReader.InitLoadRecords">
        <short>Called before the records are loaded</short>
      </element>

      <element name="TDataPacketReader.GetCurrentRecord">
        <short>
          Returns True if there is at least one more record available in the stream
        </short>
      </element>
      <element name="TDataPacketReader.GetCurrentRecord.Result">
        <short></short>
      </element>

      <element name="TDataPacketReader.GetRecordRowState">
        <short>
          Returns the RowState of the current record, and the order of the update
        </short>
      </element>
      <element name="TDataPacketReader.GetRecordRowState.Result">
        <short></short>
      </element>
      <element name="TDataPacketReader.GetRecordRowState.AUpdOrder">
        <short></short>
      </element>

      <element name="TDataPacketReader.RestoreRecord">
        <short>Restores a record from the stream into the current record buffer</short>
      </element>

      <element name="TDataPacketReader.GotoNextRecord">
        <short>Moves to the next record in the stream</short>
      </element>

      <element name="TDataPacketReader.StoreFieldDefs">
        <short>Saves field definitions to a stream</short>
      </element>
      <element name="TDataPacketReader.StoreFieldDefs.AnAutoIncValue">
        <short></short>
      </element>

      <element name="TDataPacketReader.StoreRecord">
        <short>Saves the current record buffer to the stream</short>
      </element>
      <element name="TDataPacketReader.StoreRecord.ARowState">
        <short></short>
      </element>
      <element name="TDataPacketReader.StoreRecord.AUpdOrder">
        <short></short>
      </element>

      <element name="TDataPacketReader.FinalizeStoreRecords">
        <short>Called after all records are stored</short>
      </element>

      <element name="TDataPacketReader.RecognizeStream">
        <short>Checks if the provided stream is of the right format for this class</short>
      </element>
      <element name="TDataPacketReader.RecognizeStream.Result">
        <short></short>
      </element>
      <element name="TDataPacketReader.RecognizeStream.AStream">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader">
        <short>
          Implements a data packet reader using binary data packets
        </short>
        <descr>
          <p>
            <var>TFpcBinaryDatapacketReader</var> is a <var>TDatapacketReader</var> descendant that implements a data packet reader using binary data packets. Binary data packets use the following layout:
          </p>
          <table>
            <tr>
              <td><b>Section</b></td>
              <td><b>Name</b></td>
              <td><b>Length</b></td>
              <td><b>Description</b></td>
            </tr>
            <tr>
              <td><b>Header</b></td>
              <td>Identification</td>
              <td>13 bytes</td>
              <td>Contains the value <var>'BinBufDataSet'</var></td>
            </tr>
            <tr>
              <td></td>
              <td>Version</td>
              <td>1 byte</td>
              <td>Version number</td>
            </tr>
            <tr>
              <td></td>
              <td>Field Definition Count</td>
              <td>2 bytes</td>
              <td>Column Layout for field definition values</td>
            </tr>
            <tr>
              <td><b>Field Definitions</b></td>
              <td>Field Name Length</td>
              <td>2 bytes</td>
              <td>Section occurs the number of times indicated in Field Definition Count</td>
            </tr>
            <tr>
              <td></td>
              <td>Field Name</td>
              <td>See above</td>
              <td>Name of the field in the dataset</td>
            </tr>
            <tr>
              <td></td>
              <td>Display Name Length</td>
              <td>2 bytes</td>
              <td></td>
            </tr>
            <tr>
              <td></td>
              <td>Display Name</td>
              <td>See above</td>
              <td>Caption for the field</td>
            </tr>
            <tr>
              <td></td>
              <td>Data Type</td>
              <td>2 bytes</td>
              <td></td>
            </tr>
            <tr>
              <td></td>
              <td>Read-Only Attribute</td>
              <td>1 byte</td>
              <td><var>0</var>=read/write, <var>1</var>=read-only</td>
            </tr>
            <tr>
              <td><b>Parameters</b></td>
              <td>AutoInc Value</td>
              <td>4 bytes</td>
              <td>Integer value for the auto-increment field type</td>
            </tr>
            <tr>
              <td><b>Row Header</b></td>
              <td>Row Marker</td>
              <td>1 byte</td>
              <td>Contains the value <var>$fe</var></td>
            </tr>
            <tr>
              <td></td>
              <td>Row State</td>
              <td>1 byte</td>
              <td><var>0</var>=original, <var>1</var>=deleted, <var>2</var>=inserted, <var>3</var>=modified</td>
            </tr>
            <tr>
              <td></td>
              <td>Update Order</td>
              <td>4 bytes</td>
              <td></td>
            </tr>
            <tr>
              <td></td>
              <td>Null Bitmap</td>
              <td>Variable length.</td>
              <td>
                1 byte required for eight fields; 2 bytes for 16 fields, etc. See Field Definition Count. Bit values are set to <var>1</var> when the corresponding field is null.
              </td>
            </tr>
            <tr>
              <td><b>Row Data</b></td>
              <td>Optional Field Length</td>
              <td>4 bytes</td>
              <td>Variable-length fields are prefixed with their length. Fixed-length fields do not require this entry. Null fields are not stored.
              </td>
            </tr>
            <tr>
              <td></td>
              <td>Field Data</td>
              <td>Bytes values for the field. See Optional Field Length.</td>
              <td>Occurs the number of times needed for Field Definition Count.</td>
            </tr>
          </table>
        </descr>
        <seealso>
          <link id="TDatapacketReader">TDatapacketReader</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <element name="TFpcBinaryDatapacketReader.FpcBinaryIdent1">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.FpcBinaryIdent2">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.StringFieldTypes">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.BlobFieldTypes">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.VarLenFieldTypes">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.FNullBitmapSize">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.FNullBitmap">
        <short></short>
      </element>
      <!-- visibility: protected -->
      <element name="TFpcBinaryDatapacketReader.FVersion">
        <short></short>
      </element>

      <!-- visibility: public -->
      <element name="TFpcBinaryDatapacketReader.Create">
        <short>Constructor for the class instance</short>
      </element>
      <element name="TFpcBinaryDatapacketReader.Create.ADataSet">
        <short>Dataset associated with the data packet reader</short>
      </element>
      <element name="TFpcBinaryDatapacketReader.Create.AStream">
        <short>Stream used to read values handled in the data packet reader</short>
      </element>

      <element name="TFpcBinaryDatapacketReader.LoadFieldDefs">
        <short>Loads field definitions using the data packet reader</short>
      </element>
      <element name="TFpcBinaryDatapacketReader.LoadFieldDefs.AnAutoIncValue">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.StoreFieldDefs">
        <short>Stores field definitions using the data packet reader</short>
      </element>
      <element name="TFpcBinaryDatapacketReader.StoreFieldDefs.AnAutoIncValue">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.InitLoadRecords">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.GetCurrentRecord">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.GetCurrentRecord.Result">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.GetRecordRowState">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.GetRecordRowState.Result">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.GetRecordRowState.AUpdOrder">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.RestoreRecord">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.GotoNextRecord">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.StoreRecord">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.StoreRecord.ARowState">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.StoreRecord.AUpdOrder">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.FinalizeStoreRecords">
        <short></short>
      </element>

      <element name="TFpcBinaryDatapacketReader.RecognizeStream">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.RecognizeStream.Result">
        <short></short>
      </element>
      <element name="TFpcBinaryDatapacketReader.RecognizeStream.AStream">
        <short></short>
      </element>

      <element name="TCustomBufDataset" link="#fcl.Db.TDBDataset">
        <short>
          Ancestor class for a database-aware buffered dataset
        </short>
        <descr>
          <p>
            <var>TCustomBufDataset</var> is a <var>TDBDataset</var> descendant that implements the ancestor class for a database-aware buffered dataset. TCustomBufDataset is an in-memory dataset that can be used as a local stand-alone dataset, or it can be used as a local buffer for updates applied to a remote dataset. TCustomBufDataset implements many features similar to those in TClientDataset in Delphi. However, it is <b>not</b> meant to be code or function compatible with TClientDataset. It is designed to provide management of the buffers used to access record data, and is used as the ancestor for classes like <var>TSQLQuery</var> and <var>TRESTBufDataset</var>.
          </p>
          <p>
            As a TDBDataset descendant, it offers access to many of the database features supported in the FCL DB package. As a TDataset descendant, it also offers access to familiar navigation and data handling methods in the ancestor class. TCustomBufDataset has features that allow local storage and retrieval  of field definitions and record data. In addition, facilities are provided that allow local indexing of record data in the dataset. There is a comprehensive parser/expression evaluator available that allows complete support for Filters in the dataset.
          </p>
          <p>
            Do not create instances of TCustomBufDataset. Use the TBufDataset descendant instead.
          </p>
          <p>
            Additional information about using TBufDataset can be found on the Lazarus Wiki at: <url href="http://wiki.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC">
              How to write in-memory database applications in Lazarus/FPC (TBufDataset)</url>.
          </p>
        </descr>
        <seealso>
          <link id="TBufDataset"/>
          <link id="#fcl.Db.TDBDataset">TDBDataset</link>
          <link id="#fcl.Db.TDataset">TDataset</link>
        </seealso>
      </element>

      <!-- visibility: private -->
      <!-- start nested types -->
      <element name="TCustomBufDataset.TIndexType">
        <short>
          Represents index types created in TBufDataset
        </short>
        <descr>
          <p>
            <var>TIndexType</var> is an enumeration type that contains values that represent the type for an index created in TBufDataset. Values in TIndexType indicate whether an index is transient or defined in the index definitions for a dataset. TIndexType is the type used for the IndexType property in TBufDatasetIndex.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.TBufDatasetIndexDefs">TBufDatasetIndexDefs</link>
          <link id="TBufDatasetIndex.IndexType">TBufDatasetIndex.IndexType</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.TIndexType.itNormal">
        <short>An index represented by an index definition</short>
      </element>
      <element name="TCustomBufDataset.TIndexType.itDefault">
        <short>An index created as the default order for a dataset</short>
      </element>
      <element name="TCustomBufDataset.TIndexType.itCustom">
        <short>A custom index created using the index field names in the dataset</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex" link="#fcl.Db.TIndexDef">
        <short>
          Implements a wrapper for an index in TBufDataset
        </short>
        <descr>
          <p>
            <var>TBufDatasetIndex</var> is a <var>TIndexDef</var> descendant that provides a wrapper for an index in TBufDataset. TBufDatasetIndex contains a type field that identifies whether the index is transient (discarded on close) or defined using an index definition. It also provides access to methods and properties for the index storage mechanism defined in TBufIndex.
          </p>
          <p>
            TBufDatasetIndex class instances are stored in the TBufDatasetIndexDefs type, and accessed using its BufIndexDefs property. TBufDatasetIndex is the type used for the CurrentIndexDef and BufIndexDefs properties in TBufDataset.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.TBufDatasetIndexDefs">TBufDatasetIndexDefs</link>
          <link id="TBufIndex"/>
          <link id="#fcl.Db.TIndexDef">TIndexDef</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.FBufferIndex"/>
      <element name="TCustomBufDataset.TBufDatasetIndex.FDiscardOnClose"/>
      <element name="TCustomBufDataset.TBufDatasetIndex.FIndexType"/>

      <element name="TCustomBufDataset.TBufDatasetIndex.Destroy">
        <short>Destructor for the class instance</short>
        <descr>
          <p>
            <var>Destroy</var> is the destructor for the class instance. Destroy calls ClearIndex to free the index storage allocated in BufferIndex. Destroy calls the inherited destructor.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndex.ClearIndex">TBufDatasetIndex.ClearIndex</link>
          <link id="TBufDatasetIndex.BufferIndex">TBufDatasetIndex.BufferIndex</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.ClearIndex">
        <short>Removes the index storage allocated to BufferIndex</short>
        <descr></descr>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.SetIndexProperties">
        <short>
          Updates property values in BufferIndex to match the collection item
        </short>
        <descr>
          <p>
            <var>SetIndexProperties</var> is used to set the value for properties in BufferIndex to the corresponding values from the class instance. SetIndexProperties assigns the following values from the collection item to BufferIndex:
          </p>
          <ul>
            <li>Index</li>
            <li>Name</li>
            <li>Fields</li>
            <li>DescFields</li>
            <li>CaseInsFields</li>
            <li>Options</li>
          </ul>
          <p>
            No actions are performed in the method when BufferIndex has not been assigned (contains <var>Nil</var>).
          </p>
        </descr>
        <seealso>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.MustBuild">
        <short>
          Indicates if the specified index must be created
        </short>
        <descr>
          <p>
            <var>MustBuild</var> is a <var>Boolean</var> function that indicates if storage for the index in aCurrent must be created. The return value is <var>True</var> when IndexType indicates a non-default index type (contains <var>itNormal</var> or <var>itCustom</var>) and aCurrent is the active index for its dataset. Default indexes (<var>itDefault</var>) are not built in the method. Custom indexes (<var>itCustom</var>) are built only when it is not the selected index for its dataset.
          </p>
          <p>
            MustBuild is used in the TCustomBufDataset.BuildIndexes method.
          </p>
        </descr>
        <seealso>
        </seealso>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndex.MustBuild.Result">
        <short>True if the index needs to be created</short>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndex.MustBuild.aCurrent">
        <short>Index to examine in the method</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.IsActiveIndex">
        <short>
          Indicates if the specified index is an active index for its dataset
        </short>
        <descr>
          <var>IsActiveIndex</var> is a <var>Boolean</var> function which indicates if the index specified in aCurrent is an active index for its dataset. The return value is <var>True</var> if the index needs to be updated after editing or removing a record in its dataset.
        </descr>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndex.IsActiveIndex.Result">
        <short>True if the index should be updated</short>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndex.IsActiveIndex.aCurrent">
        <short>Index to examine in the method</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.BufferIndex">
        <short>
          Represents the storage and access mechanism used for the index
        </short>
        <descr>
          <p>
            <var>BufferIndex</var> is a <var>TBufIndex</var> property that represents the mechanism used to store, access, and maintain values in the index. BufferIndex is the type returned when reading the value in the TBufDatasetIndexDefs.BufIndexes property.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndexDefs.BufIndexes">TBufDatasetIndexDefs.BufIndexes</link>
          <link id="TCustomBufDataset.BuildIndex">TCustomBufDataset.BuildIndex</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.DiscardOnClose">
        <short>
          Indicates if the index is discarded when its dataset is closed
        </short>
        <descr>
          <p>
            <var>DiscardOnClose</var> is a read-only <var>Boolean</var> property which indicates if the index is discarded when its dataset is closed. DiscardOnClose is normally set to <var>True</var> for default or custom indexes (where IndexType contains <var>itDefault</var> or <var>itCustom</var>) created when a dataset is opened.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.InternalClose">
            TCustomBufDataset.InternalClose
          </link>
          <link id="TCustomBufDataset.InitDefaultIndexes">
            TCustomBufDataset.InitDefaultIndexes
          </link>
          <link id="TCustomBufDataset.AddIndex">
            TCustomBufDataset.AddIndex
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndex.IndexType">
        <short>
          Indicates the type of index and controls when the index is created and/or freed
        </short>
        <descr>
          <var>IndexType</var> is a <var>TIndexType</var> property which indicates the type of index and controls when the index is created and/or freed. See IndexType for more information about the values and meanings used in the property.
        </descr>
        <seealso>
          <link id="TCustomBufDataset.InitUserIndexes">
            TCustomBufDataset.InitUserIndexes
          </link>
          <link id="TCustomBufDataset.InitDefaultIndexes">
            TCustomBufDataset.InitDefaultIndexes
          </link>
          <link id="TCustomBufDataset.InternalClose">
            TCustomBufDataset.InternalClose
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs">
        <short>
          Container for index definitions and storage added to TBufDataset
        </short>
        <descr>
          <p>
            <var>TBufDatasetIndexDefs</var> is a <var>TIndexDefs</var> descendant used as a container for index definitions and index storage added to TBufDataset. TBufDatasetIndexDefs extends the ancestor class to include methods and properties needed to access TBufDatasetIndex and TBufIndex values for an index. TBufDatasetIndexDefs is the type used for an internal member in TBufDataset which provides access to its index definitions and storage mechanisms.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.TBufDatasetIndex">TBufDatasetIndex</link>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TBufDataset.GetIndexDefs">TBufDataset.GetIndexDefs</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufDatasetIndex">
        <short>
          Gets the value for the BufIndexdefs property
        </short>
        <descr>
          <p>
            <var>GetBufDatasetIndex</var> is a <var>TBufDatasetIndex</var> function used to get the value foe the indexed BufIndexdefs property. AIndex is the ordinal position for the index  used as the return value for the method. GetBufDatasetIndex gets the specified index from the Items property for the collection.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndex">
            TBufDatasetIndex
          </link>
          <link id="TBufDatasetIndexDefs.BufIndexDefs">
            TBufDatasetIndexDefs.BufIndexDefs
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufDatasetIndex.Result">
        <short>Index stored at the specified position</short>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufDatasetIndex.AIndex">
        <short>Ordinal position for the requested index</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufferIndex">
        <short>
          Get the value for the BufIndexes property
        </short>
        <descr>
          <p>
            <var>GetBufferIndex</var> is a <var>TBufIndex</var> function used to get the value for the indexed BufIndexes property. AIndex is the ordinal position for the index storage mechanism requested in the method. GetBufferIndex gets the BufferIndex value stored at the specified position in the BufIndexdefs property.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufferIndex.Result">
        <short>Index storage mechanism at the requested position</short>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.GetBufferIndex.AIndex">
        <short>Ordinal position for the request index storage mechanism</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.Create">
        <short>
          Constructor for the class instance
        </short>
        <descr>
            <var>Create</var> calls the inherited constructor using the aDataset argument as the owner of Items added to the collection. TBufDatasetIndex is used as the class type for items in the collection.
        </descr>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.Create.aDataset">
        <short>Dataset that owns the items in the collection</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.FindIndex">
        <short>
          Locates the collection item with the specified name
        </short>
        <descr>
          <var>FindIndex</var> is a <var>TBufDatasetIndex</var> function used to locate the collection item with the name specified in IndexName. FindIndex calls the IndexOf method to find the collection item with the specified name. If a matching item is found, the corresponding value in BufIndexDefs is used as the return value. The return value is <var>Nil</var> if the specified name is not found in the collection.
        </descr>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.FindIndex.Result">
        <short>Index with the specified name, or Nil</short>
      </element>
      <element name="TCustomBufDataset.TBufDatasetIndexDefs.FindIndex.IndexName">
        <short>Name of the index to locate in the collection</short>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.BufIndexdefs">
        <short>
          Provides access to the index definitions for the dataset
        </short>
        <descr>
          BufIndexdefs is an indexed read-only TBufDatasetIndex property. BufIndexdefs provides access to the index definitions for the dataset.
        </descr>
        <seealso>
          <link id="TBufDatasetIndex">TBufDatasetIndex</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.TBufDatasetIndexDefs.BufIndexes">
        <short>
          Provides access to the index storage mechanisms allocated for the dataset
        </short>
        <descr>
          <p>
            <var>BufIndexes</var> is an indexed read-only <var>TBufIndex</var> property. BufIndexes provides access to the index storage mechanisms allocated for indexes in the dataset.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
        </seealso>
      </element>
      <!-- end nested types -->

      <element name="TCustomBufDataset.BuildCustomIndex">
        <short>
          Builds the custom index using the fields in the IndexFieldNames property
        </short>
        <descr>
          <p>
            <var>BuildCustomIndex</var> is a procedure used to build the custom index (<var>'CUSTOM_ORDER'</var>) for the dataset. The custom index uses the field names specified in the IndexFieldNames property to construct an index with the values needed to sort records in the dataset.
          </p>
          <p>
            BuildCustomIndex examines the indexes defined for the dataset to determine if an index with the name <var>'CUSTOM_ORDER'</var> already exists. If the index is not found, it is initialized by calling the InitDefaultIndexes method. Values in IndexFieldNames are examined to determine if any fields are declared using descending order. The fields names are separated and stored in either the SortFields or DescFields property for the TBufDatasetIndex.
          </p>
          <p>
            The index is assigned as the current index for the dataset. When the dataset is Active, the FetchAll method is called, and BuildIndex is called to populate the values in the index.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndex">
            TBufDatasetIndex
          </link>
          <link id="TCustomBufDataset.IndexFieldNames">
            TCustomBufDataset.IndexFieldNames
          </link>
          <link id="TCustomBufDataset.BuildIndex">
            TCustomBufDataset.BuildIndex
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.GetBufIndex" link="TCustomBufDataset.BufIndexes">
        <short>Gets the value for the BufIndexes property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetBufIndex.Result">
        <short>Index at the specified position</short>
      </element>
      <element name="TCustomBufDataset.GetBufIndex.AIndex">
        <short>Ordinal position of the index</short>
      </element>

      <element name="TCustomBufDataset.GetBufIndexDef">
        <short>Gets the value for the BufIndexDefs property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetBufIndexDef.Result">
        <short>Index definition at the specified position</short>
      </element>
      <element name="TCustomBufDataset.GetBufIndexDef.AIndex">
        <short>Ordinal position for the index definition</short>
      </element>

      <element name="TCustomBufDataset.GetCurrentIndexBuf"  link="TCustomBufDataset.CurrentIndexBuf">
        <short>Gets the value for the CurrentIndexBuf property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetCurrentIndexBuf.Result">
        <short>Value for the CurrentIndexBuf property</short>
      </element>

      <element name="TCustomBufDataset.InitUserIndexes">
        <short>
          Initializes user indexes defined for the dataset
        </short>
        <descr>
          <p>
            <var>InitUserIndexes</var> is a procedure used to initialize user indexes (as opposed to a default or custom index). InitUserIndexes examines each of the items in the BufIndexDefs property to determine if the index is a user index. When the item has the value <var>itNormal</var> in its IndexType property, the index is initialized by calling the InternalCreateIndex method.
          </p>
          <p>
            InitUserIndexes is called from the InternalOpen method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.InternalOpen">
            TCustomBufDataset.InternalOpen
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.FFileName"/>
      <element name="TCustomBufDataset.FReadFromFile"/>
      <element name="TCustomBufDataset.FFileStream"/>
      <element name="TCustomBufDataset.FDatasetReader"/>
      <element name="TCustomBufDataset.FMaxIndexesCount"/>
      <element name="TCustomBufDataset.FDefaultIndex"/>
      <element name="TCustomBufDataset.FCurrentIndexDef"/>
      <element name="TCustomBufDataset.FFilterBuffer"/>
      <element name="TCustomBufDataset.FBRecordCount"/>
      <element name="TCustomBufDataset.FReadOnly"/>
      <element name="TCustomBufDataset.FSavedState"/>
      <element name="TCustomBufDataset.FPacketRecords"/>
      <element name="TCustomBufDataset.FRecordSize"/>
      <element name="TCustomBufDataset.FIndexFieldNames"/>
      <element name="TCustomBufDataset.FIndexName"/>
      <element name="TCustomBufDataset.FNullmaskSize"/>
      <element name="TCustomBufDataset.FOpen"/>
      <element name="TCustomBufDataset.FUpdateBuffer"/>
      <element name="TCustomBufDataset.FCurrentUpdateBuffer"/>
      <element name="TCustomBufDataset.FAutoIncValue"/>
      <element name="TCustomBufDataset.FAutoIncField"/>
      <element name="TCustomBufDataset.FIndexes"/>
      <element name="TCustomBufDataset.FParser"/>
      <element name="TCustomBufDataset.FFieldBufPositions"/>
      <element name="TCustomBufDataset.FAllPacketsFetched"/>
      <element name="TCustomBufDataset.FOnUpdateError"/>
      <element name="TCustomBufDataset.FBlobBuffers"/>
      <element name="TCustomBufDataset.FUpdateBlobBuffers"/>
      <element name="TCustomBufDataset.FManualMergeChangeLog"/>
      <element name="TCustomBufDataset.FRefreshing"/>

      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct">
        <short>
          Populates the comparison structure needed to build an index for the specified arguments
        </short>
        <descr>
          <p>
            <var>ProcessFieldsToCompareStruct</var> is a procedure used to populate the comparison structure needed to build an index for the specified arguments. ProcessFieldsToCompareStruct loads the specified ordinary, descending, and case-insensitive fields into the ACompareStruct parameter. This includes setting the comparison routine used for the corresponding field data types supported in TBufDataset.
          </p>
          <p>
            ProcessFieldsToCompareStruct is used in the BuildIndex method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.BuildIndex">TCustomBufDataset.BuildIndex</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.AFields">
        <short>Fields for the comparison structure</short>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.ADescFields">
        <short>Descending fields for the comparison structure</short>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.ACInsFields">
        <short>Case-insensitive fields for the comparison structure</short>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.AIndexOptions">
        <short>Index options for the comparison structure</short>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.ALocateOptions">
        <short>Locate options for the comparison structure</short>
      </element>
      <element name="TCustomBufDataset.ProcessFieldsToCompareStruct.ACompareStruct">
        <short>Comparison structure updated in the method</short>
      </element>

      <element name="TCustomBufDataset.BufferOffset">
        <short>
          Gets the offset to the data buffer in the record
        </short>
        <descr>
          <p>
            <var>BufferOffset</var> is an <var>Integer</var> function used to get the offset to the data buffer in the record for the dataset. BufferOffset is derived by computing the size used for TBufRecLinkItem instances in the record buffer, as determined by the MaxIndexesCount property.
          </p>
          <p>
            BufferOffset is used in methods which allocate, populate, or update a record buffer in the dataset.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.BufferOffset.Result">
        <short>Offset in bytes to the data for the record buffer</short>
      </element>

      <element name="TCustomBufDataset.GetFieldSize">
        <short>
          Gets the size (in bytes) needed for data using the specified field definition
        </short>
        <descr>
          <p>
            <var>GetFieldSize</var> is a <var>LongInt</var> function used to get the storage size for the specified field definition. The return value contains the number of bytes required to store data for the field data type in FieldDef. The following field types are supported with the indicated size:
          </p>
          <dl>
            <dt>ftUnknown</dt>
            <dd>0 bytes</dd>
            <dt>ftString, ftGuid, ftFixedChar</dt>
            <dd>(field size * character size)+ 1 (Null terminator)</dd>
            <dt>ftFixedWideChar, ftWideString</dt>
            <dd>(field size + 1) * character size</dd>
            <dt>ftSmallint, ftInteger, ftAutoInc, ftword</dt>
            <dd>sizeof(LongInt)</dd>
            <dt>ftBoolean</dt>
            <dd>sizeof(WordBool)</dd>
            <dt>ftBCD</dt>
            <dd>sizeof(Currency)</dd>
            <dt>ftFmtBCD</dt>
            <dd>sizeof(TBCD)</dd>
            <dt>ftFloat, ftCurrency</dt>
            <dd>sizeof(Double)</dd>
            <dt>ftLargeInt</dt>
            <dd>sizeof(LargeInt)</dd>
            <dt>ftTime, ftDate, ftDateTime</dt>
            <dd>sizeof(TDateTime)</dd>
            <dt>ftBytes</dt>
            <dd>field size</dd>
            <dt>ftVarBytes</dt>
            <dd>field size + 2</dd>
            <dt>ftVariant</dt>
            <dd>sizeof(Variant)</dd>
            <dt>ftBlob, ftMemo, ftGraphic, ftFmtMemo, ftParadoxOle, ftDBaseOle, ftTypedBinary, ftOraBlob, ftOraClob, ftWideMemo</dt>
            <dd>sizeof(TBufBlobField)</dd>
          </dl>
          <p>
            GetFieldSize calls DatabaseErrorFmt if a field type other the previous is found in the AFields argument.
          </p>
          <p>
            GetFieldSize is used in methods that read or write data using record buffers, such as: LoadBuffer, GetFieldData, SetFieldData, BuildIndex, and CalcRecordSize. It is also used when creating TBufBlobStream class instances for Blob fields in the dataset.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.GetFieldSize.Result">
        <short>Number of bytes needed for the specified field definition</short>
      </element>
      <element name="TCustomBufDataset.GetFieldSize.FieldDef">
        <short>Field definition examined in the method</short>
      </element>

      <element name="TCustomBufDataset.CalcRecordSize">
        <short>
          Calculates the record size for defined fields in the dataset
        </short>
        <descr>
          <p>
            <var>CalcRecordSize</var> is a procedure used to calculate the total record size for defined fields in the dataset. The calculated record size includes the number of bytes required to store data for each of the field definitions in FieldDefs, as well as the number of bytes needed for the Null mask which flags fields with a <var>NULL</var> value. The calculated record size is stored in the RecordSize property.
          </p>
          <p>
            CalcRecordSize is called when the dataset is opened (sets its Active property to <var>True</var>).
          </p>
        </descr>
      </element>

      <element name="TCustomBufDataset.IntAllocRecordBuffer">
        <short>
          Allocates a record buffer for a row in the dataset
        </short>
        <descr>
          <p>
            <var>IntAllocRecordBuffer</var> is a <var>TRecordBuffer</var> function used to allocate a record buffer for a row in the dataset. The record buffer in the return value includes space needed for data and a Bookmark (allocated at runtime). IntAllocRecordBuffer calls AllocMem to reserve the number of bytes indicated by RecordSize and BuffOffset.
          </p>
          <p>
            IntAllocRecordBuffer is called in methods which create or update record buffers or indexes. IntAllocRecordBuffer is also called when the dataset is opened (sets its Active property to <var>True</var>).
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.IntAllocRecordBuffer.Result">
        <short>Record buffer for row data in the dataset</short>
      </element>

      <element name="TCustomBufDataset.IntLoadFieldDefsFromFile">
        <short>Performs actions needed to load field definitions from a file</short>
        <descr></descr>
      </element>

      <element name="TCustomBufDataset.IntLoadRecordsFromFile">
        <short>
          Performs actions needed to load records from a file
        </short>
        <descr>
          <p>
            <var>IntLoadRecordsFromFile</var> is a procedure used to perform actions needed to load records from a file. IntLoadRecordsFromFile calls CheckBiDirectional to ensure that the dataset has been opened with its UniDirectional property set to <var>False</var>. An exception is raised if UniDirectional contains <var>True</var>.
          </p>
          <p>
            IntLoadRecordsFromFile uses the internal TDataPacketReader assigned in the class instance when LoadFromFile or LoadFromStream is executed.The packet reader is used to get each of the record buffers in the data packet, examine their content, and apply them using the default index (<var>'DEFAULT_ORDER'</var>) for the dataset.
          </p>
          <p>
            The TRowState enumeration value in each record buffer is used to determine how the buffer is applied to the dataset. When needed, an internal update buffer is added to an existing record buffer. If a required record update buffer is not available, an exception is raised in the method.
          </p>
          <p>
            The AddRecord method in the default index is called as needed, and the next record buffer is read from the data packet. When all record (and update) buffers have been read and applied, the dataset is moved to the first record in the default index. The file stream and packet reader assigned in the class instance are freed.
          </p>
          <p>
            IntLoadRecordsFromFile calls the BuildIndexes method to update the indexes defined for the dataset.
          </p>
          <p>
            IntLoadRecordsFromFile is called from the InternalOpen method.
          </p>
        </descr>
        <seealso>
          <link id="TDataPacketReader">TDataPacketReader</link>
          <link id="#fcl.Db.TDataset.UniDirectional">TDataset.UniDirectional</link>
          <link id="TRecordBuffer">TRecordBuffer</link>
          <link id="TRowState">TRowState</link>
          <link id="TCustomBufDataset.InternalOpen">
            TCustomBufDataset.InternalOpen
          </link>
          <link id="TCustomBufDataset.LoadFromFile">
            TCustomBufDataset.LoadFromFile
          </link>
          <link id="TCustomBufDataset.LoadFromStream">
            TCustomBufDataset.LoadFromStream
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.GetCurrentBuffer">
        <short>
          Gets the record buffer for the current dataset state
        </short>
        <descr>
          <p>
            <var>GetCurrentBuffer</var> is a <var>TRecordBuffer</var> function used to get values in the record buffer for the current dataset state. The State property is used to determine the content in the TRecordBuffer return value. Special handling is provided for the following dataset State values:
          </p>
          <dl>
            <dt>dsCalcFields</dt>
            <dd>Uses values from the CalcBuffer property</dd>
            <dt>dsFilter</dt>
            <dd>Uses the internal Filter buffer retrieved in GetRecord</dd>
            <dt>dsRefreshFields</dt>
            <dd>Uses the record buffer as read from the active index in the dataset</dd>
          </dl>
          <p>
            For all other values in State, the content in the ActiveBuffer property is used as the return value for the method.
          </p>
          <p>
            GetCurrentBuffer is called when processing field data in the GetFieldData and SetFieldData methods. It is also called when records are filtered in the DoFilterRecord method.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.GetCurrentBuffer.Result">
        <short>Record buffer values for the current dataset state</short>
      </element>

      <element name="TCustomBufDataset.CurrentRecordToBuffer">
        <short>
          Gets the values for the current record buffer using index storage
        </short>
        <descr>
          <p>
            <var>CurrentRecordToBuffer</var> is a procedure used to get the values for the current record buffer using the index storage mechanism for the dataset.
          </p>
          <p>
            CurrentRecordToBuffer uses the CurrentIndexBuf property to access the index storage mechanism for the dataset. Its current record buffer is copied into the specified Buffer using the RecordSize for the dataset. A Bookmark is created for the current record in the index, and used to update the current record in the dataset.
          </p>
          <p>
            CurrentRecordToBuffer calls GetCalcFields to derive the calculated field values for the specified Buffer.
          </p>
          <p>
            CurrentRecordToBuffer is called from the GetRecord and ApplyUpdates methods.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.CurrentRecordToBuffer.Buffer">
        <short>Buffer with values for the current record</short>
      </element>

      <element name="TCustomBufDataset.LoadBuffer">
        <short>
          Loads the specified record buffer into the defined fields for the dataset
        </short>
        <descr>
          <p>
            <var>LoadBuffer</var> is a <var>TGetResult</var> function used to load the contents of the specified record buffer into the defined fields for the dataset. The return value is <var>grEOF</var> if not data is available, or <var>grOK</var> when values in Buffer have been loaded into the fields for the dataset.
          </p>
          <p>
            LoadBuffer ensures that defined Indexes for the dataset have been created. LoadBuffer reads the Null bitmap mask from the values in Buffer using the number of bytes indicated in NullMaskSize. LoadField is called for each of the defined fields in FieldDefs, and NullMask is updated when a field is not present in Buffer data. CreateBlobField is also called for field definitions that contain a Blob field.
          </p>
          <p>
            LoadBuffer is called from methods like GetRecord, FetchAll, and GetNextPacket.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.LoadBuffer.Result">
        <short>Status for the get operation</short>
      </element>
      <element name="TCustomBufDataset.LoadBuffer.Buffer">
        <short>Record buffer with values to load in the dataset</short>
      </element>

      <element name="TCustomBufDataset.FetchAll">
        <short>
          Retrieves all data packets for the buffered dataset
        </short>
        <descr>
          <p>
            <var>FetchAll</var> is a procedure used to retrieve all data packets for the buffered dataset. FetchAll repeatedly calls the GetNextPacket method to load data packets until the number of packets exceeds the value in the PacketRecords property, or PacketRecords contains the value <var>-1</var>.
          </p>
          <p>
            FetchAll is used in the implementation of the InternalLast, InternalCreateIndex, and BuildCustomIndex methods.
          </p>
        </descr>
      </element>

      <element name="TCustomBufDataset.GetRecordUpdateBuffer">
        <short>
          Gets the update buffer for the record with the specified bookmark
        </short>
        <descr>
          <p>
            <var>GetRecordUpdateBuffer</var> is a <var>Boolean</var> function used to get the update buffer for the record with the bookmark specified in ABookmark.
          </p>
          <p>
            IncludePrior indicates if previous update buffers are included in a search for for a deleted record.
          </p>
          <p>
            AFindNext indicates if update buffers are searched starting at the beginning of the buffer storage. When AFindNext is <var>False</var>, the update buffer after the CurrentUpdateBuffer is used as the first value in the search.
          </p>
          <p>
            The return value is <var>True</var> when a buffer is found in the internal update buffers that matches the Bookmark. The position is used as the new value for the internal CurrentUpdateBuffer.
          </p>
          <p>
            GetRecordUpdateBuffer is used in the implementation of methods in TCustomBufDataset, such as:  GetActiveRecordUpdateBuffer, GetRecordUpdateBufferCached, and GetDatasetPacket.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.GetDatasetPacket">
            TCustomBufDataset.GetDatasetPacket
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBuffer.Result">
        <short>True when an update buffer exists for the Bookmark</short>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBuffer.ABookmark">
        <short>Bookmark to locate in the update buffers</short>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBuffer.IncludePrior">
        <short>Include prior update buffers in a search for deletions</short>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBuffer.AFindNext">
        <short>Search update buffers starting at the next position</short>
      </element>

      <element name="TCustomBufDataset.GetRecordUpdateBufferCached">
        <short>
          Gets the cached update buffer for the record with the specified bookmark
        </short>
        <descr>
          <p>
            <var>GetRecordUpdateBufferCached</var> is a <var>Boolean</var> function used to get the cached update buffer for the record with the specified bookmark. ABookmark contains the bookmark to locate in the allocated update buffers for the dataset. IncludePrior indicates if update buffers for prior records are examined in the method.
          </p>
          <p>
            GetRecordUpdateBufferCached is very similar to GetRecordUpdateBuffer, but it returns <var>True</var> immediately if the current update buffer matches the requested bookmark. Otherwise, GetRecordUpdateBuffer is called to get the return value for the method.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBufferCached.Result">
        <short>True when an update buffer exists for the Bookmark</short>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBufferCached.ABookmark">
        <short>Bookmark to locate in the existing update buffers</short>
      </element>
      <element name="TCustomBufDataset.GetRecordUpdateBufferCached.IncludePrior">
        <short>Include the prior update buffer in a search for deletions</short>
      </element>

      <element name="TCustomBufDataset.GetActiveRecordUpdateBuffer">
        <short>
          Gets the update buffer for the ActiveRecord in the dataset
        </short>
        <descr>
          <p>
            <var>GetActiveRecordUpdateBuffer</var> is a <var>Boolean</var> function used to get the update buffer for the ActiveRecord in the dataset. GetActiveRecordUpdateBuffer calls GetBookmarkData to retrieve the bookmark from the values in ActiveBuffer. The Bookmark is used to get an existing update buffer for the record using the GetRecordUpdateBufferCached method. The return value is <var>True</var> if an existing update buffer was found for the active record in the dataset.
          </p>
          <p>
            GetActiveRecordUpdateBuffer is used in methods such as: GetFieldData, InternalDelete, InternalPost, RevertRecord, and UpdateStatus.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.GetFieldData">
            TCustomBufDataset.GetFieldData
          </link>
          <link id="TCustomBufDataset.RevertRecord">
            TCustomBufDataset.RevertRecord
          </link>
          <link id="TCustomBufDataset.UpdateStatus">
            TCustomBufDataset.UpdateStatus
          </link>
          <link id="#fcl.db.TDataset.ActiveBuffer">TDataset.ActiveBuffer</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetActiveRecordUpdateBuffer.Result">
        <short>True when an update buffer exists for the active record</short>
      </element>

      <element name="TCustomBufDataset.CancelRecordUpdateBuffer">
        <short>
          Cancels the update buffer at the specified position in the internal update buffers
        </short>
        <descr>
          <p>
            <var>CancelRecordUpdateBuffer</var> is a procedure used to cancel the internal update buffer at the position specified in AIndex. ABookmark is a variable parameter which is updated in the method to contain the Bookmark for the record affected in the cancel operation. The value is extracted from the update buffer (when assigned). Update buffers with no bookmark data have already been handled, and are excluded from duplicate processing in the method. The value in the bookmark is set to <var>Nil</var> when the cancel operation is successfully completed in the method.
          </p>
          <p>
            The update kind (TUpdateKind) for the specified update buffer is examined to determine the actions required in the method. The following actions are performed for update kind values:
          </p>
          <dl>
            <dt>ukModify</dt>
            <dd>
              The record is accessed by its Bookmark value using the currently selected index. The buffer data in OldValuesBuffer is moved to the record buffer for the current record in the dataset. Memory allocated to OldValuesBuffer is freed.
            </dd>
            <dt>ukDelete</dt>
            <dd>
              The update buffer for a deleted record requires access to the OldValuesBuffer in order to cancel the delete request. When it has been assigned, the next record in the currently selected index is located using the NextBookmarkData in the update buffer. Values in the update buffer are re-inserted immediately prior to the next bookmark value. Memory allocated to OldValuesBuffer is freed.
            </dd>
            <dt>ukInsert</dt>
            <dd>
              The currently selected index is used to scroll forward to the next record, and retrieve its bookmark. The update buffer for the inserted record will be deleted, and the update buffers are relinked prior to removing the record. The Bookmark value is removed from all indexes when the update buffer has been reverted, and the update buffer is freed.
            </dd>
          </dl>
          <p>
            CancelRecordUpdateBuffer is used in the implementation of the RevertRecord and CancelUpdates methods.
          </p>
        </descr>
        <seealso>
          <link id="TRecordsUpdateBuffer">TRecordsUpdateBuffer</link>
          <link id="#fcl.Db.TUpdateKind">TUpdateKind</link>
          <link id="TCustomBufDataset.RevertRecord">TCustomBufDataset.RevertRecord</link>
          <link id="TCustomBufDataset.CancelUpdates">TCustomBufDataset.CancelUpdates</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.CancelRecordUpdateBuffer.AUpdateBufferIndex">
        <short>Index position of the update buffer for the desired record</short>
      </element>
      <element name="TCustomBufDataset.CancelRecordUpdateBuffer.ABookmark">
        <short>Bookmark for the desired record</short>
      </element>

      <element name="TCustomBufDataset.ParseFilter">
        <short>
          Parses the specified filter text
        </short>
        <descr>
          <p>
            <var>ParseFilter</var> is a procedure used to parse the filter text specified in AFilter. ParseFilter ensures that a valid TBufDatasetParser exists for an Active dataset. Partial match and case-sensitivity options for the parser are updated to match the values in the FilterOptions property. The internal parser is used to parse, compile, and evaluate the expression in AFilter.
          </p>
          <p>
            No actions are performed in the method when AFilter is an empty string ()<b>''</b>).
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TBufDatasetParser">TBufDatasetParser</link>
          <link id="TCustomBufDataset.FilterOptions">TCustomBufDataset.FilterOptions</link>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.ParseFilter.AFilter">
        <short>Filter expression to evaluate in the method</short>
      </element>

      <element name="TCustomBufDataset.GetBufUniDirectional" link="TCustomBufDataset.UniDirectional">
        <short>Gets the value for the UniDirectional property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetBufUniDirectional.Result">
        <short>Value for the UniDirectional property</short>
      </element>

      <!-- index handling routines -->
      <element name="TCustomBufDataset.GetIndexDefs" link="TCustomBufDataset.IndexDefs">
        <short>Gets the value for the IndexDefs property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetIndexDefs.Result">
        <short>Value for the IndexDefs property</short>
      </element>

      <element name="TCustomBufDataset.GetIndexFieldNames" link="TCustomBufDataset.IndexFieldNames">
        <short>Gets the value for the IndexFieldNames property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetIndexFieldNames.Result">
        <short>Value for the IndexFieldNames property</short>
      </element>

      <element name="TCustomBufDataset.GetIndexName" link="TCustomBufDataset.IndexName">
        <short>Gets the value for the IndexName property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetIndexName.Result">
        <short>Value for the IndexName property</short>
      </element>

      <element name="TCustomBufDataset.SetIndexFieldNames" link="TCustomBufDataset.IndexFieldNames">
        <short>Sets the value for the IndexFieldNames property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetIndexFieldNames.AValue">
        <short>Value for the IndexFieldNames property</short>
      </element>

      <element name="TCustomBufDataset.SetIndexName" link="TCustomBufDataset.IndexName">
        <short>Sets the value for the IndexName property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetIndexName.AValue">
        <short>Value for the IndexName property</short>
      </element>

      <element name="TCustomBufDataset.SetMaxIndexesCount" link="TCustomBufDataset.MaxIndexesCount">
        <short>Sets the value for the MaxIndexesCount property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetMaxIndexesCount.aValue">
        <short>Value for the MaxIndexesCount property</short>
      </element>

      <element name="TCustomBufDataset.SetBufUniDirectional" link="TCustomBufDataset.UniDirectional">
        <short>Sets the value for the UniDirectional property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetBufUniDirectional.AValue">
        <short>New value for the UniDirectional property</short>
      </element>

      <element name="TCustomBufDataset.DefaultIndex">
        <short>
          Gets the default index for the buffered dataset
        </short>
        <descr>
          <p>
            <var>DefaultIndex</var> is a <var>TBufDatasetIndex</var> function used to get the default index for the buffered dataset. DefaultIndex uses the value stored in an internal member for the default index, and if it has not been assigned, locates the index with the name <var>'DEFAULT_ORDER'</var> in the Indexes for the dataset.
          </p>
          <p>
            DefaultIndex is used in the BuildIndex and DefaultBufferIndex methods.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndex">
            TBufDatasetIndex
          </link>
          <link id="TCustomBufDataset.BuildIndex">
            TCustomBufDataset.BuildIndex
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.DefaultIndex.Result">
        <short>Default index for the dataset</short>
      </element>

      <element name="TCustomBufDataset.DefaultBufferIndex">
        <short>
          Gets the storage mechanism used for the default index
        </short>
        <descr>
          <p>
            <var>DefaultBufferIndex</var> is a <var>TBufIndex</var> function  used to get the storage mechanism used for the default index. The return value contains the index storage mechanism allocated for DefaultIndex in its BufferIndex property, or <var>Nil</var> when DefaultIndex has not been assigned in the dataset.
          </p>
          <p>
            DefaultBufferIndex is called from methods which load packet data, or load records from a file on the local file system.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.GetNextPacket">
            TCustomBufDataset.GetNextPacket
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.DefaultBufferIndex.Result">
        <short>Index storage mechanism for the default index</short>
      </element>

      <element name="TCustomBufDataset.InitDefaultIndexes">
        <short>
          Initializes the default indexes for the dataset
        </short>
        <descr>
          <p>
            <var>InitDefaultIndexes</var> is a procedure used to initialize the default indexes for the dataset. InitDefaultIndexes ensures that two indexes exist  for the dataset:  <var>'DEFAULT_ORDER'</var> and <var>'CUSTOM_ORDER'</var>. <var>'DEFAULT_ORDER'</var> is the order in which the records arrived in the dataset (from the server or locally). <var>'CUSTOM_ORDER'</var> is an internal index constructed using values for fields specified  in the IndexFieldNames property. The custom index is populated when the dataset is not marked as a UniDirectional dataset.
          </p>
          <p>
            InitDefaultIndexes sets the current index to the <var>'DEFAULT_ORDER'</var> index.
          </p>
          <p>
            InitDefaultIndexes updates the value in the BookmarkSize property to match the value used in the current index.
          </p>
          <p>
            InitDefaultIndexes is called from the BuildCustomIndex method, and from InternalOpen when the dataset is opened (sets its Active property to <var>True</var>).
          </p>
        </descr>
      </element>

      <element name="TCustomBufDataset.BuildIndex">
        <short>
          Generates an index using the specified index definition
        </short>
        <descr>
          <p>
            <var>BuildIndex</var> is a procedure used to build the index specified in AIndex. BuildIndex creates temporary lists that are used to process index fields, descending fields, and case-insensitive fields defined in AIndex. DatabaseErrorFmt is called to raise an exception if no index fields have been defined in AIndex. ProcessFieldsToCompareStruct is called to generate the TDBCompareStruct needed to compare and sort field values in the index.
          </p>
          <p>
            BuildIndex uses the default index (<var>'DEFAULT_ORDER'</var>) to supply the records that need to be compared and sorted in the index. The Prior and Next values in its index storage are used to get the values copied into the new index. IndexCompareRecords is called to get the relative sort order for records in the index, and a Merge-Sort algorithm is used to derive the index order for the new values.
          </p>
          <p>
            BuildIndex is called from the BuildIndexes, BuildCustomIndex, and InternalCreateIndex methods.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TDBCompareStruct">TDBCompareStruct</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.BuildIndex.AIndex">
        <short>Index definition used in the method</short>
      </element>

      <element name="TCustomBufDataset.BuildIndexes">
        <short>
          Generates indexes using the index definitions for the dataset
        </short>
        <descr>
          <p>
            <var>BuildIndexes</var> is a procedure used to build the index storage for index definitions in the dataset. BuildIndexes uses the index definitions in BufIndexDefs to determine if the index storage must be rebuilt in the method. The default index (<var>'DEFAULT_ORDER'</var>) is always rebuilt. The custom index (<var>'CUSTOM_ORDER'</var>) is rebuilt only when it is the active index for the dataset.
          </p>
          <p>
            BuildIndexes calls BuildIndex using the corresponding value in BufIndex to rebuild the storage mechanism for the index.
          </p>
          <p>
            BuildIndexes is called from the IntLoadRecordsFromFile method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.TBufDatasetIndexDefs">TBufDatasetIndexDefs</link>
          <link id="TBufDatasetIndex">TBufDatasetIndex</link>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TCustomBufDataset.MaxIndexesCount">
            TCustomBufDataset.MaxIndexesCount
          </link>
          <link id="TCustomBufDataset.BuildIndex">
            TCustomBufDataset.BuildIndex
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.RemoveRecordFromIndexes">
        <short>
          Removes the record with the specified bookmark from the indexes for the dataset
        </short>
        <descr>
          <p>
            <var>RemoveRecordFromIndexes</var> is a procedure used to a remove the record with the Bookmark specified in ABookmark from all indexes in the dataset. RemoveRecordFromIndexes uses the BufIndexDefs property to visit each of the index definitions for the dataset, and calls the RemoveRecordFromIndex method in the corresponding BufIndex entry to remove the record with the specified Bookmark. The entry in BufIndex must be an active index; i.e. the index must be the current index and cannot be the custom index.
          </p>
          <p>
            RemoveRecordFromIndexes is called when a record is deleted from the dataset, or when an inserted or appended record has been cancelled.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Delete">TDataset.Delete</link>
          <link id="#fcl.Db.TDataset.Cancel">TDataset.Cancel</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.RemoveRecordFromIndexes.ABookmark">
        <short>Bookmark for the record to remove from the indexes</short>
      </element>

      <element name="TCustomBufDataset.InternalCreateIndex">
        <short>
          Performs actions needed to create the storage for the specified index definition
        </short>
        <descr>
          <p>
            <var>InternalCreateIndex</var> is a procedure used to perform actions needed to create the storage for the index definition specified in F. InternalCreateIndex ensures that the dataset is open using its Active property, and that all data packets have been read for the dataset. When Refreshing contains <var>False</var>, the FetchAll method is called to apply pending data packets for the dataset.
          </p>
          <p>
            InternalCreateIndex creates a TBufIndex descendant that is used as the storage access mechanism for the index. When UniDirectional contains <var>True</var>, a TUniDirectionalBufIndex instance is used. Otherwise, a TDoubleLinkedBufIndex instance is created for the purpose. Methods in the TBufIndex descendant are used to initialize the index, and to set its properties to the values defined in the index definition. The index access mechanism is stored in F for subsequent use in the method.
          </p>
          <p>
            If the dataset is Active, the spare record in the index is initialized and the BuildIndex method is called to populate values in the storage for the index. The value in the MaxIndexesCount property is updated when necessary.
          </p>
          <p>
            InternalCreateIndex is called from the InitUserIndexes and InternalAddIndex methods.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.InternalCreateIndex.F">
        <short>Index definition for the new index</short>
      </element>

      <element name="TCustomBufDataset.CurrentIndexBuf">
        <short>
          Provides access to the storage for the current index in the dataset
        </short>
        <descr>
          <p>
            <var>CurrentIndexBuf</var> is a read-only <var>TBufIndex</var> property which provides access to the index storage mechanism for the current index in the dataset. The property value is derived in the read access specifier using the current index definition in CurrentIndexDef. The property value is <var>Nil</var> when the storage mechanism (BufferIndex) in the CurrentIndexDef property has not been assigned.
          </p>
          <p>
            The value in CurrentIndexBuf is used frequently in TCustomBufDataset in methods which perform record navigation. It is also used in read/write operations to an index storage mechanism when records are added, deleted, updated, or refreshed from their record buffers.
          </p>
        </descr>
      </element>

      <element name="TCustomBufDataset.CurrentIndexDef">
        <short>
          Provides access to the index definition for the current index in the dataset
        </short>
        <descr>
          <p>
            <var>CurrentIndexDef</var> is a read-only <var>TBufDatasetIndex</var> property which provides access to the index definition for the current index in the dataset. CurrentIndexDef contains properties that define the index, including:
          </p>
          <dl>
            <dt>Fields</dt>
            <dd>Field names included in the index</dd>
            <dt>CaseInsFields</dt>
            <dd>Case-insensitive fields in the index</dd>
            <dt>DescFields</dt>
            <dd>Descending fields in the index</dd>
            <dt>Options</dt>
            <dd>Options settings for the index</dd>
            <dt>Expression</dt>
            <dd>Expression used to create the index</dd>
            <dt>Source</dt>
            <dd>Persistent source where the index originated</dd>
            <dt>IndexType</dt>
            <dd>Type of index</dd>
          </dl>
          <p>
            CurrentIndexDef also includes methods used access and maintain the index storage in BufferIndex.
          </p>
          <p>
            CurrentIndexDef is used in several methods which open the dataset, build or activate indexes, and add or remove record values in the index.
          </p>
        </descr>
        <seealso>
        </seealso>
      </element>

      <element name="TCustomBufDataset.BufIndexDefs">
        <short>
          Index definitions for the dataset
        </short>
        <descr>
          <p>
            <var>BufIndexDefs</var> is a read-only <var>TBufDatasetIndex</var> property which provides indexed access to index definitions for the buffered dataset. AIndex specifies the ordinal position for the desired index definition. Read access to the property value is redirected to an internal TBufDataSetIndexDefs member in the class.
          </p>
          <p>
            Use BufIndexDefs to access or modify existing indexes using the properties for the TBufDatasetIndex class instance, including:
          </p>
          <dl>
            <dt>Fields</dt>
            <dd>Field names included in the index</dd>
            <dt>CaseInsFields</dt>
            <dd>Case-insensitive fields in the index</dd>
            <dt>DescFields</dt>
            <dd>Descending fields in the index</dd>
            <dt>Options</dt>
            <dd>Options settings for the index</dd>
            <dt>Expression</dt>
            <dd>Expression used to create the index</dd>
            <dt>Source</dt>
            <dd>Persistent source where the index originated</dd>
            <dt>IndexType</dt>
            <dd>Type of index</dd>
          </dl>
          <p>
            Use the AddIndex method to add a new index definition to the dataset. Use BuildIndexes to recreate all indexes defined for the dataset. Use ClearIndexes to remove all index definitions for the dataset.
          </p>
          <p>
            Use BufIndexes to access the index storage mechanisms for the corresponding index definition.
          </p>
        </descr>
        <seealso>
          <link id="TBufDatasetIndex">TBufDatasetIndex</link>
          <link id="TCustomBufDataset.AddIndex">TCustomBufDataset.AddIndex</link>
          <link id="TCustomBufDataset.ClearIndexes">TCustomBufDataset.ClearIndexes</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.BufIndexDefs.AIndex">
        <short>Ordinal position for the desired index definition</short>
      </element>

      <element name="TCustomBufDataset.BufIndexes">
        <short>
          Index storage mechanisms for indexes defined in the dataset
        </short>
        <descr>
          <p>
            <var>BufIndexes</var> is a read-only <var>TBufIndex</var> property that provides indexed access to the storage mechanisms for indexes defined in the dataset. AIndex specifies the ordinal position for the desired index storage mechanism. Read access to the property value is redirected to an internal TBufDataSetIndexDefs member in the class.
          </p>
          <p>
            Use BufIndexes to access existing indexes using the properties for the TBufIndex class instance. Use the BufIndexDefs property to modify existing index definitions, or the AddIndex method to create a new index definition. It should not be necessary to direct modify properties, or call methods in TBufIndex class instance. These actions are handled by the dataset.
          </p>
          <p>
            BufIndexes is used in methods which perform record navigation, add or delete records in the index, and read or write values for record buffers in the dataset.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.AddIndex">TCustomBufDataset.AddIndex</link>
          <link id="TCustomBufDataset.ClearIndexes">TCustomBufDataset.ClearIndexes</link>
          <link id="TBufIndex">TBufIndex</link>
          <link id="TCustomBufDataset.TBufDatasetIndexDefs">TBufDatasetIndexDefs</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.BufIndexes.AIndex">
        <short>Ordinal position for the desired index storage mechanism</short>
      </element>

      <element name="TCustomBufDataset.SetPacketRecords" link="TCustomBufDataset.PacketRecords">
        <short>
          Sets the value for the PacketRecords property
        </short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetPacketRecords.aValue">
        <short>New value for the PacketRecords property</short>
      </element>

      <element name="TCustomBufDataset.SetRecNo" link="#fcl.Db.TDataset.RecNo">
        <short>
          Sets the value for the RecNo property
        </short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetRecNo.Value">
        <short>New value for the RecNo property</short>
      </element>

      <element name="TCustomBufDataset.GetRecNo" link="#fcl.Db.TDataset.RecNo">
        <short>Gets the value for the RecNo property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetRecNo.Result">
        <short>Value for the RecNo property</short>
      </element>

      <element name="TCustomBufDataset.GetChangeCount" link="TCustomBufDataset.ChangeCount">
        <short>Gets the value for the ChangeCount property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetChangeCount.Result">
        <short>Value for the ChangeCount property</short>
      </element>

      <element name="TCustomBufDataset.AllocRecordBuffer">
        <short>
          Allocates resources for a record buffer
        </short>
        <descr>
          <p>
            <var>AllocRecordBuffer</var> is an overridden <var>TRecordBuffer</var> function used to allocate resources needed for a record buffer in the dataset. AllocRecordBuffer implements the method defined in the ancestor class.
          </p>
          <p>
            AllocRecordBuffer calls AllocMem to reserve the memory used as the return value for the method. AllocRecordBuffer sets the record buffer size to the number of bytes determined by the RecordSize, BookmarkSize, and CalcFieldsSize properties. AllocRecordBuffer calls the InitRecord method to initialize the values in the new record buffer, including the NullMask for the record.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TRecordBuffer">TRecordBuffer</link>
          <link id="#fcl.db.TDataset.RecordSize">TDataset.RecordSize</link>
          <link id="#fcl.db.TDataset.BookmarkSize">TDataset.BookmarkSize</link>
          <link id="#fcl.db.TDataset.CalcFieldsSize">TDataset.CalcFieldsSize</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.AllocRecordBuffer.Result">
        <short>Record buffer allocated for the dataset</short>
      </element>

      <element name="TCustomBufDataset.FreeRecordBuffer">
        <short>
          Frees resources allocated for the specified record buffer
        </short>
        <descr>
          <p>
            <var>FreeRecordBuffer</var> is an overridden procedure used to free resources allocated to the record buffer in Buffer. FreeRecordBuffer calls ReAllocMem to set the length of memory reserved in Buffer to 0 (<var>zero</var>).
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.FreeRecordBuffer.Buffer">
        <short>Buffer with resources freed in the method</short>
      </element>

      <element name="TCustomBufDataset.ClearCalcFields">
        <short>Clears calculated fields in the specified record buffer</short>
        <descr>
          <p>
            <var>ClearCalcFields</var> is an overridden procedure used to clear calculated fields in the record buffer specified by Buffer. ClearCalcFields implements the method defined in the ancestor class. ClearCalcFields uses the value in CalcFieldsSize to determine the number of bytes written in the method. FillChar is called to store the value <var>#0</var> to the required number of bytes in Buffer at the offset specified by RecordSize.
          </p>
          <p>
            ClearCalcFields is used in the implementation of the CalculateFields and InitRecord methods.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.ClearCalcFields.Buffer">
        <short>Record buffer updated in the method</short>
      </element>

      <element name="TCustomBufDataset.InternalInitRecord">
        <short>
          Performs actions needed to initialize the buffer for a record in the dataset
        </short>
        <descr>
          <p>
            <var>InternalInitRecord</var> is an overridden procedure used to perform actions needed to initialize the record buffer specified in Buffer. InternalInitRecord implements the method defined in the ancestor class.
          </p>
          <p>
            InternalInitRecord calls FillChar to store the byte value <var>#0</var> to the number of bytes indicated in RecordSize. FillChar is also called to store the byte value <var>#255</var>  to the number of bytes indicated in NullMaskSize.
          </p>
          <p>
            InternalInitRecord is called from the InitRecord method.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.InternalInitRecord.Buffer">
        <short>Record buffer initialized in the method</short>
      </element>

      <element name="TCustomBufDataset.GetCanModify" link="TCustomBufDataset.CanModify">
        <short>Gets the value for the CanModify property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetCanModify.Result">
        <short>Value for the CanModify property</short>
      </element>

      <element name="TCustomBufDataset.GetRecord">
        <short>
          Gets the record buffer for the record at the specified relative position
        </short>
        <descr>
          <p>
            <var>GetRecord</var> is an overridden <var>TGetResult</var> function used to get the record buffer for the record at the position specified in GetMode. GetRecord implements the abstract method defined in the ancestor class.
          </p>
          <p>
            Buffer is the record buffer used to store the values for the requested record.
          </p>
          <p>
            GetMode indicates the relative position for the requested record, and can contain one of the values from the TGetMode enumeration.
          </p>
          <p>
            DoCheck indicates if an Exception should be raised when the return value is <var>grError</var>.
          </p>
          <p>
            The return value is a TGetResult value that indicates the result for the action performed in the method. The return value is <var>grOK</var> when the record buffer contains values for the record at the requested position.
          </p>
          <p>
            GetRecord uses the index storage in CurrentIndexBuf to determine if a record is available at the relative position requested in GetMode. When GetMode contains <var>gmPrior</var> or <var>gmNext</var>, methods in CurrentIndexDef are called to scroll to the desired record and set the return value for the method. The GetCurrent method in CurrentIndexBuf is called when GetMode contains <var>gmCurrent</var>.
          </p>
          <p>
            When the return value is <var>grOK</var>, the CurrentRecordToBuffer method is called to copy record values into the record buffer.
          </p>
          <p>
            When the dataset is Filtered, the values in Buffer are assigned to the FilterBuffer for the dataset. The dataset changes its State to <var>dsFilter</var> and calls the DoFilterRecord method to determine if the record meets the Filter condition. If the record does <b>not</b> meet the filter condition, the return value is set to <var>grError</var>. If the return value is not <var>grError</var>, the action is repeated until a record matching the filter condition is found.
          </p>
          <p>
            The return value is <var>grError</var> when no matching record is located in the dataset.
          </p>
          <p>
            GetRecord is used in the implementation of the GetNextRecord, GetPriorRecord, and Resync methods in TDataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TGetResult">
            TGetResult
          </link>
          <link id="#fcl.db.TDataset.Filtered">TDataset.Filtered</link>
          <link id="#fcl.db.TDataset.OnFilterRecord">TDataset.OnFilterRecord</link>
          <link id="#fcl.Db.TDataset.GetNextRecord">
              TDataset.GetNextRecord
          </link>
          <link id="#fcl.Db.TDataset.GetPriorRecord">
            TDataset.GetPriorRecord
          </link>
          <link id="#fcl.Db.TDataset.Resync">
            TDataset.Resync
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetRecord.Result">
        <short>Result for the operation</short>
      </element>
      <element name="TCustomBufDataset.GetRecord.Buffer">
        <short>Record buffer for the values from the dataset</short>
      </element>
      <element name="TCustomBufDataset.GetRecord.GetMode">
        <short>Relative position for the request</short>
      </element>
      <element name="TCustomBufDataset.GetRecord.DoCheck">
        <short>Indicates if an exception should be raised for error conditions</short>
      </element>

      <element name="TCustomBufDataset.GetRecordSize" link="TCustomBufDataset.RecordSize">
        <short>Gets the value for the RecordSize property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetRecordSize.Result">
        <short>Value for the RecordSize property</short>
      </element>

      <element name="TCustomBufDataset.DoBeforeClose" link="#fcl.Db.TDataset.DoBeforeClose">
        <short>
          Performs actions needed prior to closing the dataset
        </short>
        <descr>
          <p>
            <var>DoBeforeClose</var> is an overridden procedure used to perform actions needed prior to closing the dataset. DoBeforeClose calls the inherited method, and checks the value in the FileName property to determine if the dataset should be saved to a file on the local file system. When FileName is not an empty string (<b>''</b>), the SaveToFile method is called to store the dataset to the specified FileName.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.FileName">TCustomBufDataset.FileName</link>
          <link id="TCustomBufDataset.SaveToFIle">TCustomBufDataset.SaveToFIle</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalInitFieldDefs"
        link="#fcl.Db.TDataset.InternalInitFieldDefs">
        <short>
          Performs actions needed to initialize field definitions for the dataset
        </short>
        <descr>
          <p>
            <var>InternalInitFieldDefs</var> is an overridden procedure used to perform actions needed to initialize field definitions for the dataset. InternalInitFieldDefs implements the abstract method defined in the ancestor class.
          </p>
          <p>
            InternalInitFieldDefs uses the value in the FileName property to determine if field definitions can be loaded from a file on the local file system. When FileName is <b>not</b> an empty string (<b>''</b>), the IntLoadFieldDefsFromFile is called to load the field definitions for the dataset. The internal data packet reader and the file stream used in the operation are freed after loading the field definitions for the specified file name.
          </p>
          <p>
            No actions are performed in the method when FileName contains an empty string (<b>''</b>).
          </p>
          <p>
            InternalInitFieldDefs is used in the implementation of the InitFieldDefs and OpenCursor methods.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.FileName">TCustomBufDataset.FileName</link>
          <link id="#fcl.Db.TDataset.OpenCursor">TDataset.OpenCursor</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalOpen"
        link="#fcl.Db.TDataset.InternalOpen">
        <short>
          Performs actions needed to open the dataset
        </short>
        <descr>
          <p>
            <var>InternalOpen</var> is an overridden procedure used to perform actions needed when opening the dataset. InternalOpen implements the abstract method defined in the ancestor class.
          </p>
          <p>
            InternalOpen uses the FileName property (and the internal data packet reader) to determine if the dataset should be loaded from a file on the local file system. When the internal packet reader has been assigned and FileName is not an empty string (<b>''</b>), the IntLoadFieldDefsFromFile method is called to load the field definitions for the dataset from the specified file name.
          </p>
          <p>
            InternalOpen compares the sizes for the FieldDefs and Fields properties to determine if the dataset was successfully created from the specified file. If either property has a Count of 0 (<var>zero</var>), DatabaseError is called to raise an exception for the invalid dataset.
          </p>
          <p>
            Items in the Fields collection are checked to determine if an auto-increment field has been defined for the dataset. An auto-increment field is stored in an internal member used to provide quick access to the next value for the field.
          </p>
          <p>
            InternalOpen calls the InitDefaultIndexes and InitUserIndexes methods to initialize indexes used by the dataset. When IndexName is not an empty string (<b>''</b>), the indexes for the dataset are searched to locate the value in the property. If a matching index is found, it is assigned to the CurrentIndexDef property for the dataset. If IndexName is not assigned, the IndexFieldNames if examined to determine if the custom index should be built. When IndexFieldNames is not empty, the BuildCustomIndex method is called to create the custom index.
          </p>
          <p>
            InternalOpen calls the CalcRecordSize method to calculate the value for the RecordSize property. When RecordSize is known, the spare record used in each of the indexes is allocated and initialized. The ParseFilter method is called to parse the value in the Filter property.
          </p>
          <p>
            To finish opening the dataset, the internal data packet reader for the dataset is used to load record data by calling the IntLoadRecordsFromFile method. No record data is loaded if the internal data packet reader has not been assigned.
          </p>
          <p>
            InternalOpen is used in the implementation of the InternalRefresh, OpenCursor, and DoInternalOpen methods.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.FileName">
            TCustomBufDataset.FileName
          </link>
          <link id="#fcl.Db.TDataset.FieldDefs">
            TDataset.FieldDefs
          </link>
          <link id="#fcl.Db.TDataset.Fields">
            TDataset.Fields
          </link>
          <link id="TCustomBufDataset.BuildCustomIndex">
            TCustomBufDataset.BuildCustomIndex
          </link>
          <link id="#fcl.Db.TDataset.Refresh">
            TDataset.Refresh
          </link>
          <link id="#fcl.Db.TDataset.OpenCursor">
            TDataset.OpenCursor
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalClose"
        link="#fcl.Db.TDataset.InternalClose">
        <short>
          Performs actions needed to close the dataset
        </short>
        <descr>
          <p>
            <var>InternalClose</var> is an overridden procedure used to perform actions needed when closing the dataset. InternalClose implements the abstract method defined in the ancestor class. InternalClose ensures that resources allocated for buffers in the dataset (including update buffers, and blob buffers) are freed.
          </p>
          <p>
            Buffers allocated as spare records in indexes are also released. Resources allocated to index storage mechanisms in BufIndexes are freed, and any indexes defined as temporal are discarded.
          </p>
          <p>
            InternalClose also frees the internal parser used to read the content for the buffered dataset (when it has been assigned).
          </p>
          <p>
            InternalClose is used in the implementation of the InternalRefresh and CloseCursor methods.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.Refresh">
            TCustomBufDataset.Refresh
          </link>
          <link id="#fcl.Db.TDataset.CloseCursor">
            TDataset.CloseCursor
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalPost"
        link="#fcl.Db.TDataset.InternalPost">
        <short>
          Performs actions needed to post a record to the dataset
        </short>
        <descr>
          <p>
            <var>InternalPost</var> is an overridden procedure which perform actions needed to post a  record to the dataset. InternalPost calls the inherited method, which ensures that all required fields have a value. InternalPost checks for buffers allocated for updates to Blob fields in the record. Field number references in the the Blob update buffers are removed.
          </p>
          <p>
            InternalPost uses the value in the State property to determine if special actions are needed for an inserted record. When State contains <var>dsInsert</var>,  the next value for the AutoInc field in the dataset is determined (when present). The ActiveBuffer property contains the values used in field data for the new record. A record buffer is created for the new record by calling the IntAllocRecordBuffer method. A Bookmark for the record is created at the offset in RecordSize in the record buffer. A new record is added to each of the active indexes in BufIndexDefs at the position needed for the Bookmark and the content.in the record buffer.
          </p>
          <p>
            When State contains a value other than <var>dsInsert</var>, the InternalSetToRecord method is called to store the values in ActiveBuffer to the record in the dataset.
          </p>
          <p>
            InternalPost ensures that an update buffer is allocated for the record by calling GetActiveRecordUpdateBuffer. If it returns <var>False</var>, a new update buffer is created with the Bookmark to the record. When editing an existing record (State contains the value <var>dsEdit</var>), the UpdateKind in the update buffer is set to <var>ukModify</var> and a record buffer is allocated and set to the pre-editing values for the record. When State contains <var>dsInsert</var>, the UpdateKind value is set to <var>ukInsert</var> and pre-editing record buffer is cleared (set to <var>Nil</var>).
          </p>
          <p>
            When all modified values have been moved to the dataset record, the active indexes in BufIndexes call their OrderCurrentRecord method to reorder the index using  the values for the record.
          </p>
          <p>
            InternalPost is used in the implementation of the Post method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TDataset.ActiveBuffer">TDataset.ActiveBuffer</link>
          <link id="#fcl.Db.TDataset.State">TDataset.State</link>
          <link id="#fcl.Db.TUpdateKind">TUpdateKind</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalCancel"
        link="#fcl.Db.TDataset.InternalCancel">
        <short>
          Performs actions needed to cancel a pending update in the dataset
        </short>
        <descr>
          <p>
            <var>InternalCancel</var> is an overridden procedure used to perform actions needed to cancel a pending update in the dataset. InternalCancel implements the method defined in the ancestor class.
          </p>
          <p>
            InternalCancel checks for allocated update buffers in the dataset. When update buffers have been assigned, field references in the buffers are removed and memory allocated for the update buffers is freed.
          </p>
          <p>
            InternalCancel is used in the implementation of the Cancel method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Cancel">TDataset.Cancel</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalDelete"
        link="#fcl.Db.TDataset.InternalDelete">
        <short>
          Performs actions needed to delete the current record in the dataset
        </short>
        <descr>
          <p>
            <var>InternalDelete</var> is an overridden procedure used to perform actions needed to delete the current record in the dataset. InternalDelete implements the method defined in the ancestor class.
          </p>
          <p>
            InternalDelete ensures that the dataset is positioned on the record represented by the values in the ActiveBuffer property. A Bookmark for the record is used to remove the record from all of the active indexes in the dataset. InternalDelete ensures that an update buffer is allocated for the modified record using the value ukDelete in its UpdateKind property. Memory is not allocated for the pre-editing record buffer; it is not needed for delete operations. Memory allocated for the record update buffer is retained to allow restoring the record when the CancelUpdates method is called.
          </p>
          <p>
            InternalDelete is used in the implementation of the Delete method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Delete">TDataset.Delete</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalFirst"
        link="#fcl.Db.TDataset.InternalFirst">
        <short>
          Performs actions needed to move to the first record in the dataset
        </short>
        <descr>
          <p>
            <var>InternalFirst</var> is an overridden procedure used to perform actions needed to move to the first record in the dataset. InternalFirst implements the method defined in the ancestor class.
          </p>
          <p>
            InternalFirst uses the active index in CurrentIndexBuf to navigate to the first record for the selected index order.
          </p>
          <p>
            InternalFirst is used in the implementation of the First and SetCurrentRecord methods.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.First">
            TDataset.First
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalLast"
        link="#fcl.Db.TDataset.InternalLast">
        <short>
          Performs actions needed to move to the last record in the dataset
        </short>
        <descr>
          <p>
            <var>InternalLast</var> is an overridden procedure used to perform actions needed to move to the last record in the dataset. InternalLast implements the method defined in the ancestor class.
          </p>
          <p>
            InternalLast calls FetchAll to ensure that any pending data packets have been applied to the dataset. InternalLast uses the active index in CurrentIndexBuf to navigate to the last record for the selected index order.
          </p>
          <p>
            InternalLast is used in the implementation of the Last, SetCurrentRecord, and DoInsertAppend methods.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Last">
            TDataset.Last
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalSetToRecord"
        link="#fcl.Db.TDataset.InternalSetToRecord">
        <short>
          Moves the dataset to the specified record buffer
        </short>
        <descr>
          <p>
            <var>InternalSetToRecord</var> is an overridden procedure used to move the dataset to the record buffer specified in Buffer. InternalSetToRecord implements the method defined in the ancestor class.
          </p>
          <p>
            Buffer is a TRecordBuffer instance which contains the data and the bookmark for the desired record. The Bookmark is retrieved from Buffer and used to navigate the dataset to the record in the current index using its GotoBookmark method.
          </p>
          <p>
            InternalSetToRecord is used in the implementation of the SetCurrentRecord and InternalDelete methods.
          </p>
        </descr>
        <seealso>
          <link id="TRecordBuffer">
            TRecordBuffer
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.InternalSetToRecord.Buffer">
        <short>Record buffer with values to locate in the dataset</short>
      </element>

      <element name="TCustomBufDataset.InternalGotoBookmark"
        link="#fcl.Db.TDataset.InternalGotoBookmark">
        <short>
          Performs actions needed to move to the specified Bookmark in the dataset
        </short>
        <descr>
          <p>
            <var>InternalGotoBookmark</var> is an overridden procedure used to perform actions needed to move to the specified Bookmark in the dataset. InternalGotoBookmark implements the method defined in the ancestor class.
          </p>
          <p>
            InternalGotoBookmark uses the current active index in the CurrentIndexBuf property to navigate to the bookmark by calling its GotoBookmark method. ABookmark is a pointer with the bookmark value to locate in the index.
          </p>
          <p>
            InternalGotoBookmark is used in the implementation of the GotoBookmark method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.GotoBookmark">TCustomBufDataset.GotoBookmark</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.InternalGotoBookmark.ABookmark">
        <short>Bookmark to locate in the current index</short>
      </element>

      <element name="TCustomBufDataset.SetBookmarkData"
        link="#fcl.Db.TDataset.SetBookmarkData">
        <short>
          Stores the specified Bookmark data to a record buffer
        </short>
        <descr>
          <p>
            <var>SetBookmarkData</var> is an overridden procedure used to store the specified Bookmark data to the record buffer in Buffer. SetBookmarkData implements the method defined in the ancestor class.
          </p>
          <p>
            Buffer is a TRecordBuffer instance where the bookmark data will be stored. Data is a Pointer with the value for the bookmark data. The pointer in Data is cast to PBufBookmark and stored in Buffer at the offset indicated by the RecordSize property. SetBookmarkData is used in the implementation of the DoInsertAppend method.
          </p>
        </descr>
        <seealso>
          <link id="TRecordBuffer">TRecordBuffer</link>
          <link id="PBufBookmark">PBufBookmark</link>
          <link id="#fcl.db.TDataset.RecordSize">TDataset.RecordSize</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.SetBookmarkData.Buffer">
        <short>Record buffer used to store the bookmark data`</short>
      </element>
      <element name="TCustomBufDataset.SetBookmarkData.Data">
        <short>Pointer to the Bookmark data stored in the record buffer</short>
      </element>

      <element name="TCustomBufDataset.SetBookmarkFlag"
        link="#fcl.Db.TDataset.SetBookmarkFlag">
        <short>
          Stores the specified Bookmark flag value to a record buffer
        </short>
        <descr>
          <p>
            <var>SetBookmarkFlag</var> is an overridden procedure used to store the specified Bookmark flag value to the record buffer in Buffer. SetBookmarkFlag implements the method defined in the ancestor class.
          </p>
          <p>
            Buffer is a TRecordBuffer instance where the Bookmark flag value will be stored. Value is a TBookmarkFlag instance with the value for the Bookmark flag.
          </p>
          <p>
            The bookmark flag in Value is stored in Buffer at the offset indicated by the RecordSize property. SetBookmarkFlag is used in the implementation of the DoInsertAppend method.
          </p>
        </descr>
        <seealso>
          <link id="TRecordBuffer">
            TRecordBuffer
          </link>
          <link id="#fcl.db.TDataset.RecordSize">TDataset.RecordSize</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.SetBookmarkFlag.Buffer">
        <short>Record buffer where the bookmark flag is stored</short>
      </element>
      <element name="TCustomBufDataset.SetBookmarkFlag.Value">
        <short>Bookmark flag data to store in the record buffer</short>
      </element>

      <element name="TCustomBufDataset.GetBookmarkData"
        link="#fcl.Db.TDataset.GetBookmarkData">
        <short>
          Gets bookmark data from the specified record buffer
        </short>
        <descr>
          <p>
            <var>GetBookmarkData</var> is an overridden procedure used to get bookmark data from the record buffer in Buffer and store the value to the pointer in Data. GetBookmarkData implements the method defined in the ancestor class.
          </p>
          <p>
            GetBookmarkData casts the value in Buffer to a PBufBookmark type starting at the byte offset in RecordSize. The pointer is stored in the Data argument for subsequent use in calling methods.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TDataset.RecordSize">TDataset.RecordSize</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetBookmarkData.Buffer">
        <short>Record buffer with the bookmark data copied in the method</short>
      </element>
      <element name="TCustomBufDataset.GetBookmarkData.Data">
        <short>Pointer to the bookmark data in the record buffer</short>
      </element>

      <element name="TCustomBufDataset.GetBookmarkFlag"
        link="#fcl.Db.TDataset.GetBookmarkFlag">
        <short>
          Gets Bookmark flag data from the specified record buffer
        </short>
        <descr>
          <p>
            <var>GetBookmarkFlag</var> is an overridden <var>TBookmarkFlag</var> function used to get Bookmark flag data from the record buffer specified in <var>Buffer</var>. GetBookmarkFlag re-implements the method defined in the ancestor class. GetBookmarkFlag casts the value in Buffer to PBufBookmark, and uses its BookmarkFlag property as the return value for the method.
          </p>
          <p>
            The return value is set to <var>bfCurrent</var> when record data is copied to the current record. It may contain the value <var>bfBOF</var> or <var>bfEOF</var> when the record is at the beginning or end of the current index order. The value <var>bfInserted</var> indicates the record was appended or inserted.
          </p>
          <p>
            GetBookmarkFlag is used in the implementation of the BookmarkAvailable and SetCurrentRecord methods.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TBookmarkFlag">TBookmarkFlag</link>
          <link id="#fcl.db.TDataset.BookmarkAvailable">TDataset.BookmarkAvailable</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetBookmarkFlag.Result">
        <short>Bookmark flag data copied from the record buffer</short>
      </element>
      <element name="TCustomBufDataset.GetBookmarkFlag.Buffer">
        <short>Record buffer with the bookmark flag value</short>
      </element>

      <element name="TCustomBufDataset.IsCursorOpen"
        link="#fcl.Db.TDataset.IsCursorOpen">
        <short>
          Indicates if the cursor for the dataset has been opened
        </short>
        <descr>
          <p>
            <var>IsCursorOpen</var> is an overridden <var>Boolean</var> function which indicates if the cursor for the dataset has been opened. IsCursorOpen implements the method defined in the ancestor class.
          </p>
          <p>
            The ancestor class uses the cursor concept to indicate that field definitions (and the fields bound to those definitions) have already been established  for the dataset. In TCustomBufDataset (and descendent classes) this means that the InternalOpen method has been called. The return value is <var>True</var> when InternalOpen has been called. The return value is <var>False</var> when InternalClose has been called.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.FieldDefs">TDataset.FieldDefs</link>
          <link id="#fcl.Db.TDataset.Fields">TDataset.Fields</link>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
          <link id="#fcl.Db.TDataset.Open">TDataset.Open</link>
          <link id="#fcl.Db.TDataset.Close">TDataset.Close</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.IsCursorOpen.Result">
        <short>True if the cursor has been opened</short>
      </element>

      <element name="TCustomBufDataset.GetRecordCount" link="#fcl.Db.TDataset.RecordCount">
        <short>Gets the value for the RecordCount property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetRecordCount.Result">
        <short>Value for the RecordCount property</short>
      </element>

      <element name="TCustomBufDataset.ApplyRecUpdate">
        <short>
          Raises an exception. ApplyRecUpdate is not supported in TCustomBufDataset and descendent classes.
        </short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.ApplyRecUpdate.UpdateKind">
        <short>Update kind to handle in the method</short>
      </element>

      <element name="TCustomBufDataset.SetOnUpdateError" link="TCustomBufDataset.OnUpdateError">
        <short>Sets the value for the OnUpdateError property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetOnUpdateError.AValue">
        <short>New value for the OnUpdateError property</short>
      </element>

      <element name="TCustomBufDataset.SetFilterText" link="#fcl.Db.TDataset.Filter">
        <short>Sets the value in the Filter property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetFilterText.Value">
        <short>New value for the Filter property</short>
      </element>

      <element name="TCustomBufDataset.SetFiltered" link="#fcl.Db.TDataset.Filtered">
        <short>Sets the value in the Filtered property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetFiltered.Value">
        <short>New value for the Filtered property</short>
      </element>

      <element name="TCustomBufDataset.DataEvent" link="#fcl.Db.TDataSet.DataEvent">
        <short>
          Triggers an event when the dataset or its data is modified
        </short>
        <descr>
          <p>
            <var>DataEvent</var> is an overridden procedure used to trigger an event when the dataset or its data is modified. DataEvent provides support for filtering out temporary state change notifications when Event contains the value deUpdateState. DataEvent calls the inherited DataEvent method for dataset state change, dataset scrolling, field change, and layout change notifications.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.DataEvent">TDataset.DataEvent</link>
          <link id="#fcl.Db.TDataEvent">TDataEvent</link>
          <link id="#fcl.Db.TField">TField</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.DataEvent.Event">
        <short>Data event type for the notification</short>
      </element>
      <element name="TCustomBufDataset.DataEvent.Info">
        <short>Pointer to the field for the notification</short>
      </element>

      <element name="TCustomBufDataset.GetNewBlobBuffer">
        <short>
          Creates a new Blob buffer and adds it to the internal Blob buffers member
        </short>
        <descr>
          <p>
            <var>GetNewBlobBuffer</var> is a <var>PBlobBuffer</var> function used to create a new Blob buffer, and to add it to the internal member used for Blob buffers in the dataset. The return value is a PBlobBuffer type that is a pointer to the memory allocated for the blob buffer. The return value is filled with the value <var>#0</var> using the number of bytes required for the blob buffer.
          </p>
          <p>
            GetNewBlobBuffer is used in the implementation of the Create and LoadBuffer methods, and in the RestoreBlobField method in TDataPacketReader.
          </p>
        </descr>
        <seealso>
          <link id="PBlobBuffer">
            PBlobBuffer
          </link>
          <link id="TCustomBufDataset.Create">
            TCustomBufDataset.Create
          </link>
          <link id="TDataPacketReader.RestoreBlobField">
            TDataPacketReader.RestoreBlobField
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetNewBlobBuffer.Result">
        <short>Pointer to the memory allocated for the blob buffer</short>
      </element>

      <element name="TCustomBufDataset.GetNewWriteBlobBuffer">
        <short>
          Creates a new Blob update buffer and adds it to the internal list
        </short>
        <descr>
          <p>
            <var>GetNewWriteBlobBuffer</var> is a <var>PBlobBuffer</var> function used to create a new Blob update buffer, and to add it to the internal member used for Blob update buffers in the dataset. The return value is a PBlobBuffer type that is a pointer to the memory allocated for the blob buffer. The return value is filled with the value <var>#0</var> using the number of bytes required for the blob buffer.
          </p>
          <p>
            GetNewWriteBlobBuffer is very similar to GetNewBlobBuffer in operation, but does not set the value in the Origin Buffer ID for the PBlobBuffer  pointer.
          </p>
          <p>
            GetNewWriteBlobBuffer is used in the implementation of the Create method.
          </p>
        </descr>
        <seealso>
          <link id="PBlobBuffer">
            PBlobBuffer
          </link>
          <link id="TCustomBufDataset.Create">
            TCustomBufDataset.Create
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetNewWriteBlobBuffer.Result">
        <short>Pointer to the memory allocated for the blob buffer</short>
      </element>

      <element name="TCustomBufDataset.FreeBlobBuffer">
        <short>
          Frees resources allocated to the specified Blob buffer
        </short>
        <descr>
          <p>
            <var>FreeBlobBuffer</var> is a procedure used to free resources allocated to the Blob buffer specified in ABlobBuffer. No actions are performed in the  method when ABlobBuffer has not been assigned (contains <var>Nil</var>).
          </p>
          <p>
            FreeBlobBuffer calls FreeMem to free memory allocated to the Blob buffer using the Size stored in the buffer, and the pointer is released and set to <var>Nil</var>.
          </p>
          <p>
            FreeBlobBuffer is called from the InternalClose, InternalCancel, and  MergeChangeLog methods.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.MergeChangeLog">
            TCustomBufDataset.MergeChangeLog
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.FreeBlobBuffer.ABlobBuffer">
        <short>Blob buffer freed in the method</short>
      </element>

      <element name="TCustomBufDataset.InternalRefresh"
        link="#fcl.Db.TDataset.InternalRefresh">
        <short>
          Performs actions needed to refresh records in the dataset
        </short>
        <descr>
          <p>
            <var>InternalRefresh</var> is an overridden procedure used to perform actions needed to refresh the records in the buffered dataset. InternalRefresh implements the method defined in the ancestor class. InternalRefresh ensures that no update buffers have been allocated for records in the dataset. If any update buffers exist, an exception is raised by calling DatabaseError.
          </p>
          <p>
            InternalRefresh sets the value in the Refreshing property to <var>True</var>, and resets the value prior to exiting from the method. InternalRefresh sets the value in the DefaultFields property to <var>False</var> to prevent automatic field creation when the dataset is refreshed. The property  is restored to its previous value when the refresh process is completed.
          </p>
          <p>
            InternalRefresh calls FreeFieldBuffers to free any buffers allocated for fields in the dataset. ClearBuffers is called to clear values in the ActiveRecord, CurrentRecord, and RecordCount properties. Internal flags are also set to indicate that no data is present in the dataset. The content in the dataset is reloaded by calling the InternalClose and InternalOpen methods.
          </p>
          <p>
            InternalRefresh is used in the implementation of the Refresh method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Refresh">TDataset.Refresh</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.InternalAddIndex">
        <short>
          Performs actions needed to add an index to the dataset
        </short>
        <descr>
          <p>
            <var>InternalAddIndex</var> is a <var>TBufDatasetIndex</var> function used to perform actions needed to add an index to the dataset. InternalAddIndex adds a TBufDatasetIndex instance to the internal member used for indexes defined in the dataset. Arguments passed to the method are assigned to the corresponding properties in the TBufDatasetIndex instance.
          </p>
          <p>
            InternalAddIndex calls the InternalCreateIndex method using the return value as an argument.
          </p>
          <p>
            InternalAddIndex is used in the implementation of the AddIndex and InitDefaultIndexes methods.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.AddIndex">
            TCustomBufDataset.AddIndex
          </link>
          <link id="TBufDatasetIndex">TBufDatasetIndex</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.Result">
        <short>Index added to the dataset</short>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.AName">
        <short>Name for the index</short>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.AFields">
        <short>Fields included in the index</short>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.AOptions">
        <short>Options for the index</short>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.ADescFields">
        <short>Descending fields in the index</short>
      </element>
      <element name="TCustomBufDataset.InternalAddIndex.ACaseInsFields">
        <short>Case-insensitive fields in the index</short>
      </element>

      <element name="TCustomBufDataset.BeforeRefreshOpenCursor">
        <short>An empty implementation in TCustomBufDataset</short>
        <descr></descr>
      </element>

      <element name="TCustomBufDataset.DoFilterRecord">
        <short>
          Performs actions needed to filter records in the dataset
        </short>
        <descr>
          <p>
            <var>DoFilterRecord</var> is a procedure used to perform actions needed to filter records in the buffered dataset.  DoFilterRecord signals the OnFilterRecord event handler when it has been assigned in the class instance. OnFilterRecord allows the application to determine record visibility using the criteria defined in the event handler. The <var>Acceptable</var> parameter is updated in the event handler to indicate if the record matches the criteria.
          </p>
          <p>
            DoFilterRecord also uses the value in the Filter property (when assigned) to determine if the current record matches the filter condition. When Acceptable contains <var>True</var> (the default value), the internal Parser is used to extract the contents of the current record buffer.
          </p>
          <p>
            DoFilterRecord is called from the GetRecord and Locate methods when the Filtered property contains <var>True</var>.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Filter">TDataset.Filter</link>
          <link id="#fcl.Db.TDataset.Filtered">TDataset.Filtered</link>
          <link id="TCustomBufDataset.Locate">
            TCustomBufDataset.Locate
          </link>
          <link id="#fcl.db.TDataset.OnFilterRecord">TDataset.OnFilterRecord</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.DoFilterRecord.Acceptable">
        <short>Indicates if a record matches the Filter for the dataset</short>
      </element>

      <element name="TCustomBufDataset.SetReadOnly" link="TCustomBufDataset.ReadOnly">
        <short>Sets the value in the ReadOnly property</short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetReadOnly.AValue">
        <short>New value for the ReadOnly property</short>
      </element>

      <element name="TCustomBufDataset.IsReadFromPacket">
        <short>
          Indicates if dataset content was read from a data packet reader or file
        </short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.IsReadFromPacket.Result">
        <short>True when a data packet reader and file name exist for the dataset</short>
      </element>

      <element name="TCustomBufDataset.GetNextPacket">
        <short>
          Reads and applies the next data packet from the data packet reader
        </short>
        <descr>
          <p>
          <var>GetNextPacket</var> is an <var>Integer</var> function used to read the next available packet using the data packet reader for the dataset. A data packet can contain record buffers (up to the number specified in PacketRecords). The return value contains the number of record buffers read using the LoadBuffer method. The return value is <var>0</var> (<var>zero</var>) if no packet records are available for the dataset.
          </p>
          <p>
            GetNextPacket uses the default index for the dataset (DefaultBufferIndex) to include record buffers in the index for the dataset. Its AddRecord method is called to include the record buffer in the default index.
          </p>
          <p>
            GetNextPacket is used in the implementation of the FetchAll, Locate, GetRecord and GetDatasetPacket methods, and when setting the value in the RecNo property.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.PacketRecords">
            TCustomBufDataset.PacketRecords
          </link>
          <link id="TCustomBufDataset.GetDatasetPacket">
            TCustomBufDataset.GetDatasetPacket
          </link>
          <link id="TCustomBufDataset.Locate">
            TCustomBufDataset.Locate
          </link>
          <link id="#fcl.db.TDataset.RecNo">TDataset.RecNo</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetNextPacket.Result">
        <short>Number of record buffers processed in the data packet</short>
      </element>

      <element name="TCustomBufDataset.GetPacketReader">
        <short>
          Gets a Data Packet Reader using the specified data format for the dataset
        </short>
        <descr>
          <p>
            <var>GetPacketReader</var> is a <var>TDataPacketReader</var> function used to get the data packet reader needed for the specified data packet format. Format is TDataPacketFormat enumeration value that indicates the format used when reading data packets. AStream is a TStream descendant with the values read using the data packet reader.
          </p>
          <p>
            GetPacketReader checks for a TDataPacketReaderClass type which uses the specified data packet format. The class type is registered using the RegisterDatapacketReader procedure. If a match is found, the return value is set to the instantiated class type. If no match is found, the TFpcBinaryDatapacketReader class is used to examine the values in the AStream argument. If the data packets are in binary format, the class is instantiated and assigned as the return value for the method. An exception is raised if no data packet reader is found for the specified format.
          </p>
          <p>
            GetPacketReader is used in the implementation of the LoadFromStream and IntLoadFieldDefsFromFile methods.
          </p>
        </descr>
        <seealso>
          <link id="TDataPacketReader">TDataPacketReader</link>
          <link id="TCustomBufDataset.LoadFromStream">
            TCustomBufDataset.LoadFromStream
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetPacketReader.Result">
        <short>Data packet reader for the specified format</short>
      </element>
      <element name="TCustomBufDataset.GetPacketReader.Format">
        <short>Data packet format for the desired packet reader</short>
      </element>
      <element name="TCustomBufDataset.GetPacketReader.AStream">
        <short>Stream with content to examine in the method</short>
      </element>

      <element name="TCustomBufDataset.Fetch">
        <short>
          An empty implementation in TCustomBufDataset
        </short>
        <descr>
          <p>
            <var>Fetch</var> is a <var>Boolean</var> function. Fetch is essentially an empty implementation which ensures that TCustomBufDataset and descendants can be used as an in-memory dataset. Fetch always returns <var>False</var>.
          </p>
        </descr>
      </element>
      <element name="TCustomBufDataset.Fetch.Result">
        <short>Always returns False</short>
      </element>

      <element name="TCustomBufDataset.LoadField">
        <short>
          An empty implementation in TCustomBufDataset
        </short>
        <descr>
          <p>
            <var>LoadField</var> is an empty method which makes it possible to use TCustomBufDataset as an in-memory dataset. LoadField sets the value in CreateBlob to <var>False</var>. The return value for the method is always <var>False</var>.
          </p>
        </descr>
        <seealso>
        </seealso>
      </element>
      <element name="TCustomBufDataset.LoadField.Result">
        <short>Always returns False</short>
      </element>
      <element name="TCustomBufDataset.LoadField.FieldDef">
        <short>Field definition for the field loaded in the method</short>
      </element>
      <element name="TCustomBufDataset.LoadField.Buffer">
        <short>Buffer with values for the field</short>
      </element>
      <element name="TCustomBufDataset.LoadField.CreateBlob">
        <short>Indicates if Blobs fields are included in the method</short>
      </element>

      <element name="TCustomBufDataset.LoadBlobIntoBuffer">
        <short>
          Loads a Blob buffer for the specified field into the current record buffer
        </short>
        <descr>
        </descr>
      </element>
      <element name="TCustomBufDataset.LoadBlobIntoBuffer.FieldDef">
        <short>Field definition for the Blob field</short>
      </element>
      <element name="TCustomBufDataset.LoadBlobIntoBuffer.ABlobBuf">
        <short>Blob buffer loaded in the method</short>
      </element>

      <element name="TCustomBufDataset.Refreshing">
        <short>
          Indicates if the Refresh method has been called but has not completed
        </short>
        <descr>
          <p>
            <var>Refreshing</var> is a read-only Boolean property that indicates if the <var>Refresh</var> method has been called but has not completed. The value in Refreshing is updated in the InternalRefresh method, and contains <var>True</var> while the method is active. It is reset to <var>False</var> when the method has finished refreshing records in the dataset. Refreshing is used primarily to ensure that all record data has been read prior to creating indexes for the dataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Refresh">
            TDataset.Refresh
          </link>
        </seealso>
      </element>

      <!-- visibility: public -->
      <element name="TCustomBufDataset.Create">
        <short>
          Constructor for the class instance
        </short>
        <descr>
          <p>
            <var>Create</var> is an overridden constructor for the class instance. Create calls the inherited constructor using the value in AOwner as the owner of the class instance. Create sets the default value for internal members used in the implementation of the buffered dataset, including:
          </p>
          <ul>
            <li>Parser for data packets (<var>Nil</var>)</li>
            <li>Manual MergeChangeLog handling (<b>False</b>)</li>
            <li>Default AutoInc field value (<b>-1</b>)</li>
            <li>Update Buffer count (<b>0</b>)</li>
            <li>Blob Buffer count (<b>0</b>)</li>
            <li>Blob Update Buffer count (<b>0</b>)</li>
          </ul>
          <p>
            Creates sets the value for public and published properties, including:
          </p>
          <ul>
            <li>MaxIndexesCount (<b>2</b>)</li>
            <li>PacketRecords (<b>10</b>)</li>
          </ul>
          <p>
            Create allocates resources needed for the BufIndexdefs and BufIndexes properties.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.MaxIndexesCount">
            TCustomBufDataset.MaxIndexesCount
          </link>
          <link id="TCustomBufDataset.PacketRecords">
            TCustomBufDataset.PacketRecords
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.Create.AOwner">
        <short>Owner of the class instance</short>
      </element>

      <element name="TCustomBufDataset.GetFieldData"
        link="#fcl.Db.TDataset.GetFieldData">
        <short></short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.GetFieldData.Result"
        link="#fcl.Db.TDataset.GetFieldData.Result">
        <short></short>
      </element>
      <element name="TCustomBufDataset.GetFieldData.Field" link="#fcl.Db.TDataset.GetFieldData.Field">
        <short></short>
      </element>
      <element name="TCustomBufDataset.GetFieldData.Buffer" link="#fcl.Db.TDataset.GetFieldData.Buffer">
        <short></short>
      </element>
      <element name="TCustomBufDataset.GetFieldData.NativeFormat" link="#fcl.Db.TDataset.GetFieldData.NativeFormat">
        <short></short>
      </element>

      <element name="TCustomBufDataset.SetFieldData"
        link="#fcl.Db.TDataset.SetFieldData">
        <short></short>
        <descr></descr>
      </element>
      <element name="TCustomBufDataset.SetFieldData.Field" link="#fcl.Db.TDataset.SetFieldData.Field">
        <short></short>
      </element>
      <element name="TCustomBufDataset.SetFieldData.Buffer" link="#fcl.Db.TDataset.SetFieldData.Buffer">
        <short></short>
      </element>
      <element name="TCustomBufDataset.SetFieldData.NativeFormat"
        link="#fcl.Db.TDataset.SetFieldData.NativeFormat">
        <short></short>
      </element>

      <element name="TCustomBufDataset.ApplyUpdates">
        <short>
          Applies pending updates to the dataset
        </short>
        <descr>
          <p>
            <var>ApplyUpdates</var> is an overloaded procedure used to apply pending updates for the dataset.
          </p>
          <p>
            ApplyUpdates calls CheckBrowseMode and gets a bookmark for the current record in the dataset. The bookmark is used to return the dataset its original record after updates are applied and the dataset has been refreshed.
          </p>
          <p>
            MaxErrors is the threshold where errors encountered in the process cause it to be aborted. The value <var>0</var> (<var>zero</var>) indicates no errors are allowed during the apply updates process.
          </p>
          <p>
            ApplyUpdates uses the internal update buffers allocated for the dataset to perform the actions required in the method. The ApplyRecUpdate method is called for each of the update buffers. An exception raised in ApplyRecUpdate is handled in the method. When the value in MaxErrors is exceeded, the process is aborted. Otherwise, the update buffer is skipped. If the OnUpdateError exception handler has been assigned, it is signalled using the required arguments and its Response value is captured in the method. If the process is to be aborted, an exception is raised to indicate the condition.
          </p>
          <p>
            When an update buffer is successfully applied, resources allocated to its  OldValuesBuffer, Bookmark data, and the update buffer itself are freed. If all pending updates are applied successfully, and ManualMergeChangeLog contains <var>False</var>, the MergeChangeLog method is called.
          </p>
          <p>
            ApplyUpdates calls Resync to fresh the records displayed in the dataset prior to exiting from the method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.CheckBrowseMode">
            TDataset.CheckBrowseMode
          </link>
          <link id="TRecUpdateBuffer">
            TRecUpdateBuffer
          </link>
          <link id="TCustomBufDataset.OnUpdateError">
            TCustomBufDataset.OnUpdateError
          </link>
          <link id="TCustomBufDataset.ManualMergeChangeLog">
            TCustomBufDataset.ManualMergeChangeLog
          </link>
          <link id="TCustomBufDataset.MergeChangeLog">
            TCustomBufDataset.MergeChangeLog
          </link>
          <link id="#fcl.Db.TDataset.Resync">
            TDataset.Resync
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.ApplyUpdates.MaxErrors">
        <short>Maximum number of errors allowed before cancelling the operation</short>
      </element>

      <element name="TCustomBufDataset.MergeChangeLog">
        <short>
          Frees update buffers and Blob update buffer allocated for the dataset
        </short>
        <descr>
          <p>
            <var>MergeChangeLog</var> is a procedure used to free update buffers and Blob update buffer allocated for the dataset. MergeChangeLog is called from the ApplyUpdates method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.ApplyUpdates">
            TCustomBufDataset.ApplyUpdates
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.RevertRecord">
        <short>
          Reverts the current record to its original (un-edited) values
        </short>
        <descr>
          <p>
            <var>RevertRecord</var> is a procedure used to revert changes in the current record to their original (un-edited) values. RevertRecord calls the CheckBrowseMode method to ensure that the dataset is Active, and to perform event notifications for a change in dataset state.
          </p>
          <p>
            RevertRecord checks for an update buffer in the current record, and when found calls the CancelRecordUpdateBuffer method and removes the update buffer. The  Resync method is called to refresh the records in the dataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.CheckBrowseMode">
            TDataset.CheckBrowseMode
          </link>
          <link id="#fcl.Db.TDataset.Active">
            TDataset.Active
          </link>
          <link id="TCustomBufDataset.Resync">
            TCustomBufDataset.Resync
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.CancelUpdates">
        <short>
          Cancels pending updates in the dataset
        </short>
        <descr>
          <p>
            <var>CancelUpdates</var> is a procedure used to cancel pending updates to records in the dataset. CancelUpdates calls the CheckBrowseMode method to ensure that the dataset is Active, and to perform event notifications for a change in dataset state.
          </p>
          <p>
            CancelUpdates checks for existing update buffers allocated in the dataset. When update buffers exist, the CancelRecordUpdateBuffer method is called for the bookmark in each of the update buffers.
          </p>
          <p>
            CancelUpdates restores the record position when able, and calls Resync to refresh the records available in the dataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.CheckBrowseMode">
            TDataset.CheckBrowseMode
          </link>
          <link id="#fcl.Db.TDataset.Active">
            TDataset.Active
          </link>
          <link id="TCustomBufDataset.Resync">
            TCustomBufDataset.Resync
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.Destroy" link="#fcl.Db.TDataset.Destroy">
        <short>
          Destructor for the class instance
        </short>
        <descr>
          <p>
            <var>Destroy</var> is the overridden destructor for the class instance. Destroy calls the Close method if the dataset contains <var>True</var> in the Active property.
          </p>
          <p>
            Destroy frees resources allocated to the internal buffers for records, and Blob fields. The ClearIndexes method is called to free resources allocated for index storage mechanisms. Destroy calls the inherited destructor.
          </p>
        </descr>
      </element>

      <element name="TCustomBufDataset.Locate" link="#fcl.Db.TDataset.Locate">
        <short>
          Locates the first record with fields having the specified values
        </short>
        <descr>
          <p>
            <var>Locate</var> is an overridden <var>Boolean</var> function used to locate the first record with fields that match the specified search values. Locate implements the method defined in the ancestor class.
          </p>
          <p>
            KeyFields is a delimited list of field names searched in the method. The delimiter character is '<b>;</b>' (<b>Semicolon</b>).
          </p>
          <p>
            KeyValues is a Variant type with the field values required for the specified  KeyFields. When KeyFields contains a single field name, KeyValues can be represented using the same data type as the field value. When KeyFields contains more than one field name, it is a Variant array.
          </p>
          <p>
            Options is a TLocateOptions parameter that indicates the locate options enabled in the method. Options can contain zero (<b>0</b>) or more values from the TLocateOption enumeration.
          </p>
          <p>
            Locate calls the inherited method to ensure that the dataset supports bi-directional navigation. An Exception is raised if the UniDirectional property contains <var>True</var>. The value in the Active property is checked to ensure that the dataset has been opened. An Exception is raised if Active contains <var>False</var>. No actions are performed in the method when IsEmpty returns <var>True</var>.
          </p>
          <p>
            Locate initializes an internal TDBCompareStruct instance that is used when searching field values using the SearchFields and Options arguments. The search is performed by using the Filter feature; the filter fields are set to the values in KeyValues. Each record in the dataset is visited and the OnFilterRecord event is signalled to determine if the record meets the Filter criteria. The search ends when a record is found that matches the search values.
          </p>
          <p>
            The record position is changed to the marching record, or positioned at the end-of-file when no matching record is found.
          </p>
          <p>
            The return value is <var>True</var> if a record was located that matched the search values.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Locate">
            TDataset.Locate
          </link>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
          <link id="#fcl.db.TDataset.Active">TDataset.Active</link>
          <link id="#fcl.db.TDataset.Filter">TDataset.Filter</link>
          <link id="#fcl.db.TDataset.Filter">TDataset.OnFilterRecord</link>
          <link id="#fcl.Db.TLocateOptions">
            TLocateOptions
          </link>
          <link id="TDBCompareStruct">
            TDBCompareStruct
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.Locate.Result">
        <short>True if a record was found that matches the search condition</short>
      </element>
      <element name="TCustomBufDataset.Locate.KeyFields">
        <short>List of key fields examine in the method</short>
      </element>
      <element name="TCustomBufDataset.Locate.KeyValues">
        <short>Field values to match in the method</short>
      </element>
      <element name="TCustomBufDataset.Locate.Options">
        <short>Locate options enabled in the method</short>
      </element>

      <element name="TCustomBufDataset.Lookup" link="#fcl.Db.TDataset.Lookup">
        <short>
          Gets values from the first record with fields that match the search condition
        </short>
        <descr>
          <p>
            <var>Lookup</var> is an overridden <var>Variant</var> function used to get values from the first record with fields that match the specified search values. Lookup re-implements the method defined in the ancestor class. Lookup allows searching one or more fields for corresponding values, and returning a set of field values from the matching record.
          </p>
          <p>
            KeyFields is a delimited list of field names searched in the method. The delimiter character is '<b>;</b>' (<b>Semicolon</b>). The following example would represent the fields <b>LASTNAME</b> and <b>FIRSTNAME</b>:
          </p>
          <code>
'LASTNAME; FIRSTNAME'
          </code>
          <p>
            KeyValues is a Variant type with the field values required for the specified  KeyFields. When KeyFields contains a single field name, KeyValues can be represented using the same data type as the field value. When KeyFields contains more than one field name, it is a Variant array. Using the previous values for KeyFields, the following would represent  the values for '<b>JOHN SMITH</b>':
          </p>
          <code>
VarArrayOf([ 'SMITH', 'JOHN' ])
          </code>
          <p>
            ResultFields contains one or more field names which determine the field values to include in the return value for the method. Like KeyFields, it is a delimited list of field names using '<b>;</b>' (<b>Semicolon</b>) as the delimiter character.
          </p>
          <p>
            The return value is a Variant type that contains a value for each of the field names specified in the ResultFields argument. When a matching record is located, the return value  is a Variant array. The return value is <var>Null</var> if a record is not found matching the specified KeyValues in its KeyFields.
          </p>
          <code>
var
  AVarValues: Variant;
  ABufDataset: TBufDataset;

// ...

AVarValues := ABufDataset.Lookup('lastname;firstname',
  VarArrayOf(['SMITH', 'JOHN']), 'lastname;firstname;birthdate;emailaddress');

if not VarIsNull(AVarValues) then
  DoSomethingWith(AVarValues)
else
  WriteLn('No records match the search criteria');
          </code>
          <p>
            Lookup does not change the record position in the dataset. A temporary TBookmark is used to record the current record in the dataset. The record position is restored prior to exiting from the method.
          </p>
          <p>
            Lookup calls the Locate method to search records in the dataset using the KeyFields and KeyValues arguments. The Locate method may raise an Exception if the dataset is configured for UniDirectional access or when it is not Active.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.Locate">
            TCustomBufDataset.Locate
          </link>
          <link id="#fcl.db.TDataset.Active">TDataset.Active</link>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.Lookup.Result">
        <short>Variant array with values for the result fields</short>
      </element>
      <element name="TCustomBufDataset.Lookup.KeyFields">
        <short>List of fields used to find matching values in the lookup</short>
      </element>
      <element name="TCustomBufDataset.Lookup.KeyValues">
        <short>Variant array with field values to match in the method</short>
      </element>
      <element name="TCustomBufDataset.Lookup.ResultFields">
        <short>List of fields to include in the result for the method</short>
      </element>

      <element name="TCustomBufDataset.UpdateStatus"
        link="#fcl.Db.TDataset.UpdateStatus">
        <short>
          Gets the update status for the current record in the dataset
        </short>
        <descr>
          <p>
            <var>UpdateStatus</var> is an overridden <var>TUpdateStatus</var> function used to get the update status for the current record in the dataset. UpdateStatus re-implements the method defined in the ancestor class. The return value is a member of the TUpdateStatus enumeration, and includes the following values:
          </p>
          <dl>
            <dt>usUnmodified</dt>
            <dd>Record has not been modified</dd>
            <dt>usModified</dt>
            <dd>Record has been modified</dd>
            <dt>usInserted</dt>
            <dd>Records was appended or inserted</dd>
            <dt>usDeleted</dt>
            <dd>Record has been deleted</dd>
          </dl>
          <p>
            UpdateStatus calls GetActiveRecordUpdateBuffer to get the update buffer for the ActiveRecord. When an update buffer exists for the record, its UpdateKind property is used as the return value for the method. The return value is <var>usUnmodified</var> when an update buffer does not exist for ActiveRecord.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TUpdateStatus">TUpdateStatus</link>
          <link id="#fcl.db.TDataset.ActiveRecord">TDataset.ActiveRecord</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.UpdateStatus.Result">
        <short>Update status value for the record</short>
      </element>

      <element name="TCustomBufDataset.CreateBlobStream"
        link="#fcl.Db.TDataset.CreateBlobStream">
        <short>
          Creates a Blob stream for the specified field with the given permissions
        </short>
        <descr>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.CreateBlobStream">TDataset.CreateBlobStream</link>
          <link id="#fcl.Db.TField">TField</link>
          <link id="#fcl.Db.TBlobStreamMode">TBlobStreamMode</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.CreateBlobStream.Result">
        <short>Stream created for the Blob field</short>
      </element>
      <element name="TCustomBufDataset.CreateBlobStream.Field">
        <short>Field for the Blob stream</short>
      </element>
      <element name="TCustomBufDataset.CreateBlobStream.Mode">
        <short>Operations allowed on the stream</short>
      </element>

      <element name="TCustomBufDataset.AddIndex">
        <short>
          Adds an index definition to the dataset
        </short>
        <descr>
          <p>
            <var>AddIndex</var> is a procedure used to add an index definition to the dataset. AddIndex calls CheckBiDirectional to ensure that the UniDirectional property contains <var>False</var>. An exception is raised if UniDirectional contains <var>True</var>.
          </p>
          <p>
            AddIndex checks for a valid value in the AFields argument. An Exception is raised when AFields is an empty string (<b>''</b>). In addition, an index added to an Active dataset cannot cause the index count to exceed the value in MaxIndexesCount. An Exception is raised if the index count would be larger than the value in MaxIndexesCount.
          </p>
          <p>
            AddIndex creates a TBufDatasetIndex instance by calling InternalAddIndex using the arguments passed to the method. The new index is temporary when the Active property contains <var>True</var>; it will be discarded when the dataset is closed.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
          <link id="TBufDatasetIndex">TBufDatasetIndex</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.AddIndex.AName">
        <short>Name which identifies the index</short>
      </element>
      <element name="TCustomBufDataset.AddIndex.AFields">
        <short>Fields included in the index</short>
      </element>
      <element name="TCustomBufDataset.AddIndex.AOptions">
        <short>Options enabled for the index</short>
      </element>
      <element name="TCustomBufDataset.AddIndex.ADescFields">
        <short>List of descending fields</short>
      </element>
      <element name="TCustomBufDataset.AddIndex.ACaseInsFields">
        <short>List of case-insensitive fields</short>
      </element>

      <element name="TCustomBufDataset.ClearIndexes">
        <short>
          Clears index storage in the dataset
        </short>
        <descr>
          <p>
            <var>ClearIndexes</var> is a procedure procedure used to clear the storage for all indexes in the dataset. ClearIndexes uses the index definitions in the BufIndexDefs property and calls the ClearIndex method for each of the indexes.
          </p>
          <p>
            ClearIndexes calls CheckInactive to ensure that the dataset has its Active property set to <var>False</var>. Indexes cannot be cleared if the dataset has been opened.
          </p>
          <p>
            ClearIndexes is used when the value in the UniDirectional property is changed to <var>False</var>, and in the destructor for the class instance.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.db.TDataset.CheckInactive">TDataset.CheckInactive</link>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.GetDatasetPacket">
        <short>
          Builds a data packet representing the content in the buffered dataset
        </short>
        <descr>
          <p>
            <var>GetDatasetPacket</var> is a procedure used to build the data packet that represents the content in the buffered dataset. GetDatasetPacket ensures that record buffers and update buffers in the dataset are normalized and applied using the data packet handler (n.b. I won't call it a reader if it writes) in AWriter.
          </p>
          <p>
            GetDatasetPacket sequentially processes records using the currently selected index for the dataset. Update buffers for a given record are consolidate in the record buffer, and the record buffer to stored to the data packet handler. The current record position is not changed when the process has been completed.
          </p>
          <p>
            GetDatasetPacket stores the current value for an auto-increment field used in the dataset in the AWriter argument. The internal data packet handler for the dataset is set to <var>Nil</var> when the method is completed.
          </p>
          <p>
            GetDatasetPacket is used in the implementation of the SaveToStream method.
          </p>
        </descr>
        <seealso>
          <link id="TDataPacketReader">TDataPacketReader</link>
          <link id="TCustomBufDataset.SaveToStream">TCustomBufDataset.SaveToStream</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.GetDatasetPacket.AWriter">
        <short>Data packet handler for the operation</short>
      </element>

      <element name="TCustomBufDataset.SetDatasetPacket">
        <short>
          Retrieves and applies the data packet with the content for the dataset
        </short>
        <descr>
          <p>
            SetDatasetPacket is a procedure used to retrieve and apply the data packet with the content for the dataset.
          </p>
          <p>
            AReader is a TDataPacketReader instance that is used to read and apply the content for the buffered dataset. It is temporarily assigned to an internal member in the calls instance.
          </p>
          <p>
            SetDatasetPacket calls the Open method to load the field definitions and record data for the dataset.
          </p>
          <p>
            SetDatasetPacket is used in the implementation of the LoadFromStream method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Open">
            TDataset.Open
          </link>
          <link id="TCustomBufDataset.LoadFromStream">
            TCustomBufDataset.LoadFromStream
          </link>
          <link id="TDataPacketReader">
            TDataPacketReader
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.SetDatasetPacket.AReader">
        <short>Data packet reader for the operation</short>
      </element>

      <element name="TCustomBufDataset.LoadFromStream">
        <short>
          Loads the dataset from the specified stream using the given data format
        </short>
        <descr>
          <p>
            <var>LoadFromStream</var> is a procedure used to load field definitions and record data for the dataset from the specified stream. LoadFromStream is an overloaded variant of the method defined in the ancestor class and includes a parameter for the desired data packet format.
          </p>
          <p>
            AStream is a TStream descendant with the values to load in the dataset. Format indicates the expected format for data packets in the stream. It is a variable argument that can be modified when a packet reader is located for the stream.
          </p>
          <p>
            LoadFromStream calls CheckBiDirectional to ensure that the UniDirectional property in the dataset is set to <var>False</var>. An exception is raised when UniDirectional contains <var>True</var>. Index creation requires navigating in a non-default record order that would not be supported in a uni-directional dataset.
          </p>
          <p>
            LoadFromStream creates a temporary TDataPacketReader class instance using the  value specified in the Format argument. Format is a variable argument and can be modified when SetDatasetPacket is used to examine the packet reader and its stream. Calling SetDatasetPacket sets in motion a relatively complicated  sequence of events that eventually get the field definitions and record data loaded into the dataset. The journey starts with Open.
          </p>
          <p>
            LoadFromStream is used in the implementation of the LoadFromFile method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
          <link id="TCustomBufDataset.SetDatasetPacket">
            TCustomBufDataset.SetDatasetPacket
          </link>
          <link id="TCustomBufDataset.LoadFromFile">
            TCustomBufDataset.LoadFromFile
          </link>
          <link id="#fcl.Db.TDataset.Open">
            TDataset.Open
          </link>
          <link id="TDataPacketFormat">
            TDataPacketFormat
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.LoadFromStream.AStream">
        <short>Stream with values loaded into the dataset</short>
      </element>
      <element name="TCustomBufDataset.LoadFromStream.Format">
        <short>Format expected in the stream</short>
      </element>

      <element name="TCustomBufDataset.SaveToStream">
        <short>
          Saves the dataset to the specified stream using the given data format
        </short>
        <descr>
          <p>
            SaveToStream is a procedure used to store the content in the buffered dataset to a stream using the specified data format.
          </p>
          <p>
            AStream is a TStream decendant where the field definitions and record data in the dataset will be stored.
          </p>
          <p>
            Format is a TDataPacketFormat enumeration value that indicates the format used to stored dataset values into the stream. The default value is dfBinary, and causes the TFpcBinaryDatapacketReader to be used to write the content for the dataset. Use another value from the TDataPacketFormat enumeration to select a different registered data packet handler that handles the associated data format.
          </p>
          <p>
            SaveToStream calls the CheckBiDirectional method to ensure that the dataset is opened for bi-directional record navigation. An Exception is raised if the UniDirectional property contains True. A temporary TDataPacketReader instance is created using the specified Format. SaveToStream calls the GetDatasetPacket method using the data packet handler to store the content in the buffered dataset to the stream.
          </p>
          <p>
            SaveToStream is used in the implementation of the SaveToFile method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
          <link id="TCustomBufDataset.SaveToFile">
            TCustomBufDataset.SaveToFile
          </link>
          <link id="TDataPacketFormat">
            TDataPacketFormat
          </link>
          <link id="RegisterDatapacketReader">
            RegisterDatapacketReader
          </link>
          <link id="TDataPacketReaderClass">
            TDataPacketReaderClass
          </link>
          <link id="TDataPacketReader">
            TDataPacketReader
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.SaveToStream.AStream">
        <short>Stream used to save values</short>
      </element>
      <element name="TCustomBufDataset.SaveToStream.Format">
        <short>Format used for values saved to the stream</short>
      </element>

      <element name="TCustomBufDataset.LoadFromFile">
        <short>
          Loads the dataset from the specified file using the given format
        </short>
        <descr>
          <p>
            <var>LoadFromFile</var> is a procedure used to load field definitions and record data from a file stored using a given data format.
          </p>
          <p>
            AFileName is a String with the name of the file on the local file system. AFileName can contain optional path information, and should include the base  name and extension for the file. For example:
          </p>
          <code>
ABufDataset.LoadFromFile('/usr/data/sample.bds');
          </code>
          <p>
            or
          </p>
          <code>
ABufDataset.LoadFromFile('c:\usr\data\sample.bds');
          </code>
          <p>
            The default value for AFileName is an empty string (<b>''</b>). When AFileName is an empty string, the value in the FileName property is used to load the content for the dataset. An Exception will be raised if both AFileName and FileName contain an empty String (<b>''</b>), or when the file name does not exist on the local file system.
          </p>
          <p>
            Format is a TDataPacketFormat enumeration value that indicates the storage format used for the content in the file. The default value for Format is dfAny, and indicates that any registered data packet handler can be used to read the values in the file. Other values in the TDataPacketFormat enumeration indicate a specific registered data packet handler supporting a specific format should be used.
          </p>
          <p>
            LoadFromFile creates a temporary TFileStream instance for the specified file name, and calls the LoadFromStream method to load the dataset from the stream using the specified file Format.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.FileName">
            TCustomBufDataset.FileName
          </link>
          <link id="TCustomBufDataset.LoadFromStream">
            TCustomBufDataset.LoadFromStream
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.LoadFromFile.AFileName">
        <short>File name with values loaded in the method</short>
      </element>
      <element name="TCustomBufDataset.LoadFromFile.Format">
        <short>Format for values loaded in the method</short>
      </element>

      <element name="TCustomBufDataset.SaveToFile">
        <short>
          Saves the dataset to the specified file using the given data format
        </short>
        <descr>
          <p>
            <var>SaveToFile</var> is a procedure used to save the content from the buffered dataset to the specified file name using a given data format.
          </p>
          <p>
            AFileName is a String with the name of the file on the local file system. AFileName can contain optional path information, and should include the base  name and extension for the file. For example:
          </p>
          <code>
ABufDataset.SaveToFile('/usr/data/sample.bds');
          </code>
          <p>
            or
          </p>
          <code>
ABufDataset.SaveToFile('c:\usr\data\sample.bds');
          </code>
          <p>
            The default value for AFileName is an empty string (<b>''</b>). When AFileName is omitted, the value in the FileName property will be used to save the content for the dataset. An Exception will be raised if both AFileName and FileName contain an empty String (<b>''</b>).
          </p>
          <p>
            Format is a TDataPacketFormat enumeration value that indicates the storage format to use when writing the content for the file. The default value for Format is dfBinary, and indicates that the TFpcBinaryDatapacketReader should be used to write the values in the file. Other values in the TDataPacketFormat enumeration indicate a specific registered data packet handler supporting a specific format should be used.
          </p>
          <p>
            SaveToFile creates a temporary TFileStream instance for the specified file name, and calls the SaveToStream method to store the dataset to the stream in the required Format.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.FileName">
            TCustomBufDataset.FileName
          </link>
          <link id="TCustomBufDataset.SaveToStream">
            TCustomBufDataset.SaveToStream
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.SaveToFile.AFileName">
        <short>File name where the dataset is stored`</short>
      </element>
      <element name="TCustomBufDataset.SaveToFile.Format">
        <short>Format for values written in the method</short>
      </element>

      <element name="TCustomBufDataset.CreateDataset">
        <short>
          Creates the dataset using its field definitions or bound fields
        </short>
        <descr>
          <p>
            <var>CreateDataset</var> is a procedure used to create the structure for a buffered dataset using the field definitions or bound fields defined in the class instance. CreateDataset calls CheckInactive to ensure that the dataset has not been opened. An exception is raised if the Active property contains <var>True</var>.
          </p>
          <p>
            CreateDataset uses the FieldDefs and Fields properties to determine which property contains the structure for the dataset.
          </p>
          <p>
            Preference is given to the FieldDefs property; it will be used even when bound fields have been created in the Fields property. The CreateFields method is called to created a bound field for each of the items in the FieldDefs collection.
          </p>
          <p>
            The Fields property is used when there are no field definitions present in the FieldDefs property. The InitFieldDefsFromFields method is called to create a field definition in FieldDefs for each of the items in Fields collection. The BindFields method is called to link the items in Fields to the corresponding field definition in FieldDefs.
          </p>
          <p>
            An exception is raised if both FieldDefs and Fields are empty.
          </p>
          <p>
            CreateDataset sets the default value for an auto-increment field in the dataset to <var>1</var>. CreateDataset also temporarily clears any value assigned to the FileName property; this is done to ensure that fields and record data in an existing file are not loaded when the dataset is Opened. The method is designed to create a dataset with field definitions but no record data. The value in FileName is restored after Open has been called in the method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
          <link id="#fcl.Db.TDataset.FieldDefs">TDataset.FieldDefs</link>
          <link id="#fcl.Db.TDataset.Fields">TDataset.Fields</link>
          <link id="#fcl.Db.TDataset.Open">TDataset.Open</link>
          <link id="TCustomBufDataset.FileName">TCustomBufDataset.FileName</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.Clear">
        <short>
          Clears the content in the dataset
        </short>
        <descr>
          <p>
            <var>Clear</var> is a procedure used to remove the content in the buffered dataset. Clear calls the Close method to ensure that the dataset has set its Active property to <var>False</var> and removed indexes and their storage. Clear removes field definition and bound fields in the FieldDefs and Fields properties.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Close">TDataset.Close</link>
          <link id="#fcl.Db.TDataset.FieldDefs">TDataset.FieldDefs</link>
          <link id="#fcl.Db.TDataset.Fields">TDataset.Fields</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.BookmarkValid">
        <short>
          Determines if the specified Bookmark is valid for the dataset
        </short>
        <descr>
          <p>
            <var>BookmarkValid</var> is an overridden <var>Boolean</var> function used to determine if the Bookmark specified in ABookmark is valid for the currently selected index in the dataset. BookmarkValid re-implements the method defined in the ancestor class.
          </p>
          <p>
            BookmarkValid requires an index be selected and assigned to the CurrentIndexBuf property. The return value is <var>False</var> when no index is available to validate the bookmark. The return value is <var>True</var> when ABookmark represents a valid bookmark in the selected index.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex.BookmarkValid">
            TBufIndex.BookmarkValid
          </link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.BookmarkValid.Result">
        <short>True when the bookmark is valid</short>
      </element>
      <element name="TCustomBufDataset.BookmarkValid.ABookmark">
        <short>Bookmark examined in the method</short>
      </element>

      <element name="TCustomBufDataset.CompareBookmarks">
        <short>
          Gets the relative sort order for the specified Bookmarks
        </short>
        <descr>
          <p>
            CompareBookmarks is an overridden LongInt function used to get the relative sort order for the specified Bookmarks. CompareBookmarks re-implements the method defined in the ancestor class.
          </p>
          <p>
            The return value indicates the relative sort order for the compared bookmark values, and uses the following values and meanings:
          </p>
          <dl>
            <dt>0</dt>
            <dd>
              Compared bookmarks have the same value
            </dd>
            <dt>1</dt>
            <dd>
              Bookmark1 is not assigned, or Bookmark1 occurs after Bookmark2 in the index
            </dd>
            <dt>-1</dt>
            <dd>
              Bookmark2 is not assigned, or the current index has not been assigned (default value), or Bookmark1 occurs before Bookmark2 in the index
            </dd>
          </dl>
          <p>
            When the CurentIndexBuf property is assigned, its CompareBookmarks method is used to compare the bookmarks and get the return value for the method.
          </p>
        </descr>
        <seealso>
          <link id="TBufIndex">TBufIndex</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.CompareBookmarks.Result">
        <short>Relative sort order for the specified bookmarks</short>
      </element>
      <element name="TCustomBufDataset.CompareBookmarks.Bookmark1">
        <short>Bookmark used in the comparison</short>
      </element>
      <element name="TCustomBufDataset.CompareBookmarks.Bookmark2">
        <short>Bookmark used in the comparison</short>
      </element>

      <element name="TCustomBufDataset.CopyFromDataset">
        <short>
          Loads field definitions and optional data from another dataset
        </short>
        <descr>
          <p>
            <var>CopyFromDataset</var> is a procedure used to copy field definitions and optional record data for the dataset specified in the Dataset argument. CopyData indicates if record data is included in the copy operation. When CopyData contains <var>False</var>, only the field definitions in DataSet are copied to the buffered dataset.
          </p>
          <p>
            CopyFromDataset calls the Close method prior to performing actions that clear field definitions and bound fields in the buffered dataset. A field definition is added to FieldDefs for each of the fields in DataSet. CreateDataset is  called to bind Fields to the new field definitions, and to initialize index storage for the buffered dataset.
          </p>
          <p>
            When CopyData contains <var>True</var>, record data from DataSet is copied to the class instance on a row-by-row and field-by-field basis. Append is called to add a new record. Internal lists with field definitions and bound fields are used to copy field values in the record (including Blob fields). Null field values are not copied in the method. The DataType for the field is used to read/write the field values. For blob fields, a temporary stream is used to read/write the field value. The Post method is called to store appended values in the buffered dataset. If an exception is raised, the Cancel method is called to clear the update and the exception is re-raised.
          </p>
          <p>
            The record position in DataSet is restored to its original position prior to exiting from the method.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Close">TDataset.Close</link>
          <link id="#fcl.Db.TDataset.Cancel">TDataset.Cancel</link>
          <link id="#fcl.Db.TDataset.FieldDefs">TDataset.FieldDefs</link>
        </seealso>
      </element>
      <element name="TCustomBufDataset.CopyFromDataset.Dataset">
        <short>Dataset with values copied in the method</short>
      </element>
      <element name="TCustomBufDataset.CopyFromDataset.CopyData">
        <short>True when record data is included in the copy operation</short>
      </element>

      <element name="TCustomBufDataset.ChangeCount">
        <short>
          Number of pending changes for the dataset
        </short>
        <descr>
          <p>
            <var>ChangeCount</var> is a read-only <var>Integer</var> property that indicates the number of pending changes in the update buffers allocated for the dataset. Update buffers are maintained in an internal TRecordsUpdateBuffer member when methods that add, delete, or modify record data are called.
          </p>
          <p>
            ChangeCount can be used in an application to determine if ApplyUpdates, CancelUpdates, or RevertRecord should be called prior to closing the dataset.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.ApplyUpdates">TCustomBufDataset.ApplyUpdates</link>
          <link id="TCustomBufDataset.CancelUpdates">TCustomBufDataset.CancelUpdates</link>
          <link id="TCustomBufDataset.RevertRecord">TCustomBufDataset.RevertRecord</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.MaxIndexesCount">
        <short>
          Maximum number of indexes available in the dataset
        </short>
        <descr>
          <p>
            <var>MaxIndexesCount</var> is an <var>Integer</var> property which indicates the maximum number of indexes available in the buffered dataset. The default value for the property is <var>2</var>; representing the automatically created default index (<var>'DEFAULT_ORDER'</var>) and custom index (<var>'CUSTOM_ORDER'</var>).
          </p>
          <p>
            The value in MaxIndexesCount is assigned when the dataset is created, and updated when an index is added using the AddIndex method. Setting the value in the MaxIndexesCount property requires the dataset to be inactive (Active property contains <var>False</var>). An exception is raised if the dataset is Active, or the new value for the property is less than <var>2</var>. You should not need to directly assign the value for the MaxIndexesCount property.
          </p>
          <p>
            MaxIndexesCount is used in the BufferOffset method to determine the amount of space reserved for TBufRecLinkItem items in a record buffer for the dataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
          <link id="TCustomBufDataset.AddIndex">TCustomBufDataset.AddIndex</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.ReadOnly" link="#fcl.Db.TDataset.ReadOnly">
        <short>
          Indicates if records can be added, deleted, or modified in the dataset
        </short>
        <descr>
          <p>
            <var>ReadOnly</var> is a <var>Boolean</var> property which indicates if records can be added, deleted, or modified in the buffered dataset. The default value for the property is <var>False</var>.
          </p>
          <p>
            ReadOnly is used, along with UniDirectional, when getting the value for the CanModify property. The dataset can be modified when both source properties contain the value <var>False</var>, which results in setting CanModify to <var>True</var>. Applications can set the value in ReadOnly to <var>False</var> to ensure that the dataset is not changeable regardless of the value in the UniDirectional property.
          </p>
          <p>
            Use the items in the FieldDefs property to control whether individual fields defined for the dataset include the read-only field attribute. Use the items in the Fields property to determine if a field bound to a field definition has its ReadOnly property set.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.UniDirectional">
            TCustomBufDataset.UniDirectional
          </link>
          <link id="#fcl.Db.TDataset.CanModify">
            TDataset.CanModify
          </link>
          <link id="#fcl.Db.TDataset.FieldDefs">
            TDataset.FieldDefs
          </link>
          <link id="#fcl.Db.TDataset.Fields">
            TDataset.Fields
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.ManualMergeChangeLog">
        <short>
          Indicates if the update change log can be manually merged
        </short>
        <descr>
          <p>
            <var>ManualMergeChangeLog</var> is a <var>Boolean</var> property which indicates if the update change log for the dataset can be manually merged. The default value for the property is <var>False</var>.
          </p>
        </descr>
      </element>

      <!-- visibility: published -->
      <element name="TCustomBufDataset.FileName">
        <short>
          File name on the local file system used to load or store the dataset
        </short>
        <descr>
          <p>
            <var>FileName</var> is a <var>TFileName</var> property that contains a file name on the local file system used to load and/or store the content for the buffered dataset. FileName can contain optional path information needed to access the file, and must contain a valid file name and extension for the local file system. For example:
          </p>
          <code>
ABufDataset.FileName := '/usr/data/sample.bds';
          </code>
          <p>
            or
          </p>
          <code>
ABufDataset.FileName := 'c:\usr\data\sample.bds';
          </code>
          <p>
            The value in FileName is used in methods which load and/or save field definitions and record data for the dataset, such as LoadFromFile and SaveToFile. In these methods, FileName is used as the default value for an omitted file name argument in the method(s). FileName is used in the implementation of other methods such as: InternalInitFieldDef, IntLoadFieldDefsFromFile, and InternalOpen.
          </p>
          <p>
            FileName is also used in the DoBeforeClose method called when the value in the Active property is changed from <var>True</var> to <var>False</var>. In this method, FileName is passed to SaveToFile as an argument prior to exiting from the method.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.LoadFromFile">
            TCustomBufDataset.LoadFromFile
          </link>
          <link id="TCustomBufDataset.SaveToFile">
            TCustomBufDataset.SaveToFile
          </link>
          <link id="#fcl.Db.TDataset.Open">
            TDataset.Open
          </link>
          <link id="#fcl.Db.TDataset.Close">
            TDataset.Close
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.PacketRecords">
        <short>
          Number of records allowed in a data packet handled by the packet reader
        </short>
        <descr>
          <p>
            <var>PacketRecords</var> is an <var>Integer</var> property that indicates the number of records allowed in a data packet handled by the packet reader. The default value for the property is <var>10</var>, and is intended to minimize memory and network overhead when processing data packets for the dataset. The value in PacketRecords is used  in the FetchAll and GetNextPacket methods.
          </p>
          <p>
            Additional validation is performed when setting the value for PacketRecords to ensure that the new property value is not <var>-1</var>. An exception is raised when <var>-1</var> is the value for the property.
          </p>
        </descr>
        <seealso>
        </seealso>
      </element>

      <element name="TCustomBufDataset.OnUpdateError">
        <short>
          Event handler signalled when an error occurs while updating records
        </short>
        <descr>
          <p>
            <var>OnUpdateError</var> is a <var>TResolverErrorEvent</var> property that represents the event handler signalled when an error occurs while applying updates to records in the buffered dataset. OnUpdateError allows an application to perform actions needed when a database exception occurs in the <var>ApplyUpdates</var> method.
          </p>
          <p>
            Applications can assign a procedure to the event handler that implements the TResolverErrorEvent signature to respond to the event notification. The procedure must set the value in its Response argument to indicate whether the condition is handled, ignored, or can be re-raised in the calling method.
          </p>
        </descr>
        <seealso>
          <link id="TResolverErrorEvent">TResolverErrorEvent</link>
          <link id="TCustomBufDataset.ApplyUpdates">TCustomBufDataset.ApplyUpdates</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.IndexDefs">
        <short>
          Index definitions for the dataset
        </short>
        <descr>
          <p>
            <var>IndexDefs</var> is a read-only <var>TIndexDefs</var> property that contains the index definitions for the buffered dataset. Read access to the property is redirected to an internal TBufDatasetIndexDefs member used for the BufIndexDefs and BufIndexes properties.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.TBufDatasetIndexDefs">TBufDatasetIndexDefs</link>
          <link id="#fcl.Db.TIndexDefs">TIndexDefs</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.IndexName">
        <short>
          Name of the selected index for the dataset
        </short>
        <descr>
          <p>
            <var>IndexName</var> is a <var>String</var> property that contains the name for the selected index for the buffered dataset. The value in IndexName is read from the corresponding property in CurrentIndexBuf (when assigned).
          </p>
          <p>
            If an empty string (<b>''</b>) is assigned to the property, the the default index is selected for the dataset and the property is updated to <var>'DEFAULT_ORDER'</var>. Any other value assigned to the property is compared to the index definitions for the dataset. If an index cannot be located with the specified name, a Database exception is raised. The index with the specified name (and its storage mechanism) are stored in the CurrentIndexDef and CurrentIndexBuf properties. If the dataset is Active, the Resync method is called to enable the new record order for the dataset.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.Active">
            TDataset.Active
          </link>
          <link id="#fcl.Db.TDataset.Resync">
            TDataset.Resync
          </link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.IndexFieldNames">
        <short>
          Field names included in the custom index
        </short>
        <descr>
          <p>
            <var>IndexFieldNames</var> is a <var>String</var> property which contains a delimited list of field names used to construct the custom index for the dataset. Field names are separated by a <b>';'</b> (Semicolon) delimiter. An optional directive can be included after the field name to indicate that the field should be in descending sort order in the index. For example:
          </p>
          <code>
ABufDataset.IndexFieldNames := 'LASTNAME; FIRSTNAME; UPDATETS DESC';
          </code>
          <p>
            Please note that the leading Space character before the <b>DESC</b> directive is <b>required</b>.
          </p>
          <p>
            When reading the value in IndexFieldNames, the current index is examined to  determine if any of the field names in the property also appear in the descending fields for the index. The <var>' DESC'</var> directive is added to the field name to indicate the sort order used in the index.
          </p>
          <p>
            Setting the value for the property to an empty string (<b>''</b>) causes the default index (<var>'DEFAULT_ORDER'</var>) to be used as the selected index in the CurrentIndexDef property. When the new property value is not an empty string, and the dataset is Active, the BuildCustomIndex method is called to populate index storage with values for the specified field names.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset.CurrentIndexDef">
            TCustomBufDataset.CurrentIndexDef
          </link>
          <link id="#fcl.db.TDataset.Active">TDataset.Active</link>
        </seealso>
      </element>

      <element name="TCustomBufDataset.UniDirectional" link="#fcl.Db.TDataset.UniDirectional">
        <short>
          Indicates if the dataset is for uni-directional navigation only
        </short>
        <descr>
          <p>
            <var>UniDirectional</var> is a <var>Boolean</var> property which indicates if the dataset is limited to forward navigation through its records. The default value for the property is <var>False</var>.
          </p>
          <p>
            UniDirectional is used, along with ReadOnly, to determine if the dataset can be modified. When either property contains <var>True</var>, the dataset cannot be changed.
          </p>
          <p>
            UniDirectional also affects the index storage metchanisms created when indexes are initialized. When UniDIrectional is <var>True</var>, the TUniDirectionalBufIndex type (which omits bookmarks and record numbers) is used for index storage mechanisms. In addition, the custom index (<var>'CUSTOM_ORDER'</var>) is skipped for the uni-directional dataset.
          </p>
          <p>
            Setting the value in UniDirectional requires the dataset to be inactive (Active contains <var>False</var>) to allow existing indexes to be cleared and rebuilt. Use the Close method to cl;osr the dataset prior to setting the value in the UniDIrectional property.
          </p>
        </descr>
        <seealso>
          <link id="#fcl.Db.TDataset.ReadOnly">TDataset.ReadOnly</link>
          <link id="#fcl.Db.TDataset.Active">TDataset.Active</link>
        </seealso>
      </element>

      <element name="TBufDataset" link="TCustomBufDataset">
        <short>
          Implements a database-aware buffered dataset
        </short>
        <descr>
          <p>
            <var>TBufDataset</var> is a <var>TCustomBufDataset</var> descendant that implements a database-aware buffered dataset. TBufDataset is an in-memory dataset that can be used as a local stand-alone dataset, or it can be used as a local buffer for updates applied to a remote dataset. TBufDataset implements many features similar to those in TClientDataset in Delphi. However, it is <b>not</b> meant to be code or function compatible with TClientDataset. It is designed to provide management of the buffers used to access record data, and is used as the ancestor for classes like TSQLQuery and TRESTBufDataset.
          </p>
          <p>
            As a TDBDataset descendent, it offers access to many of the database features supported in the FCL DB package. As a TDataset descendent, it also offers access to familiar navigation and data handling methods in the ancestor class. TBufDataset has features that allow local storage and retrieval  of field definitions and record data. In addition, facilities are provided that allow local indexing of record data in the dataset. There is a comprehensive parser/expression evaluator available that allows complete support for Filters in the dataset.
          </p>
          <p>
            TBufDataset sets the visibility for properties and methods defined in the ancestor class.
          </p>
          <p>
            Additional information about using TBufDataset can be found on the Lazarus Wiki at: <url href="http://wiki.freepascal.org/How_to_write_in-memory_database_applications_in_Lazarus/FPC">
              How to write in-memory database applications in Lazarus/FPC (TBufDataset)</url>.
          </p>
        </descr>
        <seealso>
          <link id="TCustomBufDataset">TCustomBufDataset</link>
          <link id="#fcl.Db.TDataset">TDataset</link>
          <link id="#fcl.Db.TDBDataset">TDBDataset</link>
        </seealso>
      </element>

      <element name="TBufDataset.MaxIndexesCount" link="TCustomBufDataset.MaxIndexesCount"/>
      <element name="TBufDataset.FieldDefs" link="#fcl.Db.TDataset.FieldDefs"/>
      <element name="TBufDataset.Active" link="#fcl.Db.TDataset.Active"/>
      <element name="TBufDataset.AutoCalcFields" link="#fcl.Db.TDataset.AutoCalcFields"/>
      <element name="TBufDataset.Filter" link="#fcl.Db.TDataset.Filter"/>
      <element name="TBufDataset.Filtered" link="#fcl.Db.TDataset.Filtered"/>
      <element name="TBufDataset.ReadOnly" link="#fcl.Db.TDataset.ReadOnly"/>
      <element name="TBufDataset.AfterCancel" link="#fcl.Db.TDataset.AfterCancel"/>
      <element name="TBufDataset.AfterClose" link="#fcl.Db.TDataset.AfterClose"/>
      <element name="TBufDataset.AfterDelete" link="#fcl.Db.TDataset.AfterDelete"/>
      <element name="TBufDataset.AfterEdit" link="#fcl.Db.TDataset.AfterEdit"/>
      <element name="TBufDataset.AfterInsert" link="#fcl.Db.TDataset.AfterInsert"/>
      <element name="TBufDataset.AfterOpen" link="#fcl.Db.TDataset.AfterOpen"/>
      <element name="TBufDataset.AfterPost" link="#fcl.Db.TDataset.AfterPost"/>
      <element name="TBufDataset.AfterScroll" link="#fcl.Db.TDataset.AfterScroll"/>
      <element name="TBufDataset.BeforeCancel" link="#fcl.Db.TDataset.BeforeCancel"/>
      <element name="TBufDataset.BeforeClose" link="#fcl.Db.TDataset.BeforeClose"/>
      <element name="TBufDataset.BeforeDelete" link="#fcl.Db.TDataset.BeforeDelete"/>
      <element name="TBufDataset.BeforeEdit" link="#fcl.Db.TDataset.BeforeEdit"/>
      <element name="TBufDataset.BeforeInsert" link="#fcl.Db.TDataset.BeforeInsert"/>
      <element name="TBufDataset.BeforeOpen" link="#fcl.Db.TDataset.BeforeOpen"/>
      <element name="TBufDataset.BeforePost" link="#fcl.Db.TDataset.BeforePost"/>
      <element name="TBufDataset.BeforeScroll" link="#fcl.Db.TDataset.BeforeScroll"/>
      <element name="TBufDataset.OnCalcFields" link="#fcl.Db.TDataset.OnCalcFields"/>
      <element name="TBufDataset.OnDeleteError" link="#fcl.Db.TDataset.OnDeleteError"/>
      <element name="TBufDataset.OnEditError" link="#fcl.Db.TDataset.OnEditError"/>
      <element name="TBufDataset.OnFilterRecord" link="#fcl.Db.TDataset.OnFilterRecord"/>
      <element name="TBufDataset.OnNewRecord" link="#fcl.Db.TDataset.OnNewRecord"/>
      <element name="TBufDataset.OnPostError" link="#fcl.Db.TDataset.OnPostError"/>

      <element name="RegisterDatapacketReader">
        <short>
          Registers a data packet reader using a specific format for TBufDataset
        </short>
        <descr>
          <p>
            <var>RegisterDatapacketReader</var> is a procedure which registers a class type needed to create data packet readers for a specific format. <var>ADatapacketReaderClass</var> is the class type used to create new instances of <var>TDataPacketReader</var>.  <var>AFormat</var> is a <var>TDataPacketFormat</var> enumeration value that indicates the format supported for data packets in the reader class.
          </p>
          <p>
            RegisterDatapacketReader accesses a unit variable used to store an array of registered data packet reader classes and their associated formats. RegisterDatapacketReader increments the size of the array variable,  and stores the values in ADatapacketReaderClass and AFormat in the TDatapacketReaderRegistration type. It does not perform any checks for duplicate entries, so the procedure should be called exactly once for the class type and format combination.
          </p>
          <p>
            RegisterDatapacketReader is normally used in the initialization section of a unit that implements a TDataPacketReader descendant for a specific storage format, such as: <var>xmldatapacketreader.pp</var>.
          </p>
        </descr>
        <seealso>
          <link id="TDataPacketReader">
            TDataPacketReader
          </link>
          <link id="TDataPacketFormat">
            TDataPacketFormat
          </link>
          <link id="#fcl.db.TXMLDatapacketReader">TXMLDatapacketReader</link>
        </seealso>
      </element>
      <element name="RegisterDatapacketReader.ADatapacketReaderClass">
        <short>Class type used to read data packets in the specified format</short>
      </element>
      <element name="RegisterDatapacketReader.AFormat">
        <short>Data packet format used in the reader class type</short>
      </element>
    </module>
    <!-- bufdataset -->
  </package>
</fpdoc-descriptions>