mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 00:18:09 +00:00
--fried only currently supported on little-endian (will fix eventually)
This commit is contained in:
@ -48,6 +48,8 @@ void cmd_export(const std::vector<std::string> &subArgs) {
|
||||
std::string_view json = getEventJson(txn, decomp, levId);
|
||||
|
||||
if (fried) {
|
||||
if (std::endian::native != std::endian::little) throw herr("--fried currently only supported on little-endian CPUs"); // FIXME
|
||||
|
||||
auto ev = lookupEventByLevId(txn, levId);
|
||||
|
||||
o.clear();
|
||||
|
@ -73,6 +73,8 @@ void cmd_import(const std::vector<std::string> &subArgs) {
|
||||
std::string line(buf, (size_t)numRead-1);
|
||||
|
||||
if (fried) {
|
||||
if (std::endian::native != std::endian::little) throw herr("--fried currently only supported on little-endian CPUs"); // FIXME
|
||||
|
||||
try {
|
||||
writer.write(parseFried(line));
|
||||
} catch (std::exception &e) {
|
||||
|
Reference in New Issue
Block a user