#ifndef TocEntryOwned_HPP
#define TocEntryOwned_HPP
#include "TocEntryOwned.d.hpp"
#include <stdio.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <memory>
#include <functional>
#include <optional>
#include <cstdlib>
#include "diplomat_runtime.hpp"
namespace diplomat {
namespace capi {
} }
inline diplomat::capi::TocEntryOwned TocEntryOwned::AsFFI() const {
return diplomat::capi::TocEntryOwned {
chunk_id,
offset,
size_compressed,
size_raw,
compression,
ctype_kind,
ctype_value,
cover_type,
flags,
crc32,
};
}
inline TocEntryOwned TocEntryOwned::FromFFI(diplomat::capi::TocEntryOwned c_struct) {
return TocEntryOwned {
c_struct.chunk_id,
c_struct.offset,
c_struct.size_compressed,
c_struct.size_raw,
c_struct.compression,
c_struct.ctype_kind,
c_struct.ctype_value,
c_struct.cover_type,
c_struct.flags,
c_struct.crc32,
};
}
#endif