MCPcopy Create free account
hub / github.com/Tencent/tgfx / getBoolean

Method getBoolean

src/core/utils/DataView.cpp:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool DataView::getBoolean(size_t offset) const {
99 Bit8 data = {};
100 if (!readData(offset, data.bytes, 1)) {
101 return false;
102 }
103 return data.uintValue != 0;
104}
105
106int8_t DataView::getInt8(size_t offset) const {
107 Bit8 data = {};

Callers 1

TGFX_TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TGFX_TESTFunction · 0.64