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.26.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.26.0-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.26.0-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.26.0-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.26.0-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.25.0 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.25.0-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.25.0-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.25.0-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.25.0-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.5 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.5-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.5-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.5-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.5-aarch64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.4 ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.4-x86_64-linux ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.4-x86_64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.4-arm64-darwin ext/fast_mmaped_file/file_reading.h
prometheus-client-mmap-0.24.4-aarch64-linux ext/fast_mmaped_file/file_reading.h