started cdump.c:cosmoD_dump()

This commit is contained in:
2023-05-25 19:41:13 -05:00
parent 3efee51224
commit 465f4d5e4a
2 changed files with 197 additions and 0 deletions

18
src/cdump.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef COSMO_DUMP_H
#define COSMO_DUMP_H
#include "cobj.h"
#include "cosmo.h"
#include <stdio.h>
#define COSMO_MAGIC "COS\x12"
#define COSMO_MAGIC_LEN 4
typedef int (*cosmo_Writer)(CState *state, const void *data, size_t size, const void *ud);
bool cosmoD_isBigEndian();
int cosmoD_dump(CState *state, CObjFunction *func, cosmo_Writer writer, const void *userData);
#endif