File: rapidjson_methods.patch

package info (click to toggle)
genomicsdb 1.5.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,316 kB
  • sloc: cpp: 68,637; ansic: 58,281; java: 8,230; python: 2,315; sh: 2,115; perl: 1,621; makefile: 499; xml: 496
file content (17 lines) | stat: -rw-r--r-- 621 bytes parent folder | download
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) {