1 // Type info and methods for "Memory" opaque type
10 #include "metamethods.h"
17 Text_t Memory$as_text(const void *p, bool colorize, const TypeInfo_t *info) {
19 if (!p) return Text("Memory");
20 Text_t text = Text$from_str(String("Memory<", (void *)p, ">"));
21 return colorize ? Text$concat(Text("\x1b[0;34;1m"), text, Text("\x1b[m")) : text;
25 const TypeInfo_t Memory$info = {
30 .as_text = Memory$as_text,
31 .serialize = cannot_serialize,
32 .deserialize = cannot_deserialize,