Lines Matching refs:offset

90   /// Encode an unsigned integer of size \a byte_size to \a offset.
92 /// Encode a single integer value at \a offset and return the offset that
97 /// \param[in] offset
98 /// The offset within the contained data at which to put the
110 /// The next offset in the bytes of this data if the integer
112 uint32_t PutUnsigned(uint32_t offset, uint32_t byte_size, uint64_t value);
116 /// \param[in] offset
117 /// The offset in bytes into the contained data at which to
127 /// The next valid offset within data if the put operation
129 uint32_t PutData(uint32_t offset, const void *src, uint32_t src_len);
131 /// Encode an address in the existing buffer at \a offset bytes into the
135 /// and return the next offset where subsequent data would go. pointed to by
140 /// \param[in] offset
141 /// The offset where to encode the address.
147 /// The next valid offset within data if the put operation
149 uint32_t PutAddress(uint32_t offset, lldb::addr_t addr);
151 /// Put a C string to \a offset.
155 /// \param[in] offset
156 /// The offset where to encode the string.
162 /// A pointer to the C string value in the data. If the offset
164 /// offset plus the length of the C string is out of bounds,
166 uint32_t PutCString(uint32_t offset, const char *cstr);
169 uint32_t PutU8(uint32_t offset, uint8_t value);
170 uint32_t PutU16(uint32_t offset, uint16_t value);
171 uint32_t PutU32(uint32_t offset, uint32_t value);
172 uint32_t PutU64(uint32_t offset, uint64_t value);
174 uint32_t BytesLeft(uint32_t offset) const {
176 if (size > offset)
177 return size - offset;
181 /// Test the availability of \a length bytes of data from \a offset.
184 /// \b true if \a offset is a valid offset and there are \a
185 /// length bytes available at that offset, \b false otherwise.
186 bool ValidOffsetForDataOfSize(uint32_t offset, uint32_t length) const {
187 return length <= BytesLeft(offset);
196 /// the same. If \a offset is not a valid offset in \a data_sp, then no
198 /// bytes available in \a data starting at \a offset, the length will be
204 /// \param[in] offset
205 /// The offset into \a data_sp at which the subset starts.
212 uint32_t SetData(const lldb::DataBufferSP &data_sp, uint32_t offset = 0,
215 /// Test the validity of \a offset.
218 /// \b true if \a offset is a valid offset into the data in this
220 bool ValidOffset(uint32_t offset) const { return offset < GetByteSize(); }