6#if defined(DART_HOST_OS_FUCHSIA)
11#include "lib/async/default.h"
12#include "lib/inspect/component/cpp/component.h"
13#include "lib/sys/cpp/component_context.h"
40 int retval = vsnprintf(str, size,
format,
args);
42 FATAL(
"Fatal error in Utils::VSNPrint with format '%s'",
format);
50size_t Utils::Read(
int filedes,
void* buf,
size_t nbyte) {
51 return read(filedes, buf, nbyte);
58 static std::unique_ptr<sys::ComponentContext> context =
59 sys::ComponentContext::CreateAndServeOutgoingDirectory();
63std::unique_ptr<inspect::Node> vm_node;
65 vm_node = std::move(node);
71 if (vm_node ==
nullptr) {
72 static std::unique_ptr<inspect::ComponentInspector> component_inspector =
73 std::make_unique<inspect::ComponentInspector>(
74 async_get_default_dispatcher(), inspect::PublishOptions{});
75 vm_node = std::make_unique<inspect::Node>(
76 component_inspector->root().CreateChild(
"vm"));
78 return std::move(vm_node);
static bool read(SkStream *stream, void *buffer, size_t amount)
static int SNPrint(char *str, size_t size, const char *format,...) PRINTF_ATTRIBUTE(3
static char * StrDup(const char *s)
static int static int VSNPrint(char *str, size_t size, const char *format, va_list args)
static size_t Read(int filedes, void *buf, size_t nbyte)
static intptr_t StrNLen(const char *s, intptr_t n)
static int Close(int fildes)
static int Unlink(const char *path)
static char * StrNDup(const char *s, intptr_t n)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
uint32_t uint32_t * format
void SetDartVmNode(std::unique_ptr< inspect::Node > node)
sys::ComponentContext * ComponentContext()
std::unique_ptr< inspect::Node > TakeDartVmNode()
char * strdup(const char *str1)