aboutsummaryrefslogtreecommitdiff
path: root/doc/oscl_html/classOsclMemPoolResizableAllocator.html
blob: 34ae58331c4b81c2dce54bb8b0f77850bfe1791d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>oscl: OsclMemPoolResizableAllocator Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>OsclMemPoolResizableAllocator Class Reference<br/>
<small>
[<a class="el" href="group__osclmemory.html">OSCL Memory</a>]</small>
</h1><!-- doxytag: class="OsclMemPoolResizableAllocator" --><!-- doxytag: inherits="Oscl_DefAlloc" -->
<p><code>#include &lt;<a class="el" href="oscl__mem__mempool_8h_source.html">oscl_mem_mempool.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for OsclMemPoolResizableAllocator:</div>
<div class="dynsection">
 <div class="center">
  <img src="classOsclMemPoolResizableAllocator.png" usemap="#OsclMemPoolResizableAllocator_map" alt=""/>
  <map id="OsclMemPoolResizableAllocator_map" name="OsclMemPoolResizableAllocator_map">
<area href="classOscl__DefAlloc.html" alt="Oscl_DefAlloc" shape="rect" coords="102,56,297,80"/>
<area href="classOscl__Alloc.html" alt="Oscl_Alloc" shape="rect" coords="0,0,195,24"/>
<area href="classOscl__Dealloc.html" alt="Oscl_Dealloc" shape="rect" coords="205,0,400,24"/>
</map>
 </div>
</div>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Structures</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a></td></tr>
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a77779263d44aebb0946c15135cbf1502">OsclMemPoolResizableAllocator</a> (uint32 aMemPoolBufferSize, uint32 aMemPoolBufferNumLimit=0, uint32 aExpectedNumBlocksPerBuffer=0, <a class="el" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *gen_alloc=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a20ab1f3126ce4bbf1bb95b43985df718">enablenullpointerreturn</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF <a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ac065b50743d6483f38c0ce59243502ef">allocate</a> (const uint32 aNumBytes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a1d2dde3ec801c79a3b7d91cc45f9fab2">deallocate</a> (<a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *aPtr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a27bca020cfd2802383f3001616340871">trim</a> (<a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *aPtr, uint32 aBytesToFree)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a21665f9c2bd34d9328409a8ccd38fd15">getBufferSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ad4f04036466a239748277893000c1c94">getAllocatedSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a6afcbdb6b74126a4adb812d619ddc43e">getAvailableSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a1e51bd335dada2cb2d360eb8c8cf4174">getLargestContiguousFreeBlockSize</a> () const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a2e3970c69d947d03c5b46b258eaf5f18">setMaxSzForNewMemPoolBuffer</a> (uint32 aMaxNewMemPoolBufferSz)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a11daa700ab7330756d80989ebe63c4b5">notifyfreeblockavailable</a> (<a class="el" href="classOsclMemPoolResizableAllocatorObserver.html">OsclMemPoolResizableAllocatorObserver</a> &amp;aObserver, uint32 aRequestedSize=0, <a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *aContextData=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a638fee06affe7e953cb7558a2f21f1ac">CancelFreeChunkAvailableCallback</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a14fb3c0c1b6b48268f400fd21b124ae8">notifyfreememoryavailable</a> (<a class="el" href="classOsclMemPoolResizableAllocatorMemoryObserver.html">OsclMemPoolResizableAllocatorMemoryObserver</a> &amp;aObserver, uint32 aRequestedSize=0, <a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *aContextData=NULL)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a44afa8600a738b1875fa960433e8ef62">CancelFreeMemoryAvailableCallback</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a9e937c3283a6eb575d248223da997da4">addRef</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OSCL_IMPORT_REF void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#acb66b5eb7a1b9cb2998dc9ffdfc75fdc">removeRef</a> ()</td></tr>
<tr><td colspan="2"><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ad8c705fd9de65e0481f12d2288997088">~OsclMemPoolResizableAllocator</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a2aafb5a34930885c48c45a90cf005fe9">addnewmempoolbuffer</a> (uint32 aBufferSize)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a77c24eb3e7864995893d650d6ff8c2c8">destroyallmempoolbuffers</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ade7b7c91c2b987fcf4f0b798ab104abb">findfreeblock</a> (uint32 aBlockSize)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a0ba18567428335a7fc273967252f2669">allocateblock</a> (<a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a> &amp;aBlockPtr, uint32 aNumBytes)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ac1b1f9e63df2d4fa7a6227c84c9f9836">deallocateblock</a> (<a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a> &amp;aBlockPtr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ac6598f8738efd889c66b0382740e0ddc">validateblock</a> (<a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *aBlockBufPtr)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a56e01f32d5b2ccd7468d37fdddf5f32c">getMemPoolBufferSize</a> (<a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> *aBufferInfo) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ae17a0b9943b413b4e7deae7b971bebcc">getMemPoolBufferAllocatedSize</a> (<a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> *aBufferInfo) const </td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a2c74a9a8d57c7aa014eeef5e1c7698a7">memoryPoolBufferMgmtOverhead</a> () const </td></tr>
<tr><td colspan="2"><h2>Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a16a3eb265a1e0d5dab7bb7655cc13724">iMemPoolBufferSize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#aaacf1d18553837eef1b1cc94ea18cf63">iMemPoolBufferNumLimit</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a72475f7dd5def3908ef86ffad3612c56">iExpectedNumBlocksPerBuffer</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a778165cc4a16f1b7e4f110e419fc18d9">iMaxNewMemPoolBufferSz</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a398665f3f43e3c5d92d1214487307c78">iMemPoolBufferAllocator</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOscl__Vector.html">Oscl_Vector</a>&lt; <a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> <br class="typebreak"/>
*, <a class="el" href="classOsclMemAllocator.html">OsclMemAllocator</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a6f369b95e8b165832aaec357f290658d">iMemPoolBufferList</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a9853b3055f4c806d08d1fba0246408ce">iMemPoolPrevAllocBufferIndex</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a8a803d161dfacd97df67888386e8b5b8">iBufferInfoAlignedSize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a6c079597381bb81efa698e4166028a8c">iBlockInfoAlignedSize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a078951ff910fc4fe5995d3d330a40b2a">iCheckNextAvailable</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#ab976d47b249b50802ac4eb1ab2445b02">iRequestedNextAvailableSize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a7fb5033a78c6feff68998dd89b6fd749">iNextAvailableContextData</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOsclMemPoolResizableAllocatorObserver.html">OsclMemPoolResizableAllocatorObserver</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a555e870a36d26be233bebe9c28810971">iObserver</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#aead06bf5f6b17704cd8e36e44d589ba9">iCheckFreeMemoryAvailable</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">uint32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a8668e1557bf2a979663379b4364972c9">iRequestedAvailableFreeMemSize</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a5d1b75b67a86d0a4774fccfd3649a19b">iFreeMemContextData</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classOsclMemPoolResizableAllocatorMemoryObserver.html">OsclMemPoolResizableAllocatorMemoryObserver</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a92e932af64e42902a0239f2ea94b7255">iFreeMemPoolObserver</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int32&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a1da691c3534d69dc96a0cb70e6143af5">iRefCount</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#afb318b658dd5a11d84445ff07031b409">iEnableNullPtrReturn</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">OsclMemPoolResizableAllocatorLogger *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classOsclMemPoolResizableAllocator.html#a0853aab840b804e93f6c3d5c68535a07">iDebugLogger</a></td></tr>
</table>
<hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a77779263d44aebb0946c15135cbf1502"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::OsclMemPoolResizableAllocator" ref="a77779263d44aebb0946c15135cbf1502" args="(uint32 aMemPoolBufferSize, uint32 aMemPoolBufferNumLimit=0, uint32 aExpectedNumBlocksPerBuffer=0, Oscl_DefAlloc *gen_alloc=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF OsclMemPoolResizableAllocator::OsclMemPoolResizableAllocator </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aMemPoolBufferSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aMemPoolBufferNumLimit</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aExpectedNumBlocksPerBuffer</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a> *&nbsp;</td>
          <td class="paramname"> <em>gen_alloc</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Create the memory pool allocator with resizing functionality. The size of the memory pool buffer needs to be passed-in. The maximum number of memory pool buffers, expected number of blocks in a memory pool buffer, and outside allocator are optional. This API throws an exception when the memory allocation for the pool buffer fails. If memory pool buffer number limit parameter is not set, the assumption is that there is no limit and memory pool will grow as needed. If the expected number of blocks is not set or not known, the memory pool will use a default value to 10 to allocate extra memory for the block info header.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ad8c705fd9de65e0481f12d2288997088"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::~OsclMemPoolResizableAllocator" ref="ad8c705fd9de65e0481f12d2288997088" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OsclMemPoolResizableAllocator::~OsclMemPoolResizableAllocator </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>The destructor for the memory pool. Should not be called directly. Use <a class="el" href="classOsclMemPoolResizableAllocator.html#acb66b5eb7a1b9cb2998dc9ffdfc75fdc">removeRef()</a> instead. </p>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a2aafb5a34930885c48c45a90cf005fe9"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::addnewmempoolbuffer" ref="a2aafb5a34930885c48c45a90cf005fe9" args="(uint32 aBufferSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a>* OsclMemPoolResizableAllocator::addnewmempoolbuffer </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aBufferSize</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9e937c3283a6eb575d248223da997da4"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::addRef" ref="a9e937c3283a6eb575d248223da997da4" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::addRef </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Increments the reference count for this memory pool allocator</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ac065b50743d6483f38c0ce59243502ef"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::allocate" ref="ac065b50743d6483f38c0ce59243502ef" args="(const uint32 aNumBytes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF <a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a>* OsclMemPoolResizableAllocator::allocate </td>
          <td>(</td>
          <td class="paramtype">const uint32&nbsp;</td>
          <td class="paramname"> <em>aNumBytes</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Allocates a block from the memory pool that is at least in size requested This API throws an exception if there isn't enough memory (if "enablenullpointerreturn" has not been called) for the requested amount in the pool or if the extra pool buffer cannot be allocated.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>Pointer to memory buffer from memory pool </dd></dl>

<p>Implements <a class="el" href="classOscl__DefAlloc.html#a9ce71dcd2aa11b34e7d30a175fef42e0">Oscl_DefAlloc</a>.</p>

</div>
</div>
<a class="anchor" id="a0ba18567428335a7fc273967252f2669"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::allocateblock" ref="a0ba18567428335a7fc273967252f2669" args="(MemPoolBlockInfo &amp;aBlockPtr, uint32 aNumBytes)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a>* OsclMemPoolResizableAllocator::allocateblock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aBlockPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aNumBytes</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a638fee06affe7e953cb7558a2f21f1ac"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::CancelFreeChunkAvailableCallback" ref="a638fee06affe7e953cb7558a2f21f1ac" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::CancelFreeChunkAvailableCallback </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This API will cancel any past callback requests..</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a44afa8600a738b1875fa960433e8ef62"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::CancelFreeMemoryAvailableCallback" ref="a44afa8600a738b1875fa960433e8ef62" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::CancelFreeMemoryAvailableCallback </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1d2dde3ec801c79a3b7d91cc45f9fab2"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::deallocate" ref="a1d2dde3ec801c79a3b7d91cc45f9fab2" args="(OsclAny *aPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::deallocate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td>
          <td class="paramname"> <em>aPtr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Deallocates and returns a block back to the memory pool This API throws an exception if the pointer passed in is not part of the memory pool, aligned, or has corrupted block header.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

<p>Implements <a class="el" href="classOscl__DefAlloc.html#a517d6b431b966f79a745e73d1a0a438f">Oscl_DefAlloc</a>.</p>

</div>
</div>
<a class="anchor" id="ac1b1f9e63df2d4fa7a6227c84c9f9836"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::deallocateblock" ref="ac1b1f9e63df2d4fa7a6227c84c9f9836" args="(MemPoolBlockInfo &amp;aBlockPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OsclMemPoolResizableAllocator::deallocateblock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aBlockPtr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a77c24eb3e7864995893d650d6ff8c2c8"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::destroyallmempoolbuffers" ref="a77c24eb3e7864995893d650d6ff8c2c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void OsclMemPoolResizableAllocator::destroyallmempoolbuffers </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a20ab1f3126ce4bbf1bb95b43985df718"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::enablenullpointerreturn" ref="a20ab1f3126ce4bbf1bb95b43985df718" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::enablenullpointerreturn </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This API will disable exceptions in case the memory pool runs out of memory Instead of doing "OSCL_LEAVE(OsclErrNoResources)" allocate API will return NULL.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="ade7b7c91c2b987fcf4f0b798ab104abb"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::findfreeblock" ref="ade7b7c91c2b987fcf4f0b798ab104abb" args="(uint32 aBlockSize)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBlockInfo.html">MemPoolBlockInfo</a>* OsclMemPoolResizableAllocator::findfreeblock </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aBlockSize</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ad4f04036466a239748277893000c1c94"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getAllocatedSize" ref="ad4f04036466a239748277893000c1c94" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF uint32 OsclMemPoolResizableAllocator::getAllocatedSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the number of bytes allocated from the buffer&lt;including the="" overhead="" bytes="" that="" may="" be="" allocated="" by="" the="" allocater="" to="" keep="" track="" of="" the="" chunks="" allocated&gt;=""&gt; </p>

</div>
</div>
<a class="anchor" id="a6afcbdb6b74126a4adb812d619ddc43e"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getAvailableSize" ref="a6afcbdb6b74126a4adb812d619ddc43e" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF uint32 OsclMemPoolResizableAllocator::getAvailableSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the number of bytes available with the buffer </p>

</div>
</div>
<a class="anchor" id="a21665f9c2bd34d9328409a8ccd38fd15"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getBufferSize" ref="a21665f9c2bd34d9328409a8ccd38fd15" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF uint32 OsclMemPoolResizableAllocator::getBufferSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the size of the buffer &lt;including the="" overhead="" bytes="" that="" may="" be="" allocated="" by="" the="" allocater&gt;=""&gt; </p>

</div>
</div>
<a class="anchor" id="a1e51bd335dada2cb2d360eb8c8cf4174"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getLargestContiguousFreeBlockSize" ref="a1e51bd335dada2cb2d360eb8c8cf4174" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF uint32 OsclMemPoolResizableAllocator::getLargestContiguousFreeBlockSize </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the size of the largest available chunk in the memory. </p>

</div>
</div>
<a class="anchor" id="ae17a0b9943b413b4e7deae7b971bebcc"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getMemPoolBufferAllocatedSize" ref="ae17a0b9943b413b4e7deae7b971bebcc" args="(MemPoolBufferInfo *aBufferInfo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 OsclMemPoolResizableAllocator::getMemPoolBufferAllocatedSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>aBufferInfo</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a56e01f32d5b2ccd7468d37fdddf5f32c"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::getMemPoolBufferSize" ref="a56e01f32d5b2ccd7468d37fdddf5f32c" args="(MemPoolBufferInfo *aBufferInfo) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 OsclMemPoolResizableAllocator::getMemPoolBufferSize </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a> *&nbsp;</td>
          <td class="paramname"> <em>aBufferInfo</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a2c74a9a8d57c7aa014eeef5e1c7698a7"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::memoryPoolBufferMgmtOverhead" ref="a2c74a9a8d57c7aa014eeef5e1c7698a7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 OsclMemPoolResizableAllocator::memoryPoolBufferMgmtOverhead </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a11daa700ab7330756d80989ebe63c4b5"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::notifyfreeblockavailable" ref="a11daa700ab7330756d80989ebe63c4b5" args="(OsclMemPoolResizableAllocatorObserver &amp;aObserver, uint32 aRequestedSize=0, OsclAny *aContextData=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::notifyfreeblockavailable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOsclMemPoolResizableAllocatorObserver.html">OsclMemPoolResizableAllocatorObserver</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aObserver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aRequestedSize</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td>
          <td class="paramname"> <em>aContextData</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>This API will set the flag to send a callback via specified observer object when the next memory block is deallocated by <a class="el" href="classOsclMemPoolResizableAllocator.html#a1d2dde3ec801c79a3b7d91cc45f9fab2">deallocate()</a> call. If the optional requested size parameter is set, the callback is sent when a free memory space of requested size becomes available. The optional context data is returned with the callback and can be used by the user to differentiate.between different instances of memory pool objects. This memory pool only allows one notify to be queued. Another call to this function will just overwrite the previous call.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a14fb3c0c1b6b48268f400fd21b124ae8"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::notifyfreememoryavailable" ref="a14fb3c0c1b6b48268f400fd21b124ae8" args="(OsclMemPoolResizableAllocatorMemoryObserver &amp;aObserver, uint32 aRequestedSize=0, OsclAny *aContextData=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::notifyfreememoryavailable </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classOsclMemPoolResizableAllocatorMemoryObserver.html">OsclMemPoolResizableAllocatorMemoryObserver</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>aObserver</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aRequestedSize</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td>
          <td class="paramname"> <em>aContextData</em> = <code>NULL</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="acb66b5eb7a1b9cb2998dc9ffdfc75fdc"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::removeRef" ref="acb66b5eb7a1b9cb2998dc9ffdfc75fdc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OSCL_IMPORT_REF void OsclMemPoolResizableAllocator::removeRef </td>
          <td>(</td>
          <td class="paramname"></td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Decrements the reference count for this memory pool allocator When the reference count goes to 0, this instance of the memory pool object is deleted</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>void </dd></dl>

</div>
</div>
<a class="anchor" id="a2e3970c69d947d03c5b46b258eaf5f18"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::setMaxSzForNewMemPoolBuffer" ref="a2e3970c69d947d03c5b46b258eaf5f18" args="(uint32 aMaxNewMemPoolBufferSz)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF bool OsclMemPoolResizableAllocator::setMaxSzForNewMemPoolBuffer </td>
          <td>(</td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aMaxNewMemPoolBufferSz</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a27bca020cfd2802383f3001616340871"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::trim" ref="a27bca020cfd2802383f3001616340871" args="(OsclAny *aPtr, uint32 aBytesToFree)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual OSCL_IMPORT_REF bool OsclMemPoolResizableAllocator::trim </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td>
          <td class="paramname"> <em>aPtr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32&nbsp;</td>
          <td class="paramname"> <em>aBytesToFree</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a tail segment of a previously allocated memory block back to the memory pool. The passed-in pointer to the memory buffer is still valid after the call completes but the buffer size is smaller by by specified amount that was freed. This function allows the user to allocate a larger size block initially when the amount needed is unknown and then return the unused portion of the block when the amount becomes known. This API throws an exception if the pointer passed in is not part of the memory pool or the size to return is bigger than the size of the passed-in block. Exception will be thrown if the memory pool is not set up yet.</p>
<dl class="return"><dt><b>Returns:</b></dt><dd>bool True if trim operation successful. False if the block wasn't trimmed </dd></dl>

</div>
</div>
<a class="anchor" id="ac6598f8738efd889c66b0382740e0ddc"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::validateblock" ref="ac6598f8738efd889c66b0382740e0ddc" args="(OsclAny *aBlockBufPtr)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool OsclMemPoolResizableAllocator::validateblock </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a> *&nbsp;</td>
          <td class="paramname"> <em>aBlockBufPtr</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="a6c079597381bb81efa698e4166028a8c"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iBlockInfoAlignedSize" ref="a6c079597381bb81efa698e4166028a8c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a6c079597381bb81efa698e4166028a8c">OsclMemPoolResizableAllocator::iBlockInfoAlignedSize</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8a803d161dfacd97df67888386e8b5b8"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iBufferInfoAlignedSize" ref="a8a803d161dfacd97df67888386e8b5b8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a8a803d161dfacd97df67888386e8b5b8">OsclMemPoolResizableAllocator::iBufferInfoAlignedSize</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aead06bf5f6b17704cd8e36e44d589ba9"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iCheckFreeMemoryAvailable" ref="aead06bf5f6b17704cd8e36e44d589ba9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classOsclMemPoolResizableAllocator.html#aead06bf5f6b17704cd8e36e44d589ba9">OsclMemPoolResizableAllocator::iCheckFreeMemoryAvailable</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a078951ff910fc4fe5995d3d330a40b2a"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iCheckNextAvailable" ref="a078951ff910fc4fe5995d3d330a40b2a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classOsclMemPoolResizableAllocator.html#a078951ff910fc4fe5995d3d330a40b2a">OsclMemPoolResizableAllocator::iCheckNextAvailable</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a0853aab840b804e93f6c3d5c68535a07"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iDebugLogger" ref="a0853aab840b804e93f6c3d5c68535a07" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">OsclMemPoolResizableAllocatorLogger* <a class="el" href="classOsclMemPoolResizableAllocator.html#a0853aab840b804e93f6c3d5c68535a07">OsclMemPoolResizableAllocator::iDebugLogger</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="afb318b658dd5a11d84445ff07031b409"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iEnableNullPtrReturn" ref="afb318b658dd5a11d84445ff07031b409" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classOsclMemPoolResizableAllocator.html#afb318b658dd5a11d84445ff07031b409">OsclMemPoolResizableAllocator::iEnableNullPtrReturn</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a72475f7dd5def3908ef86ffad3612c56"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iExpectedNumBlocksPerBuffer" ref="a72475f7dd5def3908ef86ffad3612c56" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a72475f7dd5def3908ef86ffad3612c56">OsclMemPoolResizableAllocator::iExpectedNumBlocksPerBuffer</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a5d1b75b67a86d0a4774fccfd3649a19b"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iFreeMemContextData" ref="a5d1b75b67a86d0a4774fccfd3649a19b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a>* <a class="el" href="classOsclMemPoolResizableAllocator.html#a5d1b75b67a86d0a4774fccfd3649a19b">OsclMemPoolResizableAllocator::iFreeMemContextData</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a92e932af64e42902a0239f2ea94b7255"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iFreeMemPoolObserver" ref="a92e932af64e42902a0239f2ea94b7255" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOsclMemPoolResizableAllocatorMemoryObserver.html">OsclMemPoolResizableAllocatorMemoryObserver</a>* <a class="el" href="classOsclMemPoolResizableAllocator.html#a92e932af64e42902a0239f2ea94b7255">OsclMemPoolResizableAllocator::iFreeMemPoolObserver</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a778165cc4a16f1b7e4f110e419fc18d9"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMaxNewMemPoolBufferSz" ref="a778165cc4a16f1b7e4f110e419fc18d9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a778165cc4a16f1b7e4f110e419fc18d9">OsclMemPoolResizableAllocator::iMaxNewMemPoolBufferSz</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a398665f3f43e3c5d92d1214487307c78"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMemPoolBufferAllocator" ref="a398665f3f43e3c5d92d1214487307c78" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOscl__DefAlloc.html">Oscl_DefAlloc</a>* <a class="el" href="classOsclMemPoolResizableAllocator.html#a398665f3f43e3c5d92d1214487307c78">OsclMemPoolResizableAllocator::iMemPoolBufferAllocator</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a6f369b95e8b165832aaec357f290658d"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMemPoolBufferList" ref="a6f369b95e8b165832aaec357f290658d" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOscl__Vector.html">Oscl_Vector</a>&lt;<a class="el" href="structOsclMemPoolResizableAllocator_1_1MemPoolBufferInfo.html">MemPoolBufferInfo</a>*, <a class="el" href="classOsclMemAllocator.html">OsclMemAllocator</a>&gt; <a class="el" href="classOsclMemPoolResizableAllocator.html#a6f369b95e8b165832aaec357f290658d">OsclMemPoolResizableAllocator::iMemPoolBufferList</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="aaacf1d18553837eef1b1cc94ea18cf63"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMemPoolBufferNumLimit" ref="aaacf1d18553837eef1b1cc94ea18cf63" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#aaacf1d18553837eef1b1cc94ea18cf63">OsclMemPoolResizableAllocator::iMemPoolBufferNumLimit</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a16a3eb265a1e0d5dab7bb7655cc13724"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMemPoolBufferSize" ref="a16a3eb265a1e0d5dab7bb7655cc13724" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a16a3eb265a1e0d5dab7bb7655cc13724">OsclMemPoolResizableAllocator::iMemPoolBufferSize</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a9853b3055f4c806d08d1fba0246408ce"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iMemPoolPrevAllocBufferIndex" ref="a9853b3055f4c806d08d1fba0246408ce" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a9853b3055f4c806d08d1fba0246408ce">OsclMemPoolResizableAllocator::iMemPoolPrevAllocBufferIndex</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a7fb5033a78c6feff68998dd89b6fd749"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iNextAvailableContextData" ref="a7fb5033a78c6feff68998dd89b6fd749" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="group__osclbase.html#ga3bac54662348f5e6c08b97ca97066b89">OsclAny</a>* <a class="el" href="classOsclMemPoolResizableAllocator.html#a7fb5033a78c6feff68998dd89b6fd749">OsclMemPoolResizableAllocator::iNextAvailableContextData</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a555e870a36d26be233bebe9c28810971"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iObserver" ref="a555e870a36d26be233bebe9c28810971" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classOsclMemPoolResizableAllocatorObserver.html">OsclMemPoolResizableAllocatorObserver</a>* <a class="el" href="classOsclMemPoolResizableAllocator.html#a555e870a36d26be233bebe9c28810971">OsclMemPoolResizableAllocator::iObserver</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a1da691c3534d69dc96a0cb70e6143af5"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iRefCount" ref="a1da691c3534d69dc96a0cb70e6143af5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a1da691c3534d69dc96a0cb70e6143af5">OsclMemPoolResizableAllocator::iRefCount</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8668e1557bf2a979663379b4364972c9"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iRequestedAvailableFreeMemSize" ref="a8668e1557bf2a979663379b4364972c9" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#a8668e1557bf2a979663379b4364972c9">OsclMemPoolResizableAllocator::iRequestedAvailableFreeMemSize</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab976d47b249b50802ac4eb1ab2445b02"></a><!-- doxytag: member="OsclMemPoolResizableAllocator::iRequestedNextAvailableSize" ref="ab976d47b249b50802ac4eb1ab2445b02" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint32 <a class="el" href="classOsclMemPoolResizableAllocator.html#ab976d47b249b50802ac4eb1ab2445b02">OsclMemPoolResizableAllocator::iRequestedNextAvailableSize</a><code> [protected]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="oscl__mem__mempool_8h_source.html">oscl_mem_mempool.h</a></li>
</ul>
</div>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: CORE_9.004.1.1 </small>
</small></address>
</body>
</html>