#include "BBC/inline.h"
#include "BBC/IVTE_id.h"
Data Structures | |
| struct | _IVTE_dir |
| Directory structure definition. More... | |
| struct | _IVTE_hdr |
| Header structure definition. More... | |
| struct | _IVTE_tlr |
| Trailer structure definition. More... | |
Defines | |
| #define | IVTE_EXT_PROTO INLINE_USR_EXT_PROTO |
| Declaration for external function prototype. | |
| #define | IVTE_LCL_PROTO INLINE_USR_LCL_PROTO |
| Declaration for internal function prototype. | |
| #define | IVTE_EXT_FNC INLINE_USR_EXT_FNC |
| Declaration for external function. | |
| #define | IVTE_LCL_FNC INLINE_USR_LCL_FNC |
| Declaration for internal function. | |
| #define | IVTE_V_NDIR 0 |
| Shift amount to right justify the NDIR field. | |
| #define | IVTE_W_NDIR 24 |
| Shift amount to left justify the NDIR field. | |
| #define | IVTE_S_NDIR 8 |
| Size, in bits of the NDIR field. | |
| #define | IVTE_M_NDIR 0xff |
| Right justified mask for the NDIR field. | |
| #define | IVTE_V_STATUS 8 |
| Shift amount to right justify the STATUS field. | |
| #define | IVTE_W_STATUS 0 |
| Shift amount to left justify the STATUS field. | |
| #define | IVTE_S_STATUS 24 |
| Size, in bits of the STATUS field. | |
| #define | IVTE_M_STATUS 0xffffff00 |
| Right justified mask for the STATUS field. | |
| #define | IVTE_DIR_SIZEOF (sizeof(struct _IVTE_dir)) |
| Get the sizeof an IVTE directory structure. More... | |
| #define | IVTE_HDR_SIZEOF (sizeof(struct _IVTE_hdr) - sizeof(struct _IVTE_dir)) |
| Get the sizeof an IVTE header structure. | |
| #define | IVTE_TLR_SIZEOF (sizeof(struct _IVTE_tlr) |
| Get the sizeof an IVTE trailer structure. | |
| #define | IVTE_DIR_ALIGNMENT_SIZE (sizeof (int)) |
| The IVTE directory alignment size, expressed in bytes. | |
| #define | IVTE_DIR_ALIGNMENT_MASK (~(IVTE_DIR_ALIGNMENT_SIZE-1)) |
| The IVTE directory alignment mask. | |
| #define | IVTE_DATA_ALIGNMENT_SIZE (sizeof (int)) |
| The IVTE data alignment size, expressed in bytes. | |
| #define | IVTE_DATA_ALIGNMENT_MASK (~(IVTE_DATA_ALIGNMENT_SIZE-1)) |
| The IVTE data alignment mask. | |
Typedefs | |
| typedef _IVTE_dir | IVTE_dir |
| Typedef for struct _IVTE_dir. | |
| typedef _IVTE_hdr | IVTE_hdr |
| Typedef for struct _IVTE_hdr. | |
| typedef _IVTE_tlr | IVTE_tlr |
| Typedef for struct _IVTE_tlr. | |
Functions | |
| IVTE_EXT_PROTO int | IVTE__dir_sizeof (void) |
| Returns the size of a directory entry. More... | |
| IVTE_EXT_PROTO int | IVTE__hdr_sizeof (int ndir) |
| Returns the size of an IVTE header structure needed to contain the specified number of directories. More... | |
| IVTE_EXT_PROTO int | IVTE__tlr_sizeof (void) |
| Returns the size of a trailer record. More... | |
| IVTE_EXT_PROTO const struct _IVTE_hdr * | IVTE__hdr_next (const struct _IVTE_hdr *hdr) |
| Advances the hdr pointer to point just past the end of the current event. More... | |
| IVTE_EXT_PROTO const void * | IVTE__data_locate (const struct _IVTE_hdr *hdr, const struct _IVTE_dir *dir) |
| Locates the data area associated with the specified directory. More... | |
| IVTE_EXT_PROTO const struct _IVTE_tlr * | IVTE__tlr_locate (const struct _IVTE_hdr *hdr) |
| Locates the trailer record for this event. More... | |
| IVTE_EXT_PROTO int | IVTE__ndir (unsigned int status_ndir) |
| Unpacks the number of directories from the status/directory count word. More... | |
| IVTE_EXT_PROTO unsigned int | IVTE__status (unsigned int status_ndir) |
| Unpacks the status word from the status/directory count word. More... | |
| IVTE_EXT_PROTO unsigned int | IVTE__data_align (unsigned int offset) |
| Computes where the next data block should start. More... | |
| IVTE_EXT_PROTO void | IVTE__hdr_build (struct _IVTE_hdr *hdr, unsigned int hdr_id, unsigned int size, unsigned int sequence, unsigned int status, unsigned int dir_cnt) |
| Builds an IVTE header record. More... | |
| IVTE_EXT_PROTO void | IVTE__dir_build (struct _IVTE_dir *dir, unsigned int dir_id, int size, unsigned int offset, unsigned int status) |
| Builds a directory record. More... | |
| IVTE_EXT_PROTO void | IVTE__tlr_build (struct _IVTE_tlr *tlr, unsigned int tlr_id, unsigned int size) |
| Builds an IVTE trailer record. More... | |
|
|
Get the sizeof an IVTE directory structure.
|
|
|
Computes where the next data block should start.
|
|
||||||||||||
|
Locates the data area associated with the specified directory.
|
|
||||||||||||||||||||||||
|
Builds a directory record.
|
|
|
Returns the size of a directory entry.
nbytes = IVTE__hdr_sizeof(0) + n * IVTE__dir_sizeof ()
|
|
||||||||||||||||||||||||||||
|
Builds an IVTE header record.
|
|
|
Advances the hdr pointer to point just past the end of the current event.
|
|
|
Returns the size of an IVTE header structure needed to contain the specified number of directories.
|
|
|
Unpacks the number of directories from the status/directory count word.
|
|
|
Unpacks the status word from the status/directory count word.
|
|
||||||||||||||||
|
Builds an IVTE trailer record.
|
|
|
Locates the trailer record for this event.
|
|
|
Returns the size of a trailer record.
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001