Lines Matching refs:nread
70 size_t nread = *nread_ptr; in DecodeData() local
88 for (size_t i = 0; i < nread && i < MissingBytes(); ++i) { in DecodeData()
98 nread -= i; in DecodeData()
105 std::min(nread, static_cast<size_t>(MissingBytes())); in DecodeData()
111 nread -= found_bytes; in DecodeData()
134 if (UNLIKELY(nread == 0)) { in DecodeData()
144 if (Encoding() == UTF8 && data[nread - 1] & 0x80) { in DecodeData()
148 for (size_t i = nread - 1; ; --i) { in DecodeData()
149 DCHECK_LT(i, nread); in DecodeData()
194 if ((nread % 2) == 1) { in DecodeData()
198 } else if ((data[nread - 1] & 0xFC) == 0xD8) { in DecodeData()
204 state_[kBufferedBytes] = nread % 3; in DecodeData()
212 nread -= BufferedBytes(); in DecodeData()
214 memcpy(IncompleteCharacterBuffer(), data + nread, BufferedBytes()); in DecodeData()
217 if (nread > 0) { in DecodeData()
218 if (!MakeString(isolate, data, nread, Encoding()).ToLocal(&body)) in DecodeData()
232 return MakeString(isolate, data, nread, Encoding()); in DecodeData()