26 #ifndef MICROPY_INCLUDED_PY_READER_H 27 #define MICROPY_INCLUDED_PY_READER_H 34 #define MP_READER_EOF ((mp_uint_t)(-1)) 46 #endif // MICROPY_INCLUDED_PY_READER_H
void mp_reader_new_file_from_fd(mp_reader_t *reader, int fd, bool close_fd)
void mp_reader_new_mem(mp_reader_t *reader, const byte *buf, size_t len, size_t free_len)
void mp_reader_new_file(mp_reader_t *reader, const char *filename)
struct _mp_reader_t mp_reader_t
void(* close)(void *data)
mp_uint_t(* readbyte)(void *data)