Home | History | Annotate | Download | only in utils

Lines Matching refs:buffer

38 Tokenizer::Tokenizer(const String8& filename, FileMap* fileMap, char* buffer,
41 mBuffer(buffer), mOwnBuffer(ownBuffer), mLength(length),
42 mCurrent(buffer), mLineNumber(1) {
72 char* buffer;
75 buffer = static_cast<char*>(fileMap->getDataPtr());
80 // Fall back to reading into a buffer since we can't mmap files in sysfs.
83 buffer = new char[length];
85 ssize_t nrd = read(fd, buffer, length);
89 delete[] buffer;
90 buffer = NULL;
97 *outTokenizer = new Tokenizer(filename, fileMap, buffer, ownBuffer, length);