ValueInternal.h File Reference

#include <support/Value.h>
#include <support/SharedBuffer.h>
#include <math.h>
#include <ctype.h>
#include <float.h>
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

Go to the source code of this file.

Defines

#define CHECK_IS_LARGE_OBJECT(type)   (((type)&(B_TYPE_LENGTH_MASK|0x00007f00)) == (B_TYPE_LENGTH_LARGE|('*'<<B_TYPE_CODE_SHIFT)))
#define CHECK_IS_SMALL_OBJECT(type)   (((type)&(B_TYPE_LENGTH_MASK|0x00007f00)) == (sizeof(void*)|('*'<<B_TYPE_CODE_SHIFT)))
#define VALIDATE_TYPE(type)   DbgOnlyFatalErrorIf(((type)&~B_TYPE_CODE_MASK) != 0, "Type codes can only use bits 0x7f7f7f00!");

Enumerations

enum  {
  kUndefinedTypeCode = B_UNDEFINED_TYPE, kWildTypeCode = B_PACK_SMALL_TYPE(B_WILD_TYPE, 0), kNullTypeCode = B_PACK_SMALL_TYPE(B_NULL_TYPE, 0), kErrorTypeCode = B_PACK_SMALL_TYPE(B_ERROR_TYPE, 4),
  kMapTypeCode = B_TYPE_BYTEORDER_NORMAL | B_TYPE_LENGTH_MAP | B_VALUE_TYPE
}


Define Documentation

#define CHECK_IS_LARGE_OBJECT type   )     (((type)&(B_TYPE_LENGTH_MASK|0x00007f00)) == (B_TYPE_LENGTH_LARGE|('*'<<B_TYPE_CODE_SHIFT)))
 

#define CHECK_IS_SMALL_OBJECT type   )     (((type)&(B_TYPE_LENGTH_MASK|0x00007f00)) == (sizeof(void*)|('*'<<B_TYPE_CODE_SHIFT)))
 

#define VALIDATE_TYPE type   )     DbgOnlyFatalErrorIf(((type)&~B_TYPE_CODE_MASK) != 0, "Type codes can only use bits 0x7f7f7f00!");
 


Enumeration Type Documentation

anonymous enum
 

Enumerator:
kUndefinedTypeCode 
kWildTypeCode 
kNullTypeCode 
kErrorTypeCode 
kMapTypeCode