summaryrefslogtreecommitdiff
path: root/src/data_buffer.h
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2024-09-15 00:12:25 +0300
committerOxore <oxore@protonmail.com>2024-11-21 00:18:24 +0300
commit559139fce64d685708c283397033bf152afd00a3 (patch)
treee5f2b1d35adef134512bf4e1c2990cf86a95bd1b /src/data_buffer.h
parent85614fc367ba53d0d5ca48873337571fc7f4f5b7 (diff)
Add initial COFF support (coff2bin, readcoff)
Diffstat (limited to 'src/data_buffer.h')
-rw-r--r--src/data_buffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/data_buffer.h b/src/data_buffer.h
index bc264d2..5206806 100644
--- a/src/data_buffer.h
+++ b/src/data_buffer.h
@@ -7,6 +7,7 @@
#include <cstddef>
#include <cstdint>
+#include <cstdio>
struct DataView {
const uint8_t *const buffer{};
@@ -38,4 +39,5 @@ struct DataBuffer {
return DataView{buffer + offset, Min(occupied_size - offset, size)};
};
~DataBuffer();
+ static DataBuffer FromStream(FILE *stream);
};