X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=bytesource.h;h=4e9e307bbc138325bb2d5a181bf4d9acbf1fb5c6;hb=352c52d38c212a2aa93a9970731c9d7a2f8d4dac;hp=fe1725981710746ed542d99fb473c4dd2c8c5660;hpb=b8abdf976177386c5fe85712280a669ba80a41d2;p=fjl diff --git a/bytesource.h b/bytesource.h index fe17259..4e9e307 100644 --- a/bytesource.h +++ b/bytesource.h @@ -4,11 +4,9 @@ #include #include -static const unsigned BYTESOURCE_CHUNK_SIZE = 4096; +#include "input.h" -// Same as input_func_t, although it expects raw bytes, ie. with markers -// and all. -typedef ssize_t (raw_input_func_t)(void*, uint8_t*, size_t); +static const unsigned BYTESOURCE_CHUNK_SIZE = 4096; // A data source taking in a byte stream and returning unstuffed bytes until // there's a marker. When there's a marker, it artificially returns EOF until