MCPcopy Index your code
hub / github.com/extism/java-sdk / serialize

Method serialize

src/main/java/org/extism/sdk/Plugin.java:102–105  ·  view source on GitHub ↗
(Manifest manifest)

Source from the content-addressed store, hash-verified

100 }
101
102 private static byte[] serialize(Manifest manifest) {
103 Objects.requireNonNull(manifest, "manifest");
104 return JsonSerde.toJson(manifest).getBytes(StandardCharsets.UTF_8);
105 }
106
107 /**
108 * Invoke a function with the given name and input.

Callers 1

PluginMethod · 0.95

Calls 1

toJsonMethod · 0.95

Tested by

no test coverage detected