Bull DPX/20 User's Guide Page 86

  • Download
  • Add to my manuals
  • Print
  • Page
    / 424
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 85
1-74 SOMobjects Base Toolkit: Programmers Reference Manual
somAllocate Method
Purpose
Supports class-specific memory allocation for class instances. Cannot be overridden.
IDL Syntax
string somAllocate (in long size);
Note: For backward compatibility, this method does not take an Environment parameter.
Description
When building a class, the somBuildClass function is responsible for registering the
procedure that will be executed when this method is invoked on the class. The default
procedure registered by somBuildClass uses the SOMMalloc function, but the IDL
modifier somallocate can be used in the SOM IDL class implementation section to indicate
a different procedure. Users of this method should be sure to use the dual method,
somDeallocate, to free allocated storage. Also, if the IDL modifier somallocate is used to
indicate a special allocation routine, the IDL modifier somdeallocate should be used to
indicate a dual procedure to be called when the somDeallocate method is invoked.
Parameters
receiver A pointer to the class object whose memory allocation method is desired.
size The number of bytes to be allocated.
Return Value
string A pointer to the first byte of the allocated memory region, or NULL if
sufficient memory is not available.
C++ Example
#include <som.xh>
#include <somcls.xh>
main()
{
SOMClassMgr *cm = somEnvironmentNew();
/* Use SOMClass’s instance allocation method */
string newRegion = _SOMClass–>somAllocate(20);
}
Original Class
SOMClass
Related Information
Methods: somDeallocate
Page view 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 423 424

Comments to this Manuals

No comments

Dialogic 306-323 manuali

Manuali dei proprietari e guide per l'utente per Schede/adattatori di rete Dialogic 306-323.
We fornisce 1 manuali pdf Dialogic 306-323 per scaricare gratuitamente in base al tipo di documento: Scheda Tecnica






Più prodotti e manuali per Schede/adattatori di rete Dialogic

Modelli Tipo di Documento
306-320 Scheda Tecnica   Dialogic Diva PRI/E1/T1-CTI, 8 pagine