[ox] Move buildinfo and trace packages into std

This commit is contained in:
2019-02-23 23:02:25 -06:00
parent 57aa0d556c
commit 5a1d1c0a2f
25 changed files with 78 additions and 78 deletions

View File

@@ -12,6 +12,7 @@
#include <ox/std/string.hpp>
#include <ox/std/vector.hpp>
#include <ox/std/types.hpp>
#include "err.hpp"
#include "optype.hpp"
#include "presencemask.hpp"
@@ -64,7 +65,7 @@ class MetalClawWriter {
std::size_t size();
constexpr OpType opType() {
static constexpr OpType opType() {
return OpType::Write;
}
@@ -125,7 +126,6 @@ Error MetalClawWriter::op(const char*, T *val, std::size_t len) {
if (len) {
// write the length
typedef uint32_t ArrayLength;
if (m_buffIt + sizeof(ArrayLength) < m_buffLen) {
*reinterpret_cast<LittleEndian<ArrayLength>*>(&m_buff[m_buffIt]) = static_cast<ArrayLength>(len);
m_buffIt += sizeof(ArrayLength);