4#ifndef RUDIMENTS_INPUT_H
5#define RUDIMENTS_INPUT_H
7#include <rudiments/private/inputincludes.h>
28 virtual off64_t setPositionRelativeToBeginning(off64_t offset);
37 virtual off64_t setPositionRelativeToCurrent(off64_t offset);
47 virtual off64_t setPositionRelativeToEnd(off64_t offset);
55 virtual off64_t getPosition();
61 virtual ssize_t
read(byte_t *buffer,
size_t size)=0;
66 virtual ssize_t
read(
char *buffer,
size_t length)=0;
71 virtual ssize_t
read(
char *buffer)=0;
76 virtual ssize_t
read(
wchar_t *buffer,
size_t length)=0;
81 virtual ssize_t
read(
wchar_t *buffer)=0;
86 virtual ssize_t
readUcs2(ucs2_t *buffer,
size_t length)=0;
96 virtual ssize_t
read(int16_t *buffer)=0;
101 virtual ssize_t
read(int32_t *buffer)=0;
106 virtual ssize_t
read(int64_t *buffer)=0;
111 virtual ssize_t
read(byte_t *buffer)=0;
117 virtual ssize_t
read(uint16_t *buffer)=0;
123 virtual ssize_t
read(uint32_t *buffer)=0;
129 virtual ssize_t
read(uint64_t *buffer)=0;
135 virtual ssize_t
read(
float *buffer)=0;
141 virtual ssize_t
read(
double *buffer)=0;
151 ssize_t read(
char **buffer,
const char *terminator);
164 ssize_t read(
char **buffer,
165 const char *terminator,
size_t maxbytes);
175 virtual ssize_t
read(byte_t *buffer,
size_t size,
176 int32_t sec, int32_t usec);
186 virtual ssize_t
read(
char *buffer,
size_t length,
187 int32_t sec, int32_t usec);
197 virtual ssize_t
read(
char *buffer,
198 int32_t sec, int32_t usec);
208 virtual ssize_t
read(
wchar_t *buffer,
size_t length,
209 int32_t sec, int32_t usec);
219 virtual ssize_t
read(
wchar_t *buffer,
220 int32_t sec, int32_t usec);
230 virtual ssize_t
readUcs2(ucs2_t *buffer,
size_t length,
231 int32_t sec, int32_t usec);
242 int32_t sec, int32_t usec);
252 virtual ssize_t
read(int16_t *buffer,
253 int32_t sec, int32_t usec);
263 virtual ssize_t
read(int32_t *buffer,
264 int32_t sec, int32_t usec);
274 virtual ssize_t
read(int64_t *buffer,
275 int32_t sec, int32_t usec);
285 virtual ssize_t
read(byte_t *buffer,
286 int32_t sec, int32_t usec);
297 virtual ssize_t
read(uint16_t *buffer,
298 int32_t sec, int32_t usec);
309 virtual ssize_t
read(uint32_t *buffer,
310 int32_t sec, int32_t usec);
321 virtual ssize_t
read(uint64_t *buffer,
322 int32_t sec, int32_t usec);
333 virtual ssize_t
read(
float *buffer,
334 int32_t sec, int32_t usec);
345 virtual ssize_t
read(
double *buffer,
346 int32_t sec, int32_t usec);
357 ssize_t read(
char **buffer,
const char *terminator,
358 int32_t sec, int32_t usec);
372 ssize_t read(
char **buffer,
373 const char *terminator,
size_t maxbytes,
374 int32_t sec, int32_t usec);
392 const char *terminator,
size_t maxbytes,
393 char escapechar, int32_t sec, int32_t usec);
395 #include <rudiments/private/input.h>
398#include <rudiments/private/inputinlines.h>