Rudiments
include
rudiments
private
inputinlines.h
1
// Copyright (c) 1999-2018 David Muse
2
// See the COPYING file for more information
3
4
inline
5
off64_t
input::setPositionRelativeToBeginning
(off64_t
offset
) {
6
return
-1;
7
}
8
9
inline
10
off64_t
input::setPositionRelativeToCurrent
(off64_t
offset
) {
11
return
-1;
12
}
13
14
inline
15
off64_t
input::setPositionRelativeToEnd
(off64_t
offset
) {
16
return
-1;
17
}
18
19
inline
20
off64_t
input::getPosition
() {
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
28
inline
29
ssize_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
34
inline
35
ssize_t
input::read
(
char
**
buffer
,
const
char
*
terminator
,
36
size_t
maxbytes
, int32_t
sec
, int32_t
usec
) {
37
return
read
(
buffer
,
terminator
,
maxbytes
,
'\0'
,
sec
,
usec
);
38
}
39
40
inline
41
ssize_t
input::read
(
char
**
buffer
,
const
char
*
terminator
) {
42
return
read
(
buffer
,
terminator
,0,
'\0'
,-1,-1);
43
}
44
45
inline
46
ssize_t
input::read
(
char
**
buffer
,
const
char
*
terminator
,
size_t
maxbytes
) {
47
return
read
(
buffer
,
terminator
,
maxbytes
,
'\0'
,-1,-1);
48
}
avltreenode
Definition
avltree.h:11
input::setPositionRelativeToCurrent
virtual off64_t setPositionRelativeToCurrent(off64_t offset)
Definition
inputinlines.h:10
input::getPosition
virtual off64_t getPosition()
Definition
inputinlines.h:20
input::setPositionRelativeToBeginning
virtual off64_t setPositionRelativeToBeginning(off64_t offset)
Definition
inputinlines.h:5
input::read
virtual ssize_t read(byte_t *buffer, size_t size)=0
input::setPositionRelativeToEnd
virtual off64_t setPositionRelativeToEnd(off64_t offset)
Definition
inputinlines.h:15
Generated on Tue Dec 3 2024 01:50:18 for Rudiments by
1.10.0