Ruby: ext/zlib/zlib-1.2.13/examples/gzlog.h File Reference

Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)

Typedefs | Functions
gzlog.h File Reference

Go to the source code of this file.

## Typedefs
typedef void | gzlog

## Functions
gzlog * | gzlog_open (char *path)
int | gzlog_write (gzlog *log, void *data, size_t len)
int | gzlog_compress (gzlog *log)
int | gzlog_close (gzlog *log)

## Typedef Documentation

## ◆ gzlog

typedef void gzlog

Definition at line 52 of file gzlog.h.

## Function Documentation

## ◆ gzlog_close()

int gzlog_close | ( | gzlog * | log | ) |

Definition at line 1044 of file gzlog.c.

References free, log::id, log_close(), LOGID, NULL, and log::path.

## ◆ gzlog_compress()

int gzlog_compress | ( | gzlog * | log | ) |

Definition at line 910 of file gzlog.c.

References BAIL, COMPRESS_OP, DICT, log::end, log::fd, log::first, free, log::id, log::last, len, log_check(), log_compress(), log_mark(), log_open(), log_touch(), LOGID, malloc, NULL, log::path, PULL2, read(), SEEK_CUR, SEEK_SET, log::stored, and write().

Referenced by gzlog_write().

## ◆ gzlog_open()

gzlog * gzlog_open | ( | char * | path | ) |

Definition at line 867 of file gzlog.c.

References log::end, log::fd, free, log::id, log_open(), LOGID, malloc, NULL, log::path, and strlen().

## ◆ gzlog_write()

int gzlog_write | ( | gzlog * | log,
|  | void * | data,
|  | size_t | len
| ) |  |

Definition at line 997 of file gzlog.c.

References APPEND_OP, BAIL, log::end, log::fd, log::first, gzlog_compress(), log::id, log::last, len, log_append(), log_check(), log_mark(), log_open(), log_touch(), LOGID, NULL, log::path, log::stored, TRIGGER, and write().