Lines Matching refs:ReadChars

247     size_t ReadChars = sizeof(OFFLOAD_BUNDLER_MAGIC_STR) - 1;  in ReadHeader()  local
248 if (ReadChars > FC.size()) in ReadHeader()
257 if (ReadChars + 8 > FC.size()) in ReadHeader()
260 uint64_t NumberOfBundles = Read8byteIntegerFromBuffer(FC, ReadChars); in ReadHeader()
261 ReadChars += 8; in ReadHeader()
267 if (ReadChars + 8 > FC.size()) in ReadHeader()
270 uint64_t Offset = Read8byteIntegerFromBuffer(FC, ReadChars); in ReadHeader()
271 ReadChars += 8; in ReadHeader()
274 if (ReadChars + 8 > FC.size()) in ReadHeader()
277 uint64_t Size = Read8byteIntegerFromBuffer(FC, ReadChars); in ReadHeader()
278 ReadChars += 8; in ReadHeader()
281 if (ReadChars + 8 > FC.size()) in ReadHeader()
284 uint64_t TripleSize = Read8byteIntegerFromBuffer(FC, ReadChars); in ReadHeader()
285 ReadChars += 8; in ReadHeader()
288 if (ReadChars + TripleSize > FC.size()) in ReadHeader()
291 StringRef Triple(&FC.data()[ReadChars], TripleSize); in ReadHeader()
292 ReadChars += TripleSize; in ReadHeader()
636 size_t ReadChars = 0u; member in TextFileHandler
645 ReadChars = FC.find(BundleStartString, ReadChars); in ReadBundleStart()
646 if (ReadChars == FC.npos) in ReadBundleStart()
650 size_t TripleStart = ReadChars = ReadChars + BundleStartString.size(); in ReadBundleStart()
653 size_t TripleEnd = ReadChars = FC.find("\n", ReadChars); in ReadBundleStart()
658 ++ReadChars; in ReadBundleStart()
667 assert(FC[ReadChars] == '\n' && "The bundle should end with a new line."); in ReadBundleEnd()
669 size_t TripleEnd = ReadChars = FC.find("\n", ReadChars + 1); in ReadBundleEnd()
672 ++ReadChars; in ReadBundleEnd()
679 size_t BundleStart = ReadChars; in ReadBundle()
682 size_t BundleEnd = ReadChars = FC.find(BundleEndString, ReadChars); in ReadBundle()
712 : FileHandler(), Comment(Comment), ReadChars(0) { in TextFileHandler()