Lines Matching defs:ReadChars
350 size_t ReadChars = sizeof(OFFLOAD_BUNDLER_MAGIC_STR) - 1;
351 if (ReadChars > FC.size())
359 if (ReadChars + 8 > FC.size())
362 uint64_t NumberOfBundles = Read8byteIntegerFromBuffer(FC, ReadChars);
363 ReadChars += 8;
369 if (ReadChars + 8 > FC.size())
372 uint64_t Offset = Read8byteIntegerFromBuffer(FC, ReadChars);
373 ReadChars += 8;
376 if (ReadChars + 8 > FC.size())
379 uint64_t Size = Read8byteIntegerFromBuffer(FC, ReadChars);
380 ReadChars += 8;
383 if (ReadChars + 8 > FC.size())
386 uint64_t TripleSize = Read8byteIntegerFromBuffer(FC, ReadChars);
387 ReadChars += 8;
390 if (ReadChars + TripleSize > FC.size())
393 StringRef Triple(&FC.data()[ReadChars], TripleSize);
394 ReadChars += TripleSize;
783 size_t ReadChars = 0u;
793 ReadChars = FC.find(BundleStartString, ReadChars);
794 if (ReadChars == FC.npos)
798 size_t TripleStart = ReadChars = ReadChars + BundleStartString.size();
801 size_t TripleEnd = ReadChars = FC.find("\n", ReadChars);
806 ++ReadChars;
815 assert(FC[ReadChars] == '\n' && "The bundle should end with a new line.");
817 size_t TripleEnd = ReadChars = FC.find("\n", ReadChars + 1);
820 ++ReadChars;
827 size_t BundleStart = ReadChars;
830 size_t BundleEnd = ReadChars = FC.find(BundleEndString, ReadChars);
859 TextFileHandler(StringRef Comment) : Comment(Comment), ReadChars(0) {
872 ReadChars = Input.getBuffer().find(BundleEndString, ReadChars);