MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / makeContentBytes

Function makeContentBytes

frontend/preview/mock/mockfilesystem.ts:161–166  ·  view source on GitHub ↗
(content: string | Uint8Array)

Source from the content-addressed store, hash-verified

159}
160
161function makeContentBytes(content: string | Uint8Array): Uint8Array {
162 if (content instanceof Uint8Array) {
163 return content;
164 }
165 return new TextEncoder().encode(content);
166}
167
168function makeMockFsInput(path: string, content?: string | Uint8Array, mimetype?: string): MockFsEntryInput {
169 return { path, content, mimetype };

Callers 1

buildEntriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected