Home
last modified time | relevance | path

Searched refs:wState (Results 1 – 2 of 2) sorted by relevance

/system/teeui/libteeui/include/teeui/
Dcbor.h199 WriteState writeHeader(WriteState wState, Type type, const uint64_t value);
202 template <typename T> WriteState writeNumber(WriteState wState, const T& v) {
203 if (!wState) return wState;
205 return writeHeader(wState, Type::NUMBER, v);
207 return writeHeader(wState, Type::NEGATIVE, UINT64_C(-1) - v);
211 inline WriteState write(const WriteState& wState, const uint8_t& v) {
212 return writeNumber(wState, v);
214 inline WriteState write(const WriteState& wState, const int8_t& v) {
215 return writeNumber(wState, v);
217 inline WriteState write(const WriteState& wState, const uint16_t& v) {
[all …]
/system/teeui/libteeui/src/
Dcbor.cpp57 WriteState writeHeader(WriteState wState, Type type, const uint64_t value) { in writeHeader() argument
58 if (!wState) return wState; in writeHeader()
59 uint8_t& header = *wState.data_; in writeHeader()
60 if (!++wState) return wState; in writeHeader()
66 wState = writeBytes(wState, value, 1); in writeHeader()
69 wState = writeBytes(wState, value, 2); in writeHeader()
72 wState = writeBytes(wState, value, 4); in writeHeader()
75 wState = writeBytes(wState, value, 8); in writeHeader()
77 return wState; in writeHeader()