Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Please Vote! Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

# CMemory

  Used to allocate and free memory.

[ Common | Source | Keywords | Summary | Ancestors | All Members | Descendants ]

## Quick Index

  DESCRIPTION

## Class Summary

class CMemory
{
public:

  static void *mmalloc( long len, LPCTSTR e );
  static void *mrealloc( void *buf, long len, LPCTSTR e );
  static void mfree( void *buf );

protected:

}; // CMemory

Back to the top of CMemory

### DESCRIPTION

Contains three static methods which wrap the 'malloc()', 'realloc()', and 'free()' routines. The first two of these throw exceptions if memory couldn't be allocated.

Back to the top of CMemory

### void *mmalloc( long len, LPCTSTR e );

Same as 'malloc', except throws an exception if the memory couldn't be allocated. Also, fills the memory block with zeroes.

in len
  The number of bytes to allocate.
in e
  The exception which will be thrown.

    	static	void	*mmalloc( long len, LPCTSTR e );

Back to the top of CMemory

### void *mrealloc( void *buf, long len, LPCTSTR e );

Same as 'realloc', except throws an exception if the memory couldn't be allocated.

in buf
  Address of the existing memory block.
in len
  The new size of the memory block in bytes.
in e
  The exception which will be thrown.

    	static	void	*mrealloc( void *buf, long len, LPCTSTR e );

Back to the top of CMemory

### void mfree( void *buf );

Same as 'free'.

in buf
  Address of the block to free.

    	static	void	mfree( void *buf );

Back to the top of CMemory

## All Members

public:
  static void *mmalloc( long len, LPCTSTR e );
  static void *mrealloc( void *buf, long len, LPCTSTR e );
  static void mfree( void *buf );
protected:

Back to the top of CMemory

## Ancestors

Class does not inherit from any other class.

Back to the top of CMemory

## Descendants

Class is not inherited by any others.

Back to the top of CMemory

Generated from source by the Cocoon utilities on Mon May 28 10:10:47 2001 .

Main Page · JConfig · ImageMeister · System Properties Repository · WordMeister · Free Samples · Java Freeware · Contact Us · FAQ · Links

Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.
WarpMovie, TileMovie, JConfig, ImageMeister and MovieShredder are Trademarks of Samizdat Productions.