Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Classes | Namespaces | Typedefs | Enumerations
misctype.h File Reference

Integral type definitions. More...

#include <wfio/host.h>
#include <stddef.h>
#include <wfio/bits/endian.h>

Go to the source code of this file.

Classes

struct  wfio_undefined_t
 A structure indicating no definition. More...
 

Namespaces

 wfio
 The root namespace for WFIO.
 

Typedefs

typedef WFIO_C_BEGIN struct wfio_undefined_t wfio_undefined_t
 A structure indicating no definition. More...
 
typedef enum wfio_endian_t wfio_endian_t
 A categorization of the byte-order of multibyte integers.
 
typedef ::wfio_undefined_t wfio::undefined_t
 A structure indicating no definition. More...
 
typedef ::wfio_endian_t wfio::endian_t
 A categorization of the byte-order of multibyte integers. More...
 

Enumerations

enum  wfio_endian_t {
  WFIO_ENDIAN_BIG, WFIO_ENDIAN_LIL, WFIO_ENDIAN_LIL16, WFIO_ENDIAN_BIGLIL,
  WFIO_ENDIAN_X86 = WFIO_ENDIAN_LIL, WFIO_ENDIAN_PPC = WFIO_ENDIAN_BIG, WFIO_ENDIAN_JAVA = WFIO_ENDIAN_BIG, WFIO_ENDIAN_INET = WFIO_ENDIAN_BIG,
  WFIO_ENDIAN_PDP = WFIO_ENDIAN_LIL16, WFIO_ENDIAN_HOST, WFIO_ENDIAN_RHOST, WFIO_ENDIAN_FLT
}
 A categorization of the byte-order of multibyte integers. More...
 

Detailed Description

Integral type definitions.

This basic miscellaneous types.

Author
Phillip Kilgore
Since
0.0.1

Typedef Documentation

◆ wfio_undefined_t

A structure indicating no definition.

This structure exists as a stand-in for types that cannot be defined. It is intended to facilitate

Enumeration Type Documentation

◆ wfio_endian_t

A categorization of the byte-order of multibyte integers.

Enumerator
WFIO_ENDIAN_BIG 

An endian representing the least-significant byte first.

This endianness places the least significant byte first and ascends to the most significant byte. For instance, the 32-bit values 0x11223344 would be represented as:

char[] value = { 0x11, 0x22, 0x33, 0x44 };

This endianness is well known for being used in TCP/IP.

WFIO_ENDIAN_LIL 

An endian representing the least-significant byte first.

This endianness places the least significant byte first and ascends to the most significant byte. For instance, the 32-bit values 0x11223344 would be represented as:

char[] value = { 0x44, 0x33, 0x22, 0x11 };

This endianness is well known for being used on the x86 architecture.

WFIO_ENDIAN_LIL16 

An endian representing 16-bit words in little endian.

This endian has two big-endian 16-bit words with the least- significant word first. For instance, the 32-bit values 0x11223344 would be represented as:

char[] value = { 0x22, 0x11, 0x44, 0x33 };

This endianness is well known for being used on the PDP-11 architecture.

WFIO_ENDIAN_BIGLIL 

An endian representing 16-bit words in little endian.

This endian has two little-endian 16-bit words with the most- significant word first. For instance, the 32-bit values 0x11223344 would be represented as:

char[] value = { 0x33, 0x44, 0x11, 0x22 };

This endianness is well known for being used on the PDP-11 architecture.

WFIO_ENDIAN_X86 

An endian representing the byte order on an Intel x86 machine.

This is synonymous with WFIO_ENDIAN_LIL.

WFIO_ENDIAN_PPC 

An endian representing the byte order on a PowerPC machine.

This is synonymous with WFIO_ENDIAN_BIG.

WFIO_ENDIAN_JAVA 

An endian representing the byte order on the Java virtual machine.

This is synonymous with WFIO_ENDIAN_BIG.

WFIO_ENDIAN_INET 

An endian representing the byte order on TCP/IP networks.

This is synonymous with WFIO_ENDIAN_BIG.

WFIO_ENDIAN_PDP 

An endian representing the byte order on the Java virtual machine.

This is synonymous with WFIO_ENDIAN_LIL16.

WFIO_ENDIAN_HOST 

The endianness of this system.

This endian represents the endianness of this system.

WFIO_ENDIAN_RHOST 

The reverse endianness of this system.

This endian represents the reverse of the endianness for this system.

WFIO_ENDIAN_FLT 

The endian of floating point numbers.

This endian represents the endianness of float or double.