Displaying 1 result from an estimated 1 matches for "isvalidoffsetfordataofsize".
2014 Oct 23
2
[LLVMdev] On DataExtractor isValidOffset* interface
...st { return Data.size() > offset; }
342
343 /// Test the availability of \a length bytes of data from \a offset.
344 ///
345 /// @return
346 /// \b true if \a offset is a valid offset and there are \a
347 /// length bytes available at that offset, \b false otherwise.
348 bool isValidOffsetForDataOfSize(uint32_t offset, uint32_t length) const {
349 return offset + length >= offset && isValidOffset(offset + length - 1);
350 }
The "if \a offset is a valid offset" part of the comment for
isValidOffsetForDataOfSize doesn't seem right, as it doesn't actually
call isV...