1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: GetLength() method is not in the Debian-packaged rapidjson,
writing a substitute
Author: Pierre Gruet <pgt@debian.org>
Forwarded: not-needed
Last-Update: 2024-07-17
--- a/src/main/cpp/src/api/genomicsdb_json_processor.cc
+++ b/src/main/cpp/src/api/genomicsdb_json_processor.cc
@@ -163,7 +163,7 @@
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
json_doc->Accept(writer);
- return std::string(buffer.GetString(), buffer.GetLength());
+ return std::string(buffer.GetString(), buffer.GetSize() / sizeof(char));
}
void JSONVariantCallProcessor::process(const interval_t& interval) {
|