Lines Matching refs:StringRef
156 StringRef DataExtractor::getCStrRef(uint64_t *OffsetPtr, Error *Err) const {
159 return StringRef();
162 StringRef::size_type Pos = Data.find('\0', Start);
163 if (Pos != StringRef::npos) {
165 return StringRef(Data.data() + Start, Pos - Start);
171 return StringRef();
174 StringRef DataExtractor::getFixedLengthString(uint64_t *OffsetPtr,
176 StringRef TrimChars) const {
177 StringRef Bytes(getBytes(OffsetPtr, Length));
181 StringRef DataExtractor::getBytes(uint64_t *OffsetPtr, uint64_t Length,
185 return StringRef();
188 return StringRef();
190 StringRef Result = Data.substr(*OffsetPtr, Length);
196 static T getLEB128(StringRef Data, uint64_t *OffsetPtr, Error *Err,