Home
last modified time | relevance | path

Searched refs:validateSize (Results 1 – 4 of 4) sorted by relevance

/external/skia/experimental/skrive/src/reader/
DBinaryReader.cpp24 bool validateSize(size_t sz) const { in validateSize() function in skrive::internal::__anond08ad8310111::BinaryReader
38 return validateSize(sizeof(v)) && fStream->readU8(&v) in readBool()
46 return validateSize(sizeof(v)) && fStream->readScalar(&v) in readFloat()
54 return validateSize(sizeof(v)) && fStream->readU8(&v) in readUInt8()
62 return validateSize(sizeof(v)) && fStream->readU16(&v) in readUInt16()
70 return validateSize(sizeof(v)) && fStream->readU32(&v) in readUInt32()
77 if (!validateSize(sizeof(length)) || !fStream->readU32(&length)) { in readString()
82 return validateSize(length) && fStream->read(str.writable_str(), length) == length in readString()
88 if (!validateSize(count * sizeof(float))) { in readFloatArray()
113 if (this->validateSize(sizeof(block_type) + sizeof(block_size)) && in openBlock()
/external/skia/src/core/
DSkTextBlob.cpp627 size_t validateSize = SkAlignPtr(sizeof(SkTextBlob)); in make()
630 validateSize += SkTextBlob::RunRecord::StorageSize( in make()
635 SkASSERT(validateSize == fStorageUsed); in make()
/external/skqp/src/core/
DSkTextBlob.cpp599 size_t validateSize = SkAlignPtr(sizeof(SkTextBlob)); in make()
602 validateSize += SkTextBlob::RunRecord::StorageSize( in make()
607 SkASSERT(validateSize == fStorageUsed); in make()
/external/angle/third_party/vulkan_memory_allocator/src/
DTests.cpp1049 … const VkDeviceSize validateSize = allocInfo[validateAllocIndex].m_BufferInfo.size; in ValidateGpuData() local
1050 TEST(validateSize % sizeof(uint32_t) == 0); in ValidateGpuData()
1054 for(size_t i = 0; i < validateSize / sizeof(uint32_t); ++i) in ValidateGpuData()
1107 const VkDeviceSize validateSize = allocInfo[validateAllocIndex].m_BufferInfo.size; in ValidateGpuData() local
1108 TEST(validateSize % sizeof(uint32_t) == 0); in ValidateGpuData()
1112 for(size_t i = 0; i < validateSize / sizeof(uint32_t); ++i) in ValidateGpuData()