Home
last modified time | relevance | path

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

/frameworks/compile/libbcc/include/bcinfo/Wrap/
DBCHeaderField.h42 ID_(ID), len_(len), data_(data) {} in BCHeaderField()
45 return (kTagLenSize + len_ + 3) & ~3; in GetTotalSize()
49 size_t fields_len = kTagLenSize + len_; in Write()
55 len_ > max_uint16_t) return false; in Write()
58 WriteFixedSubfield(static_cast<FixedSubfield>(len_), in Write()
60 memcpy(buf + kTagLenSize, data_, len_); in Write()
74 len_ = static_cast<size_t>(field); in Read()
75 if (buf_len < kTagLenSize + len_) return false; in Read()
76 memcpy(data_, buf + kTagLenSize, len_); in Read()
82 ID_, static_cast<int>(len_), static_cast<int>(GetTotalSize())); in Print()
[all …]
/frameworks/base/cmds/idmap/
Dinspect.cpp22 size_t len_; member in __anonb98413b50111::IdmapBuffer
25 IdmapBuffer() : buf_((const char *)MAP_FAILED), len_(0), pos_(0) {} in IdmapBuffer()
29 munmap(const_cast<char*>(buf_), len_); in ~IdmapBuffer()
41 len_ = st.st_size; in init()
46 … if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { in init()
61 if (pos_ + sizeof(uint32_t) > len_) { in nextUint32()
83 if (pos_ + sizeof(uint16_t) > len_) { in nextUint16()
104 if (pos_ + PATH_LENGTH > len_) { in nextPath()