#ifndef JSONIOUTIL_H #define JSONIOUTIL_H #include #include #include #include #include #include "common_defs.h" // load a file in memory... // get a corpus; pad out to cache line so we can always use SIMD // throws exceptions in case of failure // first element of the pair is a string (null terminated) // whereas the second element is the length. // caller is responsible to free (free std::pair.first) std::pair get_corpus(std::string filename); #endif