VMware GemFire Native C++ Reference  9.1
DataOutput.hpp File Reference

Go to the source code of this file.

Data Structures

class  apache::geode::client::DataOutput
 Provide operations for writing primitive data values, byte arrays, strings, Serializable objects to a byte stream. More...
 

Namespaces

 apache
 Each enum represents a predefined RegionAttributes in a Cache.
 

Macros

#define GF_ALLOC(v, t, s)
 C style memory allocation that throws OutOfMemoryException if it fails. More...
 
#define GF_RESIZE(v, t, s)
 C style memory re-allocation that throws OutOfMemoryException if it fails. More...
 

Macro Definition Documentation

#define GF_ALLOC (   v,
  t,
 
)
Value:
{ \
v = (t*)malloc((s) * sizeof(t)); \
if ((v) == NULL) { \
throw OutOfMemoryException( \
"Out of Memory while allocating buffer for " #t " of size " #s); \
} \
}

C style memory allocation that throws OutOfMemoryException if it fails.

#define GF_RESIZE (   v,
  t,
 
)
Value:
{ \
v = (t*)realloc(v, (s) * sizeof(t)); \
if ((v) == NULL) { \
throw OutOfMemoryException( \
"Out of Memory while resizing buffer for " #t); \
} \
}

C style memory re-allocation that throws OutOfMemoryException if it fails.


Pivotal GemFire C++ Cache API Documentation