w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

bin-io.h File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for bin-io.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INLINE   inline /* use standard inline */
 

Functions

static bool otfcc_check_endian (void)
 
static uint16_t otfcc_endian_convert16 (uint16_t i)
 
static uint32_t otfcc_endian_convert32 (uint32_t i)
 
static uint64_t otfcc_endian_convert64 (uint64_t i)
 
static uint16_t otfcc_get16u (FILE *file)
 
static uint32_t otfcc_get32u (FILE *file)
 
static uint64_t otfcc_get64u (FILE *file)
 
static uint8_t read_8u (const uint8_t *src)
 
static uint16_t read_16u (const uint8_t *src)
 
static uint32_t read_24u (const uint8_t *src)
 
static uint32_t read_32u (const uint8_t *src)
 
static uint64_t read_64u (const uint8_t *src)
 
static int8_t read_8s (const uint8_t *src)
 
static int16_t read_16s (const uint8_t *src)
 
static int32_t read_32s (const uint8_t *src)
 
static int64_t read_64s (const uint8_t *src)
 
static uint16_t be16 (uint16_t x)
 
static uint32_t be32 (uint32_t x)
 

Macro Definition Documentation

◆ INLINE

#define INLINE   inline /* use standard inline */

Definition at line 12 of file bin-io.h.

Function Documentation

◆ be16()

static uint16_t be16 ( uint16_t  x)
inlinestatic

◆ be32()

static uint32_t be32 ( uint32_t  x)
inlinestatic

Definition at line 166 of file bin-io.h.

References cordic::x.

Referenced by otfcc_readFvar(), and polymorphize().

◆ otfcc_check_endian()

static bool otfcc_check_endian ( void  )
inlinestatic

Definition at line 16 of file bin-io.h.

Referenced by otfcc_endian_convert16(), otfcc_endian_convert32(), and otfcc_endian_convert64().

◆ otfcc_endian_convert16()

static uint16_t otfcc_endian_convert16 ( uint16_t  i)
inlinestatic

Definition at line 25 of file bin-io.h.

References i, otfcc_check_endian(), and link_confs::src.

Referenced by otfcc_get16u().

◆ otfcc_endian_convert32()

static uint32_t otfcc_endian_convert32 ( uint32_t  i)
inlinestatic

Definition at line 43 of file bin-io.h.

References i, otfcc_check_endian(), and link_confs::src.

Referenced by buf_checksum(), createSegment(), and otfcc_get32u().

◆ otfcc_endian_convert64()

static uint64_t otfcc_endian_convert64 ( uint64_t  i)
inlinestatic

Definition at line 63 of file bin-io.h.

References i, otfcc_check_endian(), and link_confs::src.

Referenced by otfcc_get64u().

◆ otfcc_get16u()

static uint16_t otfcc_get16u ( FILE file)
inlinestatic

Definition at line 87 of file bin-io.h.

References exit(), EXIT_FAILURE, fprintf, fread, and otfcc_endian_convert16().

Referenced by otfcc_read_packets().

◆ otfcc_get32u()

static uint32_t otfcc_get32u ( FILE file)
inlinestatic

Definition at line 97 of file bin-io.h.

References exit(), EXIT_FAILURE, fprintf, fread, and otfcc_endian_convert32().

Referenced by otfcc_read_packets(), and otfcc_readSFNT().

◆ otfcc_get64u()

static uint64_t otfcc_get64u ( FILE file)
inlinestatic

Definition at line 107 of file bin-io.h.

References exit(), EXIT_FAILURE, fprintf, fread, and otfcc_endian_convert64().

◆ read_16s()

◆ read_16u()

◆ read_24u()

static uint32_t read_24u ( const uint8_t src)
inlinestatic

Definition at line 126 of file bin-io.h.

References b0, b1, b2, link_confs::src, and uint32_t.

Referenced by readFormat14(), readUVSDefault(), and readUVSNonDefault().

◆ read_32s()

static int32_t read_32s ( const uint8_t src)
inlinestatic

Definition at line 156 of file bin-io.h.

References read_32u(), and link_confs::src.

Referenced by otfcc_readHead(), otfcc_readHhea(), otfcc_readMaxp(), otfcc_readPost(), and otfcc_readVhea().

◆ read_32u()

◆ read_64s()

static int64_t read_64s ( const uint8_t src)
inlinestatic

Definition at line 159 of file bin-io.h.

References read_64u(), and link_confs::src.

◆ read_64u()

static uint64_t read_64u ( const uint8_t src)
inlinestatic

Definition at line 139 of file bin-io.h.

References b0, b1, b2, b3, link_confs::src, and uint64_t.

Referenced by otfcc_readHead(), and read_64s().

◆ read_8s()

static int8_t read_8s ( const uint8_t src)
inlinestatic

Definition at line 150 of file bin-io.h.

References read_8u(), and link_confs::src.

Referenced by otfcc_read_composite_glyph().

◆ read_8u()

static uint8_t read_8u ( const uint8_t src)
inlinestatic