MCPcopy Create free account
hub / github.com/apache/arrow / ReadRange

Class ReadRange

cpp/src/arrow/io/interfaces.h:36–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34namespace io {
35
36struct ReadRange {
37 int64_t offset;
38 int64_t length;
39
40 friend bool operator==(const ReadRange& left, const ReadRange& right) {
41 return (left.offset == right.offset && left.length == right.length);
42 }
43 friend bool operator!=(const ReadRange& left, const ReadRange& right) {
44 return !(left == right);
45 }
46
47 bool Contains(const ReadRange& other) const {
48 return (offset <= other.offset && offset + length >= other.offset + other.length);
49 }
50};
51
52/// EXPERIMENTAL: options provider for IO tasks
53///

Callers 4

ReadAtMethod · 0.50
SeekMethod · 0.50
InitializeStreamMethod · 0.50
OpenInputStreamMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected