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
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libxml2: xmlmemory.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="libxml2.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">libxml2
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> |
<a href="#var-members">Variables</a> </div>
<div class="headertitle"><div class="title">xmlmemory.h File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>interface for the memory allocator
<a href="#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="typedef-members" name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a8f7e901df83e1a867e3c157963dee331" id="r_a8f7e901df83e1a867e3c157963dee331"><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a>) (void *mem)</td></tr>
<tr class="memdesc:a8f7e901df83e1a867e3c157963dee331"><td class="mdescLeft"> </td><td class="mdescRight">Signature for a free() implementation. <br /></td></tr>
<tr class="separator:a8f7e901df83e1a867e3c157963dee331"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2f682977675c213576c096d4921498b0" id="r_a2f682977675c213576c096d4921498b0"><td class="memItemLeft" align="right" valign="top">typedef void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a>) (size_t size)</td></tr>
<tr class="memdesc:a2f682977675c213576c096d4921498b0"><td class="mdescLeft"> </td><td class="mdescRight">Signature for a malloc() implementation. <br /></td></tr>
<tr class="separator:a2f682977675c213576c096d4921498b0"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a0dd26c9e178d6a1c19459a4d50e1cc65" id="r_a0dd26c9e178d6a1c19459a4d50e1cc65"><td class="memItemLeft" align="right" valign="top">typedef void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a>) (void *mem, size_t size)</td></tr>
<tr class="memdesc:a0dd26c9e178d6a1c19459a4d50e1cc65"><td class="mdescLeft"> </td><td class="mdescRight">Signature for a realloc() implementation. <br /></td></tr>
<tr class="separator:a0dd26c9e178d6a1c19459a4d50e1cc65"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5dce41163312ec2fa3c4ac57cc4b795e" id="r_a5dce41163312ec2fa3c4ac57cc4b795e"><td class="memItemLeft" align="right" valign="top">typedef char *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a>) (const char *str)</td></tr>
<tr class="memdesc:a5dce41163312ec2fa3c4ac57cc4b795e"><td class="mdescLeft"> </td><td class="mdescRight">Signature for an strdup() implementation. <br /></td></tr>
<tr class="separator:a5dce41163312ec2fa3c4ac57cc4b795e"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aaf5fda31eb649128f58f61e8e022f196" id="r_aaf5fda31eb649128f58f61e8e022f196"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#aaf5fda31eb649128f58f61e8e022f196">xmlMemSetup</a> (<a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> freeFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> mallocFunc, <a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> reallocFunc, <a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> strdupFunc)</td></tr>
<tr class="memdesc:aaf5fda31eb649128f58f61e8e022f196"><td class="mdescLeft"> </td><td class="mdescRight">Override the default memory access functions with a new set This has to be called before any other libxml routines ! <br /></td></tr>
<tr class="separator:aaf5fda31eb649128f58f61e8e022f196"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abb6175f1a50a973d1b49f4cf3017113d" id="r_abb6175f1a50a973d1b49f4cf3017113d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#abb6175f1a50a973d1b49f4cf3017113d">xmlMemGet</a> (<a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> *freeFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> *mallocFunc, <a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> *reallocFunc, <a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> *strdupFunc)</td></tr>
<tr class="memdesc:abb6175f1a50a973d1b49f4cf3017113d"><td class="mdescLeft"> </td><td class="mdescRight">Provides the memory access functions set currently in use. <br /></td></tr>
<tr class="separator:abb6175f1a50a973d1b49f4cf3017113d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a638989e93a33e0515cae68bf82c3ca22" id="r_a638989e93a33e0515cae68bf82c3ca22"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a638989e93a33e0515cae68bf82c3ca22">xmlGcMemSetup</a> (<a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> freeFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> mallocFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> mallocAtomicFunc, <a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> reallocFunc, <a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> strdupFunc)</td></tr>
<tr class="memdesc:a638989e93a33e0515cae68bf82c3ca22"><td class="mdescLeft"> </td><td class="mdescRight">Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. <br /></td></tr>
<tr class="separator:a638989e93a33e0515cae68bf82c3ca22"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab9137826044b477c8d35f845bb246d24" id="r_ab9137826044b477c8d35f845bb246d24"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#ab9137826044b477c8d35f845bb246d24">xmlGcMemGet</a> (<a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> *freeFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> *mallocFunc, <a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> *mallocAtomicFunc, <a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> *reallocFunc, <a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> *strdupFunc)</td></tr>
<tr class="memdesc:ab9137826044b477c8d35f845bb246d24"><td class="mdescLeft"> </td><td class="mdescRight">Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. <br /></td></tr>
<tr class="separator:ab9137826044b477c8d35f845bb246d24"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ad7abed47851c8c33c9f840c0ecfc70f4" id="r_ad7abed47851c8c33c9f840c0ecfc70f4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#ad7abed47851c8c33c9f840c0ecfc70f4">xmlInitMemory</a> (void)</td></tr>
<tr class="separator:ad7abed47851c8c33c9f840c0ecfc70f4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a6fad15dbecad624ee430cd7102eda760" id="r_a6fad15dbecad624ee430cd7102eda760"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a6fad15dbecad624ee430cd7102eda760">xmlCleanupMemory</a> (void)</td></tr>
<tr class="separator:a6fad15dbecad624ee430cd7102eda760"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a7e80f9711755649dcff7c7ad045fed78" id="r_a7e80f9711755649dcff7c7ad045fed78"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a7e80f9711755649dcff7c7ad045fed78">xmlMemSize</a> (void *ptr)</td></tr>
<tr class="separator:a7e80f9711755649dcff7c7ad045fed78"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1bf16e38cfdce2a18a888b845133395d" id="r_a1bf16e38cfdce2a18a888b845133395d"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a1bf16e38cfdce2a18a888b845133395d">xmlMemUsed</a> (void)</td></tr>
<tr class="memdesc:a1bf16e38cfdce2a18a888b845133395d"><td class="mdescLeft"> </td><td class="mdescRight">Provides the amount of memory currently allocated. <br /></td></tr>
<tr class="separator:a1bf16e38cfdce2a18a888b845133395d"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afb0642976dfcbee22df305b41a0d8b33" id="r_afb0642976dfcbee22df305b41a0d8b33"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#afb0642976dfcbee22df305b41a0d8b33">xmlMemBlocks</a> (void)</td></tr>
<tr class="memdesc:afb0642976dfcbee22df305b41a0d8b33"><td class="mdescLeft"> </td><td class="mdescRight">Provides the number of memory areas currently allocated. <br /></td></tr>
<tr class="separator:afb0642976dfcbee22df305b41a0d8b33"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aee74a50dfb53ebbfd3cfe231bc4cb2a5" id="r_aee74a50dfb53ebbfd3cfe231bc4cb2a5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#aee74a50dfb53ebbfd3cfe231bc4cb2a5">xmlMemDisplay</a> (FILE *fp)</td></tr>
<tr class="separator:aee74a50dfb53ebbfd3cfe231bc4cb2a5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a666fcaf51328ba4e5acf4704468f0d92" id="r_a666fcaf51328ba4e5acf4704468f0d92"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a666fcaf51328ba4e5acf4704468f0d92">xmlMemDisplayLast</a> (FILE *fp, long nbBytes)</td></tr>
<tr class="separator:a666fcaf51328ba4e5acf4704468f0d92"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adf8542adeac423db5c440119fe3d3cba" id="r_adf8542adeac423db5c440119fe3d3cba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#adf8542adeac423db5c440119fe3d3cba">xmlMemShow</a> (FILE *fp, int nr)</td></tr>
<tr class="separator:adf8542adeac423db5c440119fe3d3cba"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af28bfd5f3477b8068b50b75cdb120202" id="r_af28bfd5f3477b8068b50b75cdb120202"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#af28bfd5f3477b8068b50b75cdb120202">xmlMemoryDump</a> (void)</td></tr>
<tr class="separator:af28bfd5f3477b8068b50b75cdb120202"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3f66274204603c9ef3526cae4066acbc" id="r_a3f66274204603c9ef3526cae4066acbc"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a3f66274204603c9ef3526cae4066acbc">xmlMemMalloc</a> (size_t size)</td></tr>
<tr class="memdesc:a3f66274204603c9ef3526cae4066acbc"><td class="mdescLeft"> </td><td class="mdescRight">a malloc() equivalent, with logging of the allocation info. <br /></td></tr>
<tr class="separator:a3f66274204603c9ef3526cae4066acbc"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4782b29354b4986213d613eeba28b387" id="r_a4782b29354b4986213d613eeba28b387"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a4782b29354b4986213d613eeba28b387">xmlMemRealloc</a> (void *ptr, size_t size)</td></tr>
<tr class="memdesc:a4782b29354b4986213d613eeba28b387"><td class="mdescLeft"> </td><td class="mdescRight">a realloc() equivalent, with logging of the allocation info. <br /></td></tr>
<tr class="separator:a4782b29354b4986213d613eeba28b387"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3522d3bdbe585f7cf0694b106f56dd4b" id="r_a3522d3bdbe585f7cf0694b106f56dd4b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a3522d3bdbe585f7cf0694b106f56dd4b">xmlMemFree</a> (void *ptr)</td></tr>
<tr class="memdesc:a3522d3bdbe585f7cf0694b106f56dd4b"><td class="mdescLeft"> </td><td class="mdescRight">a free() equivalent, with error checking. <br /></td></tr>
<tr class="separator:a3522d3bdbe585f7cf0694b106f56dd4b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a97162c9d2a566a6ad251a5d44178b100" id="r_a97162c9d2a566a6ad251a5d44178b100"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a97162c9d2a566a6ad251a5d44178b100">xmlMemoryStrdup</a> (const char *str)</td></tr>
<tr class="memdesc:a97162c9d2a566a6ad251a5d44178b100"><td class="mdescLeft"> </td><td class="mdescRight">a strdup() equivalent, with logging of the allocation info. <br /></td></tr>
<tr class="separator:a97162c9d2a566a6ad251a5d44178b100"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a72d318a0d63660bae5261d6b3405f354" id="r_a72d318a0d63660bae5261d6b3405f354"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a72d318a0d63660bae5261d6b3405f354">xmlMallocLoc</a> (size_t size, const char *file, int line)</td></tr>
<tr class="separator:a72d318a0d63660bae5261d6b3405f354"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:addd0442f8bb0806fd852fbe2ca34b1f7" id="r_addd0442f8bb0806fd852fbe2ca34b1f7"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#addd0442f8bb0806fd852fbe2ca34b1f7">xmlReallocLoc</a> (void *ptr, size_t size, const char *file, int line)</td></tr>
<tr class="separator:addd0442f8bb0806fd852fbe2ca34b1f7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a03cb0419c97e2e8ae7adc2c4d785adb4" id="r_a03cb0419c97e2e8ae7adc2c4d785adb4"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#a03cb0419c97e2e8ae7adc2c4d785adb4">xmlMallocAtomicLoc</a> (size_t size, const char *file, int line)</td></tr>
<tr class="separator:a03cb0419c97e2e8ae7adc2c4d785adb4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aa82b9c711bd6e2b45643d51387d8f05a" id="r_aa82b9c711bd6e2b45643d51387d8f05a"><td class="memItemLeft" align="right" valign="top">char * </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#aa82b9c711bd6e2b45643d51387d8f05a">xmlMemStrdupLoc</a> (const char *str, const char *file, int line)</td></tr>
<tr class="separator:aa82b9c711bd6e2b45643d51387d8f05a"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="var-members" name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a8eb58ce50121b43ad8a451a9228c55ae" id="r_a8eb58ce50121b43ad8a451a9228c55ae"><td class="memItemLeft" align="right" valign="top"><a id="a8eb58ce50121b43ad8a451a9228c55ae" name="a8eb58ce50121b43ad8a451a9228c55ae"></a>
<a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> </td><td class="memItemRight" valign="bottom"><b>xmlMalloc</b></td></tr>
<tr class="memdesc:a8eb58ce50121b43ad8a451a9228c55ae"><td class="mdescLeft"> </td><td class="mdescRight">The variable holding the libxml malloc() implementation. <br /></td></tr>
<tr class="separator:a8eb58ce50121b43ad8a451a9228c55ae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:adb21f3d07c5ab24dc5afcd57cad59355" id="r_adb21f3d07c5ab24dc5afcd57cad59355"><td class="memItemLeft" align="right" valign="top"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="xmlmemory_8h.html#adb21f3d07c5ab24dc5afcd57cad59355">xmlMallocAtomic</a></td></tr>
<tr class="memdesc:adb21f3d07c5ab24dc5afcd57cad59355"><td class="mdescLeft"> </td><td class="mdescRight">The variable holding the libxml malloc() implementation for atomic data (i.e. <br /></td></tr>
<tr class="separator:adb21f3d07c5ab24dc5afcd57cad59355"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a1fd622318f4eb3c38c41e1e09c8b7780" id="r_a1fd622318f4eb3c38c41e1e09c8b7780"><td class="memItemLeft" align="right" valign="top"><a id="a1fd622318f4eb3c38c41e1e09c8b7780" name="a1fd622318f4eb3c38c41e1e09c8b7780"></a>
<a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> </td><td class="memItemRight" valign="bottom"><b>xmlRealloc</b></td></tr>
<tr class="memdesc:a1fd622318f4eb3c38c41e1e09c8b7780"><td class="mdescLeft"> </td><td class="mdescRight">The variable holding the libxml realloc() implementation. <br /></td></tr>
<tr class="separator:a1fd622318f4eb3c38c41e1e09c8b7780"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a30231cbab46e8d659a5262c3b781164b" id="r_a30231cbab46e8d659a5262c3b781164b"><td class="memItemLeft" align="right" valign="top"><a id="a30231cbab46e8d659a5262c3b781164b" name="a30231cbab46e8d659a5262c3b781164b"></a>
<a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> </td><td class="memItemRight" valign="bottom"><b>xmlFree</b></td></tr>
<tr class="memdesc:a30231cbab46e8d659a5262c3b781164b"><td class="mdescLeft"> </td><td class="mdescRight">The variable holding the libxml free() implementation. <br /></td></tr>
<tr class="separator:a30231cbab46e8d659a5262c3b781164b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae56b5aa48d2aad300b09849f06ff5bd2" id="r_ae56b5aa48d2aad300b09849f06ff5bd2"><td class="memItemLeft" align="right" valign="top"><a id="ae56b5aa48d2aad300b09849f06ff5bd2" name="ae56b5aa48d2aad300b09849f06ff5bd2"></a>
<a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> </td><td class="memItemRight" valign="bottom"><b>xmlMemStrdup</b></td></tr>
<tr class="memdesc:ae56b5aa48d2aad300b09849f06ff5bd2"><td class="mdescLeft"> </td><td class="mdescRight">The variable holding the libxml strdup() implementation. <br /></td></tr>
<tr class="separator:ae56b5aa48d2aad300b09849f06ff5bd2"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>interface for the memory allocator </p>
<p>provides interfaces for the memory allocator, including debugging capabilities.</p>
<dl class="section copyright"><dt>Copyright</dt><dd>See Copyright for the status of this software.</dd></dl>
<dl class="section author"><dt>Author</dt><dd>Daniel Veillard </dd></dl>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a id="a8f7e901df83e1a867e3c157963dee331" name="a8f7e901df83e1a867e3c157963dee331"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f7e901df83e1a867e3c157963dee331">◆ </a></span>xmlFreeFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void(* xmlFreeFunc) (void *mem)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Signature for a free() implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mem</td><td>an already allocated block of memory </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a2f682977675c213576c096d4921498b0" name="a2f682977675c213576c096d4921498b0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2f682977675c213576c096d4921498b0">◆ </a></span>xmlMallocFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void *(* xmlMallocFunc) (size_t size)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Signature for a malloc() implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>the size requested in bytes </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the newly allocated block or NULL in case of error. </dd></dl>
</div>
</div>
<a id="a0dd26c9e178d6a1c19459a4d50e1cc65" name="a0dd26c9e178d6a1c19459a4d50e1cc65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0dd26c9e178d6a1c19459a4d50e1cc65">◆ </a></span>xmlReallocFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef void *(* xmlReallocFunc) (void *mem, size_t size)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Signature for a realloc() implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">mem</td><td>an already allocated block of memory </td></tr>
<tr><td class="paramname">size</td><td>the new size requested in bytes </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the newly reallocated block or NULL in case of error. </dd></dl>
</div>
</div>
<a id="a5dce41163312ec2fa3c4ac57cc4b795e" name="a5dce41163312ec2fa3c4ac57cc4b795e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dce41163312ec2fa3c4ac57cc4b795e">◆ </a></span>xmlStrdupFunc</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">typedef char *(* xmlStrdupFunc) (const char *str)</td>
</tr>
</table>
</div><div class="memdoc">
<p>Signature for an strdup() implementation. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>a zero terminated string </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the copy of the string or NULL in case of error. </dd></dl>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="a6fad15dbecad624ee430cd7102eda760" name="a6fad15dbecad624ee430cd7102eda760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6fad15dbecad624ee430cd7102eda760">◆ </a></span>xmlCleanupMemory()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlCleanupMemory </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000389">Deprecated:</a></b></dt><dd>This function is a no-op. Call <a class="el" href="parser_8h.html#a7eb4447bac68a016b428f51cc402369f" title="Free global memory allocations.">xmlCleanupParser</a> to free global state but see the warnings there. <a class="el" href="parser_8h.html#a7eb4447bac68a016b428f51cc402369f" title="Free global memory allocations.">xmlCleanupParser</a> should be only called once at program exit. In most cases, you don't have call cleanup functions at all. </dd></dl>
</div>
</div>
<a id="ab9137826044b477c8d35f845bb246d24" name="ab9137826044b477c8d35f845bb246d24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9137826044b477c8d35f845bb246d24">◆ </a></span>xmlGcMemGet()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlGcMemGet </td>
<td>(</td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> * </td>
<td class="paramname"><em>freeFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> * </td>
<td class="paramname"><em>mallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> * </td>
<td class="paramname"><em>mallocAtomicFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> * </td>
<td class="paramname"><em>reallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> * </td>
<td class="paramname"><em>strdupFunc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides the memory access functions set currently in use The mallocAtomicFunc is specialized for atomic block allocations (i.e. </p>
<p>of areas useful for garbage collected memory allocators</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000391">Deprecated:</a></b></dt><dd>Use xmlMemGet.</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">freeFunc</td><td>place to save the free() function in use </td></tr>
<tr><td class="paramname">mallocFunc</td><td>place to save the malloc() function in use </td></tr>
<tr><td class="paramname">mallocAtomicFunc</td><td>place to save the atomic malloc() function in use </td></tr>
<tr><td class="paramname">reallocFunc</td><td>place to save the realloc() function in use </td></tr>
<tr><td class="paramname">strdupFunc</td><td>place to save the strdup() function in use </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>
</div>
</div>
<a id="a638989e93a33e0515cae68bf82c3ca22" name="a638989e93a33e0515cae68bf82c3ca22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a638989e93a33e0515cae68bf82c3ca22">◆ </a></span>xmlGcMemSetup()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlGcMemSetup </td>
<td>(</td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> </td>
<td class="paramname"><em>freeFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> </td>
<td class="paramname"><em>mallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> </td>
<td class="paramname"><em>mallocAtomicFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> </td>
<td class="paramname"><em>reallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> </td>
<td class="paramname"><em>strdupFunc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Override the default memory access functions with a new set This has to be called before any other libxml routines ! The mallocAtomicFunc is specialized for atomic block allocations (i.e. </p>
<p>of areas useful for garbage collected memory allocators</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000390">Deprecated:</a></b></dt><dd>Use xmlMemSetup.</dd></dl>
<p>Should this be blocked if there was already some allocations done ?</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">freeFunc</td><td>the free() function to use </td></tr>
<tr><td class="paramname">mallocFunc</td><td>the malloc() function to use </td></tr>
<tr><td class="paramname">mallocAtomicFunc</td><td>the malloc() function to use for atomic allocations </td></tr>
<tr><td class="paramname">reallocFunc</td><td>the realloc() function to use </td></tr>
<tr><td class="paramname">strdupFunc</td><td>the strdup() function to use </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>
</div>
</div>
<a id="ad7abed47851c8c33c9f840c0ecfc70f4" name="ad7abed47851c8c33c9f840c0ecfc70f4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad7abed47851c8c33c9f840c0ecfc70f4">◆ </a></span>xmlInitMemory()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlInitMemory </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000388">Deprecated:</a></b></dt><dd>Alias for <a class="el" href="parser_8h.html#a642085a16c74b8352e92a89c348cc9c4" title="Initialization function for the XML parser.">xmlInitParser</a>.</dd></dl>
<dl class="section return"><dt>Returns</dt><dd>0. </dd></dl>
</div>
</div>
<a id="a03cb0419c97e2e8ae7adc2c4d785adb4" name="a03cb0419c97e2e8ae7adc2c4d785adb4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a03cb0419c97e2e8ae7adc2c4d785adb4">◆ </a></span>xmlMallocAtomicLoc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * xmlMallocAtomicLoc </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>line</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000381">Deprecated:</a></b></dt><dd>don't use</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>an unsigned int specifying the size in byte to allocate. </td></tr>
<tr><td class="paramname">file</td><td>the file name or NULL </td></tr>
<tr><td class="paramname">line</td><td>the line number </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the allocated area or NULL in case of lack of memory. </dd></dl>
</div>
</div>
<a id="a72d318a0d63660bae5261d6b3405f354" name="a72d318a0d63660bae5261d6b3405f354"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a72d318a0d63660bae5261d6b3405f354">◆ </a></span>xmlMallocLoc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * xmlMallocLoc </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>line</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000380">Deprecated:</a></b></dt><dd>don't use</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>an int specifying the size in byte to allocate. </td></tr>
<tr><td class="paramname">file</td><td>the file name or NULL </td></tr>
<tr><td class="paramname">line</td><td>the line number </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the allocated area or NULL in case of lack of memory. </dd></dl>
</div>
</div>
<a id="afb0642976dfcbee22df305b41a0d8b33" name="afb0642976dfcbee22df305b41a0d8b33"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb0642976dfcbee22df305b41a0d8b33">◆ </a></span>xmlMemBlocks()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlMemBlocks </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides the number of memory areas currently allocated. </p>
<dl class="section return"><dt>Returns</dt><dd>an int representing the number of blocks </dd></dl>
</div>
</div>
<a id="aee74a50dfb53ebbfd3cfe231bc4cb2a5" name="aee74a50dfb53ebbfd3cfe231bc4cb2a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee74a50dfb53ebbfd3cfe231bc4cb2a5">◆ </a></span>xmlMemDisplay()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlMemDisplay </td>
<td>(</td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000385">Deprecated:</a></b></dt><dd>This feature was removed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fp</td><td>a FILE descriptor </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a666fcaf51328ba4e5acf4704468f0d92" name="a666fcaf51328ba4e5acf4704468f0d92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a666fcaf51328ba4e5acf4704468f0d92">◆ </a></span>xmlMemDisplayLast()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlMemDisplayLast </td>
<td>(</td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">long </td>
<td class="paramname"><em>nbBytes</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000384">Deprecated:</a></b></dt><dd>This feature was removed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fp</td><td>a FILE descriptor </td></tr>
<tr><td class="paramname">nbBytes</td><td>the amount of memory to dump </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a3522d3bdbe585f7cf0694b106f56dd4b" name="a3522d3bdbe585f7cf0694b106f56dd4b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3522d3bdbe585f7cf0694b106f56dd4b">◆ </a></span>xmlMemFree()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlMemFree </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>a free() equivalent, with error checking. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>the memory block pointer </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="abb6175f1a50a973d1b49f4cf3017113d" name="abb6175f1a50a973d1b49f4cf3017113d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb6175f1a50a973d1b49f4cf3017113d">◆ </a></span>xmlMemGet()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlMemGet </td>
<td>(</td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> * </td>
<td class="paramname"><em>freeFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> * </td>
<td class="paramname"><em>mallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> * </td>
<td class="paramname"><em>reallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> * </td>
<td class="paramname"><em>strdupFunc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides the memory access functions set currently in use. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">freeFunc</td><td>place to save the free() function in use </td></tr>
<tr><td class="paramname">mallocFunc</td><td>place to save the malloc() function in use </td></tr>
<tr><td class="paramname">reallocFunc</td><td>place to save the realloc() function in use </td></tr>
<tr><td class="paramname">strdupFunc</td><td>place to save the strdup() function in use </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>
</div>
</div>
<a id="a3f66274204603c9ef3526cae4066acbc" name="a3f66274204603c9ef3526cae4066acbc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3f66274204603c9ef3526cae4066acbc">◆ </a></span>xmlMemMalloc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * xmlMemMalloc </td>
<td>(</td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>a malloc() equivalent, with logging of the allocation info. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">size</td><td>an int specifying the size in byte to allocate. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the allocated area or NULL in case of lack of memory. </dd></dl>
</div>
</div>
<a id="af28bfd5f3477b8068b50b75cdb120202" name="af28bfd5f3477b8068b50b75cdb120202"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af28bfd5f3477b8068b50b75cdb120202">◆ </a></span>xmlMemoryDump()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlMemoryDump </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000387">Deprecated:</a></b></dt><dd>This feature was removed. </dd></dl>
</div>
</div>
<a id="a97162c9d2a566a6ad251a5d44178b100" name="a97162c9d2a566a6ad251a5d44178b100"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a97162c9d2a566a6ad251a5d44178b100">◆ </a></span>xmlMemoryStrdup()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char * xmlMemoryStrdup </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>str</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>a strdup() equivalent, with logging of the allocation info. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>the initial string pointer </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the new string or NULL if allocation error occurred. </dd></dl>
</div>
</div>
<a id="a4782b29354b4986213d613eeba28b387" name="a4782b29354b4986213d613eeba28b387"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4782b29354b4986213d613eeba28b387">◆ </a></span>xmlMemRealloc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * xmlMemRealloc </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>a realloc() equivalent, with logging of the allocation info. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>the initial memory block pointer </td></tr>
<tr><td class="paramname">size</td><td>an int specifying the size in byte to allocate. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the allocated area or NULL in case of lack of memory. </dd></dl>
</div>
</div>
<a id="aaf5fda31eb649128f58f61e8e022f196" name="aaf5fda31eb649128f58f61e8e022f196"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaf5fda31eb649128f58f61e8e022f196">◆ </a></span>xmlMemSetup()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlMemSetup </td>
<td>(</td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a8f7e901df83e1a867e3c157963dee331">xmlFreeFunc</a> </td>
<td class="paramname"><em>freeFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> </td>
<td class="paramname"><em>mallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a0dd26c9e178d6a1c19459a4d50e1cc65">xmlReallocFunc</a> </td>
<td class="paramname"><em>reallocFunc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="xmlmemory_8h.html#a5dce41163312ec2fa3c4ac57cc4b795e">xmlStrdupFunc</a> </td>
<td class="paramname"><em>strdupFunc</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Override the default memory access functions with a new set This has to be called before any other libxml routines ! </p>
<p>Should this be blocked if there was already some allocations done ?</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">freeFunc</td><td>the free() function to use </td></tr>
<tr><td class="paramname">mallocFunc</td><td>the malloc() function to use </td></tr>
<tr><td class="paramname">reallocFunc</td><td>the realloc() function to use </td></tr>
<tr><td class="paramname">strdupFunc</td><td>the strdup() function to use </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>0 on success </dd></dl>
</div>
</div>
<a id="adf8542adeac423db5c440119fe3d3cba" name="adf8542adeac423db5c440119fe3d3cba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf8542adeac423db5c440119fe3d3cba">◆ </a></span>xmlMemShow()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void xmlMemShow </td>
<td>(</td>
<td class="paramtype">FILE * </td>
<td class="paramname"><em>fp</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>nr</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000386">Deprecated:</a></b></dt><dd>This feature was removed. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fp</td><td>a FILE descriptor </td></tr>
<tr><td class="paramname">nr</td><td>number of entries to dump </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a id="a7e80f9711755649dcff7c7ad045fed78" name="a7e80f9711755649dcff7c7ad045fed78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e80f9711755649dcff7c7ad045fed78">◆ </a></span>xmlMemSize()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t xmlMemSize </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>pointer to the memory allocation </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the size of a memory allocation. </dd></dl>
</div>
</div>
<a id="aa82b9c711bd6e2b45643d51387d8f05a" name="aa82b9c711bd6e2b45643d51387d8f05a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa82b9c711bd6e2b45643d51387d8f05a">◆ </a></span>xmlMemStrdupLoc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">char * xmlMemStrdupLoc </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>str</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>line</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000383">Deprecated:</a></b></dt><dd>don't use</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">str</td><td>the initial string pointer </td></tr>
<tr><td class="paramname">file</td><td>the file name or NULL </td></tr>
<tr><td class="paramname">line</td><td>the line number </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the new string or NULL if allocation error occurred. </dd></dl>
</div>
</div>
<a id="a1bf16e38cfdce2a18a888b845133395d" name="a1bf16e38cfdce2a18a888b845133395d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1bf16e38cfdce2a18a888b845133395d">◆ </a></span>xmlMemUsed()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int xmlMemUsed </td>
<td>(</td>
<td class="paramtype">void </td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Provides the amount of memory currently allocated. </p>
<dl class="section return"><dt>Returns</dt><dd>an int representing the amount of memory allocated. </dd></dl>
</div>
</div>
<a id="addd0442f8bb0806fd852fbe2ca34b1f7" name="addd0442f8bb0806fd852fbe2ca34b1f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#addd0442f8bb0806fd852fbe2ca34b1f7">◆ </a></span>xmlReallocLoc()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void * xmlReallocLoc </td>
<td>(</td>
<td class="paramtype">void * </td>
<td class="paramname"><em>ptr</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>size</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>file</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>line</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000382">Deprecated:</a></b></dt><dd>don't use</dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">ptr</td><td>the initial memory block pointer </td></tr>
<tr><td class="paramname">size</td><td>an int specifying the size in byte to allocate. </td></tr>
<tr><td class="paramname">file</td><td>the file name or NULL </td></tr>
<tr><td class="paramname">line</td><td>the line number </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a pointer to the allocated area or NULL in case of lack of memory. </dd></dl>
</div>
</div>
<h2 class="groupheader">Variable Documentation</h2>
<a id="adb21f3d07c5ab24dc5afcd57cad59355" name="adb21f3d07c5ab24dc5afcd57cad59355"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb21f3d07c5ab24dc5afcd57cad59355">◆ </a></span>xmlMallocAtomic</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="xmlmemory_8h.html#a2f682977675c213576c096d4921498b0">xmlMallocFunc</a> xmlMallocAtomic</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">extern</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>The variable holding the libxml malloc() implementation for atomic data (i.e. </p>
<p>blocks not containing pointers), useful when using a garbage collecting allocator.</p>
<dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000075">Deprecated:</a></b></dt><dd>Use <a class="el" href="xmlmemory_8h.html#a8eb58ce50121b43ad8a451a9228c55ae" title="The variable holding the libxml malloc() implementation.">xmlMalloc</a> </dd></dl>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
|