From e0eacfa9773c83850ed5169d1e889ff845180581 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 17 Dec 2023 11:10:04 -0500 Subject: refactor --- src/stream.h | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 src/stream.h (limited to 'src/stream.h') diff --git a/src/stream.h b/src/stream.h deleted file mode 100644 index 7dc5407..0000000 --- a/src/stream.h +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once - -#include -#include -#include - -typedef struct { - FILE *__file; - bool __alloc; - char peakbuf[16]; - int peakamt; -} stream_t; - -stream_t stream_open(const char *path, const char* mode); -void stream_close(stream_t *stream); - -bool stream_read(const stream_t *stream, void *res, size_t amount); -bool stream_read_i8(const stream_t *stream, int8_t *res); -bool stream_read_i16(const stream_t *stream, int16_t *res); -bool stream_read_i32(const stream_t *stream, int32_t *res); -bool stream_read_i64(const stream_t *stream, int64_t *res); -bool stream_read_u16(const stream_t *stream, uint16_t *res); - -bool stream_write(const stream_t *stream, const void *buf, size_t amount); -bool stream_write_i8(const stream_t *stream, int8_t b); -bool stream_write_i16(const stream_t *stream, int16_t s); -bool stream_write_i32(const stream_t *stream, int32_t i); -bool stream_write_i64(const stream_t *stream, int64_t l); -bool stream_write_u16(const stream_t *stream, uint16_t s); -- cgit v1.2.3-freya