Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/
HDF  4.4.0
API Reference
Loading...
Searching...
No Matches
hdf_priv.h File Reference
#include "hdf.h"
#include "herr_priv.h"
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

Macros

#define UNIXUNBUFIO   1
#define UNIXBUFIO   2
#define FILELIB   UNIXBUFIO
#define DFMT_LE   0x4441
#define DFMT_BE   0x1111
#define DF_MT   DFMT_LE
#define H4_HAVE_LP64
#define INT16ENCODE(p, i)
#define UINT16ENCODE(p, i)
#define INT32ENCODE(p, i)
#define UINT32ENCODE(p, i)
#define NBYTEENCODE(d, s, n)
#define INT16DECODE(p, i)
#define UINT16DECODE(p, i)
#define INT32DECODE(p, i)
#define UINT32DECODE(p, i)
#define NBYTEDECODE(s, d, n)
#define H4_DIAG_JOINSTR(x, y)
#define H4_DIAG_DO_PRAGMA(x)
#define H4_DIAG_PRAGMA(x)
#define H4_DIAG_OFF(x)
#define H4_DIAG_ON(x)
#define H4_GCC_DIAG_OFF(x)
#define H4_GCC_DIAG_ON(x)
#define H4_CLANG_DIAG_OFF(x)
#define H4_CLANG_DIAG_ON(x)
#define H4_GCC_CLANG_DIAG_OFF(x)
#define H4_GCC_CLANG_DIAG_ON(x)
#define JMEMSYS   MEM_ANSI

Typedefs

typedef intptr_t hdf_pint_t

Macro Definition Documentation

◆ DF_MT

#define DF_MT   DFMT_LE

◆ DFMT_BE

#define DFMT_BE   0x1111

◆ DFMT_LE

#define DFMT_LE   0x4441

◆ FILELIB

#define FILELIB   UNIXBUFIO

◆ H4_CLANG_DIAG_OFF

#define H4_CLANG_DIAG_OFF ( x)

◆ H4_CLANG_DIAG_ON

#define H4_CLANG_DIAG_ON ( x)

◆ H4_DIAG_DO_PRAGMA

#define H4_DIAG_DO_PRAGMA ( x)
Value:
_Pragma(#x)

◆ H4_DIAG_JOINSTR

#define H4_DIAG_JOINSTR ( x,
y )
Value:
x y

◆ H4_DIAG_OFF

#define H4_DIAG_OFF ( x)
Value:
#define H4_DIAG_PRAGMA(x)
Definition hdf_priv.h:264
#define H4_DIAG_JOINSTR(x, y)
Definition hdf_priv.h:262

◆ H4_DIAG_ON

#define H4_DIAG_ON ( x)
Value:

◆ H4_DIAG_PRAGMA

#define H4_DIAG_PRAGMA ( x)
Value:
H4_DIAG_DO_PRAGMA(GCC diagnostic x)
#define H4_DIAG_DO_PRAGMA(x)
Definition hdf_priv.h:263

◆ H4_GCC_CLANG_DIAG_OFF

#define H4_GCC_CLANG_DIAG_OFF ( x)

◆ H4_GCC_CLANG_DIAG_ON

#define H4_GCC_CLANG_DIAG_ON ( x)

◆ H4_GCC_DIAG_OFF

#define H4_GCC_DIAG_OFF ( x)

◆ H4_GCC_DIAG_ON

#define H4_GCC_DIAG_ON ( x)

◆ H4_HAVE_LP64

#define H4_HAVE_LP64

◆ INT16DECODE

#define INT16DECODE ( p,
i )
Value:
{ \
(i) = (int16)((*(p) & 0x80) ? ~0xffff : 0x00) | ((int16)(*(p) & 0xff) << 8); \
(p)++; \
(i) |= (int16)((*(p) & 0xff)); \
(p)++; \
}
int16_t int16
Definition hdf.h:54

◆ INT16ENCODE

#define INT16ENCODE ( p,
i )
Value:
{ \
*(p) = (uint8)(((unsigned)(i) >> 8) & 0xff); \
(p)++; \
*(p) = (uint8)((unsigned)(i) & 0xff); \
(p)++; \
}
uint8_t uint8
Definition hdf.h:53

◆ INT32DECODE

#define INT32DECODE ( p,
i )
Value:
{ \
(i) = ((int32)(((*(p) & 0x80) ? ~0xffffffffULL : 0x0ULL)) | ((*(p) & (unsigned)0xff) << 24)); \
(p)++; \
(i) |= ((int32)(*(p) & 0xff) << 16); \
(p)++; \
(i) |= ((int32)(*(p) & 0xff) << 8); \
(p)++; \
(i) |= (*(p) & 0xff); \
(p)++; \
}
int32_t int32
Definition hdf.h:56

◆ INT32ENCODE

#define INT32ENCODE ( p,
i )
Value:
{ \
*(p) = (uint8)(((uint32)(i) >> 24) & 0xff); \
(p)++; \
*(p) = (uint8)(((uint32)(i) >> 16) & 0xff); \
(p)++; \
*(p) = (uint8)(((uint32)(i) >> 8) & 0xff); \
(p)++; \
*(p) = (uint8)((uint32)(i) & 0xff); \
(p)++; \
}
uint32_t uint32
Definition hdf.h:57

◆ JMEMSYS

#define JMEMSYS   MEM_ANSI

◆ NBYTEDECODE

#define NBYTEDECODE ( s,
d,
n )
Value:
{ \
memcpy(d, s, n); \
p += n \
}
intf _fcd _fcd intf * n
Definition hproto_fortran.h:1056

◆ NBYTEENCODE

#define NBYTEENCODE ( d,
s,
n )
Value:
{ \
memcpy(d, s, n); \
p += n \
}

◆ UINT16DECODE

#define UINT16DECODE ( p,
i )
Value:
{ \
(i) = (uint16)((*(p) & 0xff) << 8); \
(p)++; \
(i) |= (uint16)(*(p) & 0xff); \
(p)++; \
}
uint16_t uint16
Definition hdf.h:55

◆ UINT16ENCODE

#define UINT16ENCODE ( p,
i )
Value:
{ \
*(p) = (uint8)(((unsigned)(i) >> 8) & 0xff); \
(p)++; \
*(p) = (uint8)((i) & 0xff); \
(p)++; \
}

◆ UINT32DECODE

#define UINT32DECODE ( p,
i )
Value:
{ \
(i) = ((uint32)(*(p) & 0xff) << 24); \
(p)++; \
(i) |= ((uint32)(*(p) & 0xff) << 16); \
(p)++; \
(i) |= ((uint32)(*(p) & 0xff) << 8); \
(p)++; \
(i) |= (uint32)(*(p) & 0xff); \
(p)++; \
}

◆ UINT32ENCODE

#define UINT32ENCODE ( p,
i )
Value:
{ \
*(p) = (uint8)(((i) >> 24) & 0xff); \
(p)++; \
*(p) = (uint8)(((i) >> 16) & 0xff); \
(p)++; \
*(p) = (uint8)(((i) >> 8) & 0xff); \
(p)++; \
*(p) = (uint8)((i) & 0xff); \
(p)++; \
}

◆ UNIXBUFIO

#define UNIXBUFIO   2

◆ UNIXUNBUFIO

#define UNIXUNBUFIO   1

Typedef Documentation

◆ hdf_pint_t

typedef intptr_t hdf_pint_t