build: Migrate to meson and add clang-format

Removed the Cmake files and cleanup formatting errors.

Change-Id: I787041507d3ff6afc6b4a3af3930e8d8363c9570
Signed-off-by: Willy Tu <wltu@google.com>
diff --git a/src/file_handling.cpp b/src/file_handling.cpp
index 529e9f2..2b6598b 100644
--- a/src/file_handling.cpp
+++ b/src/file_handling.cpp
@@ -1,7 +1,8 @@
-#include <iostream>
 #include <fcntl.h>
 #include <unistd.h>
 
+#include <iostream>
+
 using namespace std::string_literals;
 std::system_error errnoException(const std::string& message)
 {
@@ -31,17 +32,17 @@
     }
 }
 
-void readBin(int fd_, size_t offset, void *ptr, size_t size)
+void readBin(int fd_, size_t offset, void* ptr, size_t size)
 {
     lseeker(fd_, offset);
-    size_t ret = read(fd_, ptr, size);
-    if(ret < 0 )
+    ssize_t ret = read(fd_, ptr, size);
+    if (ret < 0)
     {
         throw errnoException("Error reading from file"s);
     }
 }
 
-void writeBin(int fd_, size_t offset, void *ptr, size_t size)
+void writeBin(int fd_, size_t offset, void* ptr, size_t size)
 {
     lseeker(fd_, offset);
     ssize_t ret;
@@ -53,7 +54,7 @@
     if (static_cast<size_t>(ret) != size)
     {
         throw std::runtime_error(
-                "Tried to send data size "s + std::to_string(size) +
-                " but could only send "s + std::to_string(ret));
+            "Tried to send data size "s + std::to_string(size) +
+            " but could only send "s + std::to_string(ret));
     }
 }