Searched refs:checkedOffset (Results 1 – 5 of 5) sorted by relevance
215 angle::base::CheckedNumeric<size_t> checkedOffset(arrayStride); in encodeArrayOfPreEncodedStructs() local216 checkedOffset *= outermostArraySize; in encodeArrayOfPreEncodedStructs()217 checkedOffset /= kBytesPerComponent; in encodeArrayOfPreEncodedStructs()218 checkedOffset += mCurrentOffset; in encodeArrayOfPreEncodedStructs()219 mCurrentOffset = checkedOffset.ValueOrDefault(std::numeric_limits<size_t>::max()); in encodeArrayOfPreEncodedStructs()226 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in getCurrentOffset() local227 checkedOffset *= kBytesPerComponent; in getCurrentOffset()228 return checkedOffset.ValueOrDefault(std::numeric_limits<size_t>::max()); in getCurrentOffset()258 angle::base::CheckedNumeric<size_t> checkedOffset(mCurrentOffset); in align() local259 checkedOffset += baseAlignment; in align()[all …]
111 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in readString()112 checkedOffset += length; in readString()114 if (!checkedOffset.IsValid() || mOffset + length > mLength) in readString()121 mOffset = checkedOffset.ValueOrDie(); in readString()133 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in skip()134 checkedOffset += length; in skip()136 if (!checkedOffset.IsValid() || mOffset + length > mLength) in skip()142 mOffset = checkedOffset.ValueOrDie(); in skip()177 angle::CheckedNumeric<size_t> checkedOffset(mOffset); in read()178 checkedOffset += checkedLength; in read()[all …]
525 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawArraysIndirect() local528 auto checkedSum = checkedOffset + 4 * sizeof(GLuint); in ValidateDrawArraysIndirect()563 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(indirect)); in ValidateDrawElementsIndirect() local566 auto checkedSum = checkedOffset + 5 * sizeof(GLuint); in ValidateDrawElementsIndirect()1545 CheckedNumeric<GLuint64> checkedOffset(static_cast<GLuint64>(indirect)); in ValidateDispatchComputeIndirect() local1546 auto checkedSum = checkedOffset + static_cast<GLuint64>(3 * sizeof(GLuint)); in ValidateDispatchComputeIndirect()
1202 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidImageDataSize() local1203 checkedEndByte += checkedOffset; in ValidImageDataSize()5087 CheckedNumeric<size_t> checkedOffset(offset); in ValidateMapBufferRangeBase() local5088 auto checkedSize = checkedOffset + length; in ValidateMapBufferRangeBase()5207 CheckedNumeric<size_t> checkedOffset(offset); in ValidateFlushMappedBufferRangeBase() local5208 auto checkedSize = checkedOffset + length; in ValidateFlushMappedBufferRangeBase()6994 CheckedNumeric<size_t> checkedOffset(reinterpret_cast<size_t>(pixels)); in ValidatePixelPack() local6995 checkedEndByte += checkedOffset; in ValidatePixelPack()
399 CheckedNumeric<unsigned int> checkedOffset(streamOffset); in StoreStaticAttrib() local400 checkedOffset += firstElementOffset; in StoreStaticAttrib()402 ANGLE_CHECK_GL_MATH(GetImplAs<ContextD3D>(context), checkedOffset.IsValid()); in StoreStaticAttrib()