MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / normalizeRequestData

Function normalizeRequestData

vmm/ui/src/lib/vmmRpcClient.ts:30–38  ·  view source on GitHub ↗
(data?: Uint8Array | ArrayBuffer | null)

Source from the content-addressed store, hash-verified

28}
29
30function normalizeRequestData(data?: Uint8Array | ArrayBuffer | null) {
31 if (!data) {
32 return EMPTY_BODY;
33 }
34 if (data instanceof Uint8Array) {
35 return data;
36 }
37 return new Uint8Array(data);
38}
39
40function resolveMethodName(method: any) {
41 if (!method) {

Callers 1

rpcImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected