Page MenuHomePhorge

snapshot.c
No OneTemporary

Size
482 B
Referenced Files
None
Subscribers
None

snapshot.c

#include <string.h>
#include "ant.h"
#include "snapshot.h"
#include "snapshot_data.h"
jsval_t ant_load_snapshot(struct js *js) {
if (!js) return js_mkerr(js, "invalid js runtime");
jsval_t result = js_eval(js, (const char *)ant_snapshot_source, ant_snapshot_source_len);
if (js_type(result) == JS_ERR) return result;
return js_mktrue();
}
const uint8_t *ant_get_snapshot_source(size_t *len) {
if (len) *len = ant_snapshot_source_len;
return ant_snapshot_source;
}

File Metadata

Mime Type
text/x-c
Expires
Fri, Mar 27, 8:46 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
513096
Default Alt Text
snapshot.c (482 B)

Event Timeline