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