[ox/claw] Set default write format to MetalClaw

This commit is contained in:
Gary Talent 2022-02-19 01:44:27 -06:00
parent 53939a28c6
commit 5b7dacd51f

View File

@ -83,7 +83,7 @@ Result<String> writeClawHeader(T *t, ClawFormat fmt) noexcept {
}
template<typename T>
Result<Buffer> writeClaw(T *t, ClawFormat fmt) {
Result<Buffer> writeClaw(T *t, ClawFormat fmt = ClawFormat::Metal) {
oxRequire(header, detail::writeClawHeader(t, fmt));
oxRequire(data, fmt == ClawFormat::Metal ? writeMC(t) : writeOC(t));
Buffer out(header.len() + data.size());