Lines Matching refs:v

157 bool SmsReadBuffer::ReadByte(uint8_t &v)  in ReadByte()  argument
164 return ReadBits(v, BIT8); in ReadByte()
172 v = data_[index_++]; in ReadByte()
176 bool SmsReadBuffer::PickOneByte(uint8_t &v) in PickOneByte() argument
182 v = data_[index_]; in PickOneByte()
186 bool SmsReadBuffer::PickOneByteFromIndex(uint16_t index, uint8_t &v) in PickOneByteFromIndex() argument
192 v = data_[index]; in PickOneByteFromIndex()
196 bool SmsReadBuffer::ReadWord(uint16_t &v) in ReadWord() argument
199 v = data_[index_++]; in ReadWord()
200 v = (v << BIT8) | data_[index_++]; in ReadWord()
207 bool SmsReadBuffer::ReadBits(uint8_t &v, uint8_t l) in ReadBits() argument
223 v = data_[index_] << bitIndex_; in ReadBits()
224 v = v >> (BIT8 - l); in ReadBits()
235 v = data_[index_++] << bitIndex_; in ReadBits()
237 v = (v >> (BIT8 - l)) | (data_[index_] >> (BIT8 - bitIndex_)); in ReadBits()
253 bool SmsWriteBuffer::WriteByte(uint8_t v) in WriteByte() argument
256 return WriteBits(v, BIT8); in WriteByte()
259 data_[index_++] = v; in WriteByte()
266 bool SmsWriteBuffer::WriteWord(uint16_t v) in WriteWord() argument
269 data_[index_++] = (0xff00 & v) >> BIT8; in WriteWord()
270 data_[index_++] = (0x00ff & v); in WriteWord()
277 bool SmsWriteBuffer::WriteBits(uint8_t v, uint8_t l) in WriteBits() argument
293 data_[index_] |= v << (BIT8 - bitIndex_ - l); in WriteBits()
304 data_[index_++] |= v >> (l + bitIndex_ - BIT8); in WriteBits()
306 data_[index_] |= v << (BIT8 - bitIndex_); in WriteBits()
311 bool SmsWriteBuffer::InsertByte(uint8_t v, uint16_t index) in InsertByte() argument
314 data_[index] = v; in InsertByte()
331 bool SmsWriteBuffer::GetValueFromIndex(uint16_t index, uint8_t &v) in GetValueFromIndex() argument
337 v = data_[index]; in GetValueFromIndex()