Toggle main menu visibility
Main Page
Classes
Class List
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Functions
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
Typedefs
Files
File List
File Members
All
a
b
c
d
e
f
i
k
l
m
n
p
q
r
s
t
u
Functions
a
c
d
e
f
l
m
p
r
s
t
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Loading...
Searching...
No Matches
ForthInputBuffer.h
Go to the documentation of this file.
1
// BSD 3-Clause License; see https://github.com/scikit-hep/awkward-1.0/blob/main/LICENSE
2
3
#ifndef AWKWARD_FORTHINPUTBUFFER_H_
4
#define AWKWARD_FORTHINPUTBUFFER_H_
5
6
#include <memory>
7
8
#include "
awkward/common.h
"
9
#include "
awkward/util.h
"
10
11
namespace
awkward
{
17
class
LIBAWKWARD_EXPORT_SYMBOL
ForthInputBuffer
{
18
public
:
20
ForthInputBuffer
(
const
std::shared_ptr<void> ptr,
21
int64_t offset,
22
int64_t length);
23
25
uint8_t
26
peek_byte
(int64_t after,
util::ForthError
& err)
noexcept
;
27
29
void
*
30
read
(int64_t num_bytes,
util::ForthError
& err)
noexcept
;
31
33
uint8_t
34
read_byte
(
util::ForthError
& err)
noexcept
;
35
37
int64_t
38
read_enum
(
const
std::vector<std::string>& strings, int64_t start, int64_t stop)
noexcept
;
39
41
uint64_t
42
read_varint
(
util::ForthError
& err)
noexcept
;
43
45
int64_t
46
read_zigzag
(
util::ForthError
& err)
noexcept
;
47
49
int64_t
50
read_textint
(
util::ForthError
& err)
noexcept
;
51
53
double
54
read_textfloat
(
util::ForthError
& err)
noexcept
;
55
57
void
58
read_quotedstr
(
char
* string_buffer, int64_t max_string_size, int64_t& length,
59
util::ForthError
& err)
noexcept
;
60
62
void
63
seek
(int64_t to,
util::ForthError
& err)
noexcept
;
64
66
void
67
skip
(int64_t num_bytes,
util::ForthError
& err)
noexcept
;
68
70
void
71
skipws
() noexcept;
72
74
bool
75
end() const noexcept;
76
78
int64_t
79
pos() const noexcept;
80
82
int64_t
83
len
() const noexcept;
84
86
std::shared_ptr<
void
>
87
ptr() noexcept;
88
89
private:
90
std::shared_ptr<
void
> ptr_;
91
int64_t offset_;
92
int64_t length_;
93
int64_t pos_;
94
};
95
}
96
97
#endif
// AWKWARD_FORTHINPUTBUFFER_H_
awkward::ForthInputBuffer
HERE.
Definition:
ForthInputBuffer.h:17
awkward::ForthInputBuffer::read_byte
uint8_t read_byte(util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::seek
void seek(int64_t to, util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::read_enum
int64_t read_enum(const std::vector< std::string > &strings, int64_t start, int64_t stop) noexcept
HERE.
awkward::ForthInputBuffer::skip
void skip(int64_t num_bytes, util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::read_zigzag
int64_t read_zigzag(util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::ForthInputBuffer
ForthInputBuffer(const std::shared_ptr< void > ptr, int64_t offset, int64_t length)
HERE.
awkward::ForthInputBuffer::read_textfloat
double read_textfloat(util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::read_quotedstr
void read_quotedstr(char *string_buffer, int64_t max_string_size, int64_t &length, util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::read
void * read(int64_t num_bytes, util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::read_textint
int64_t read_textint(util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::peek_byte
uint8_t peek_byte(int64_t after, util::ForthError &err) noexcept
HERE.
awkward::ForthInputBuffer::skipws
void skipws() noexcept
HERE.
awkward::ForthInputBuffer::read_varint
uint64_t read_varint(util::ForthError &err) noexcept
HERE.
common.h
LIBAWKWARD_EXPORT_SYMBOL
#define LIBAWKWARD_EXPORT_SYMBOL
Definition:
common.h:44
len
int64_t len(const T &self)
Definition:
content.h:24
awkward::util::ForthError
ForthError
Exhaustive list of runtime errors possible in the ForthMachine.
Definition:
util.h:204
awkward
Definition:
ArrayBuilder.h:14
util.h
include
awkward
forth
ForthInputBuffer.h
Generated by
1.9.6