Rudiments
inputinlines.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information
3
4inline
6 return -1;
7}
8
9inline
11 return -1;
12}
13
14inline
16 return -1;
17}
18
19inline
21 return -1;
22}
23
24// NOTE: these methods are defined out-of-order from their declarations because
25// some compilers (eg. gcc 2.7.x) prefer for inline methods to be defined before
26// they are used.
27
28inline
29ssize_t input::read(char **buffer, const char *terminator,
30 int32_t sec, int32_t usec) {
31 return read(buffer,terminator,0,'\0',sec,usec);
32}
33
34inline
35ssize_t input::read(char **buffer, const char *terminator,
36 size_t maxbytes, int32_t sec, int32_t usec) {
38}
39
40inline
41ssize_t input::read(char **buffer, const char *terminator) {
42 return read(buffer,terminator,0,'\0',-1,-1);
43}
44
45inline
46ssize_t input::read(char **buffer, const char *terminator, size_t maxbytes) {
47 return read(buffer,terminator,maxbytes,'\0',-1,-1);
48}
Definition avltree.h:11
virtual off64_t setPositionRelativeToCurrent(off64_t offset)
Definition inputinlines.h:10
virtual off64_t getPosition()
Definition inputinlines.h:20
virtual off64_t setPositionRelativeToBeginning(off64_t offset)
Definition inputinlines.h:5
virtual ssize_t read(byte_t *buffer, size_t size)=0
virtual off64_t setPositionRelativeToEnd(off64_t offset)
Definition inputinlines.h:15