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)  

buffer.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdarg.h>
#include "dep/sds.h"
Include dependency graph for buffer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  caryll_Buffer
 

Typedefs

typedef struct caryll_Buffer caryll_Buffer
 

Functions

caryll_Bufferbufnew (void)
 
caryll_Bufferbufninit (uint32_t n,...)
 
void buffree (caryll_Buffer *buf)
 
size_t buflen (caryll_Buffer *buf)
 
size_t bufpos (caryll_Buffer *buf)
 
void bufseek (caryll_Buffer *buf, size_t pos)
 
void bufclear (caryll_Buffer *buf)
 
void bufwrite8 (caryll_Buffer *buf, uint8_t byte)
 
void bufwrite16l (caryll_Buffer *buf, uint16_t x)
 
void bufwrite16b (caryll_Buffer *buf, uint16_t x)
 
void bufwrite24l (caryll_Buffer *buf, uint32_t x)
 
void bufwrite24b (caryll_Buffer *buf, uint32_t x)
 
void bufwrite32l (caryll_Buffer *buf, uint32_t x)
 
void bufwrite32b (caryll_Buffer *buf, uint32_t x)
 
void bufwrite64l (caryll_Buffer *buf, uint64_t x)
 
void bufwrite64b (caryll_Buffer *buf, uint64_t x)
 
void bufnwrite8 (caryll_Buffer *buf, uint32_t n,...)
 
void bufwrite_sds (caryll_Buffer *buf, sds str)
 
void bufwrite_str (caryll_Buffer *buf, const char *str)
 
void bufwrite_bytes (caryll_Buffer *buf, size_t size, const uint8_t *str)
 
void bufwrite_buf (caryll_Buffer *buf, caryll_Buffer *that)
 
void bufwrite_bufdel (caryll_Buffer *buf, caryll_Buffer *that)
 
void bufping16b (caryll_Buffer *buf, size_t *offset, size_t *cp)
 
void bufping16bd (caryll_Buffer *buf, size_t *offset, size_t *shift, size_t *cp)
 
void bufpingpong16b (caryll_Buffer *buf, caryll_Buffer *that, size_t *offset, size_t *cp)
 
void bufpong (caryll_Buffer *buf, size_t *offset, size_t *cp)
 
void bufprint (caryll_Buffer *buf)
 
void buflongalign (caryll_Buffer *buf)
 

Typedef Documentation

◆ caryll_Buffer

typedef struct caryll_Buffer caryll_Buffer

Function Documentation

◆ bufclear()

void bufclear ( caryll_Buffer buf)

Definition at line 24 of file buffer.c.

References buf.

Referenced by glyf_build_simple(), and otfcc_buildGlyf().

◆ buffree()

◆ buflen()

size_t buflen ( caryll_Buffer buf)

Definition at line 15 of file buffer.c.

References buf.

◆ buflongalign()

void buflongalign ( caryll_Buffer buf)

Definition at line 176 of file buffer.c.

References buf, buflen(), bufseek(), bufwrite8(), and cp.

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

◆ bufnew()

◆ bufninit()

◆ bufnwrite8()

void bufnwrite8 ( caryll_Buffer buf,
uint32_t  n,
  ... 
)

Definition at line 123 of file buffer.c.

References ap, buf, bufbeforewrite(), bufwrite8(), j, n, va_arg, va_end, and va_start.

Referenced by cff_mergeCS2Int(), cff_mergeCS2Operator(), and mergeCS2Real().

◆ bufping16b()

void bufping16b ( caryll_Buffer buf,
size_t offset,
size_t cp 
)

Definition at line 201 of file buffer.c.

References buf, bufseek(), bufwrite16b(), cp, and offset.

◆ bufping16bd()

void bufping16bd ( caryll_Buffer buf,
size_t offset,
size_t shift,
size_t cp 
)

Definition at line 206 of file buffer.c.

References buf, bufseek(), bufwrite16b(), cp, offset, and shift.

◆ bufpingpong16b()

void bufpingpong16b ( caryll_Buffer buf,
caryll_Buffer that,
size_t offset,
size_t cp 
)

Definition at line 215 of file buffer.c.

References buf, bufseek(), bufwrite16b(), bufwrite_bufdel(), cp, and offset.

◆ bufpong()

void bufpong ( caryll_Buffer buf,
size_t offset,
size_t cp 
)

Definition at line 211 of file buffer.c.

References buf, bufseek(), cp, and offset.

◆ bufpos()

size_t bufpos ( caryll_Buffer buf)

Definition at line 18 of file buffer.c.

References buf.

Referenced by copy_string(), decode(), gregorio_find_vowel_group(), and is_in_prefix().

◆ bufprint()

void bufprint ( caryll_Buffer buf)

Definition at line 224 of file buffer.c.

References buf, fprintf, and j.

◆ bufseek()

◆ bufwrite16b()

◆ bufwrite16l()

void bufwrite16l ( caryll_Buffer buf,
uint16_t  x 
)

Definition at line 53 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

◆ bufwrite24b()

void bufwrite24b ( caryll_Buffer buf,
uint32_t  x 
)

Definition at line 69 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

Referenced by buildFormat14ForSelector(), and writeDefaultRange().

◆ bufwrite24l()

void bufwrite24l ( caryll_Buffer buf,
uint32_t  x 
)

Definition at line 63 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

◆ bufwrite32b()

◆ bufwrite32l()

void bufwrite32l ( caryll_Buffer buf,
uint32_t  x 
)

Definition at line 75 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

◆ bufwrite64b()

void bufwrite64b ( caryll_Buffer buf,
uint64_t  x 
)

Definition at line 100 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

Referenced by otfcc_buildHead().

◆ bufwrite64l()

void bufwrite64l ( caryll_Buffer buf,
uint64_t  x 
)

Definition at line 89 of file buffer.c.

References buf, bufbeforewrite(), and cordic::x.

◆ bufwrite8()

◆ bufwrite_buf()

◆ bufwrite_bufdel()

void bufwrite_bufdel ( caryll_Buffer buf,
caryll_Buffer that 
)

◆ bufwrite_bytes()

◆ bufwrite_sds()

void bufwrite_sds ( caryll_Buffer buf,
sds  str 
)

Definition at line 133 of file buffer.c.

References buf, bufbeforewrite(), len, memcpy, sdslen(), and str.

Referenced by cffstrings_to_indexblob(), otfcc_buildPost(), and pushTSIEntries().

◆ bufwrite_str()

void bufwrite_str ( caryll_Buffer buf,
const char *  str 
)

Definition at line 141 of file buffer.c.

References buf, bufbeforewrite(), len, memcpy, str, and strlen().