Searched refs:wState (Results 1 – 2 of 2) sorted by relevance
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/ |
D | cbor.h | 231 WriteState writeHeader(WriteState wState, Type type, const uint64_t value); 235 WriteState writeNumber(WriteState wState, const T& v) { 236 if (!wState) return wState; 238 return writeHeader(wState, Type::NUMBER, v); 240 return writeHeader(wState, Type::NEGATIVE, UINT64_C(-1) - v); 244 inline WriteState write(const WriteState& wState, const uint8_t& v) { 245 return writeNumber(wState, v); 247 inline WriteState write(const WriteState& wState, const int8_t& v) { 248 return writeNumber(wState, v); 250 inline WriteState write(const WriteState& wState, const uint16_t& v) { [all …]
|
/hardware/interfaces/confirmationui/support/src/ |
D | cbor.cpp | 58 WriteState writeHeader(WriteState wState, Type type, const uint64_t value) { in writeHeader() argument 59 if (!wState) return wState; in writeHeader() 60 uint8_t& header = *wState.data_; in writeHeader() 61 if (!++wState) return wState; in writeHeader() 67 wState = writeBytes(wState, value, 1); in writeHeader() 70 wState = writeBytes(wState, value, 2); in writeHeader() 73 wState = writeBytes(wState, value, 4); in writeHeader() 76 wState = writeBytes(wState, value, 8); in writeHeader() 78 return wState; in writeHeader()
|