Sha256: eac7e599c15ca9f8a1d3b1a4d92ce7c8dfdc5cc4864cf7cce0303f2bdd2eb7d9

Contents?: true

Size: 522 Bytes

Versions: 116

Compression:

Stored size: 522 Bytes

Contents

#ifndef FILE_READING_H
#define FILE_READING_H
#include <ruby.h>

typedef struct {
    FILE *file;
    size_t length;
    char *path;

    // Information processed from file path
    ID multiprocess_mode;
    ID type;
    VALUE pid;
} file_t;

typedef struct {
    char *buffer;
    size_t size;
    size_t capacity;
} buffer_t;

int file_close(file_t *file);

int file_open_from_params(file_t *file, VALUE params);

int read_from_file(const file_t *source, buffer_t *data);

void buffer_dispose(buffer_t *buffer);

#endif

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
prometheus-client-mmap-0.22.0-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0-x86_64-linux-musl ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.21.0-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3-x86_64-linux-musl ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.3 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.2 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.1 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.20.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.19.1 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.19.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.18.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.17.0 ext/fast_mmaped_file/file_reading.h