From 1fae63de23320a1663b7c591e247ad81852ab6dc Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 22 Nov 2020 13:00:06 +0100 Subject: Support 16-bit short --- minicc.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'minicc.cpp') diff --git a/minicc.cpp b/minicc.cpp index a843254..9f5e906 100644 --- a/minicc.cpp +++ b/minicc.cpp @@ -4,7 +4,6 @@ #include "minicc.h" #include -#include #include #include @@ -65,16 +64,3 @@ std::string demangle(const std::type_info& type) { return boost::core::demangle(type.name()); } - -std::vector to_little_endian(uint32_t value) -{ - std::vector result(size_t(4)); - *(reinterpret_cast(result.data())) = boost::endian::native_to_little(value); - return result; -} - -uint32_t from_little_endian(const std::vector& value) -{ - return boost::endian::little_to_native(*(reinterpret_cast(value.data()))); -} - -- cgit v1.2.3