in hessian2/basic_codec/string_codec.cc [382:394]
bool readChunkString(std::string &output, bool &has_surrogate, Reader &reader,
size_t length, bool is_last_chunk) {
auto ret = finalReadUtf8String(output, has_surrogate, reader, length);
if (!ret) {
return false;
}
if (is_last_chunk) {
return true;
}
return decodeStringWithReader(output, has_surrogate, reader);
}