Please, help us to better serve our user community by answering the following short survey: https://www.hdfgroup.org/website-survey/

| HDF 4.3.0 API Reference |

Loading...
Searching...
No Matches
Macros | Typedefs
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 /* Little-endian, IEEE-754 architectures */
#define | DFMT_BE 0x1111 /* Big-endian, IEEE-754 architectures */
#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 | 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 /* Big-endian, IEEE-754 architectures */

## ◆ DFMT_LE

#define DFMT_LE 0x4441 /* Little-endian, IEEE-754 architectures */

## ◆ FILELIB

#define FILELIB UNIXBUFIO

## ◆ 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
int16_t int16
Definition hdf.h:48

## ◆ INT16ENCODE

#define INT16ENCODE | ( |  | p,
|  |  | i )

Value:
{ \
*(p) = (uint8)(((uintn)(i) >> 8) & 0xff); \
(p)++; \
*(p) = (uint8)((uintn)(i)&0xff); \
(p)++; \
}
uint8
uint8_t uint8
Definition hdf.h:47
uintn
unsigned int uintn
Definition hdf.h:55

## ◆ 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
int32_t int32
Definition hdf.h:50

## ◆ 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
uint32_t uint32
Definition hdf.h:51

## ◆ JMEMSYS

#define JMEMSYS MEM_ANSI

## ◆ NBYTEDECODE

#define NBYTEDECODE | ( |  | s,
|  |  | d,
|  |  | n )

Value:
{ \
memcpy(d, s, n); \
p += n \
}
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
uint16_t uint16
Definition hdf.h:49

## ◆ UINT16ENCODE

#define UINT16ENCODE | ( |  | p,
|  |  | i )

Value:
{ \
*(p) = (uint8)(((uintn)(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