MCPcopy Create free account
hub / github.com/denoland/std / serializeBinary

Function serializeBinary

http/unstable_structured_fields.ts:1358–1360  ·  view source on GitHub ↗
(value: Uint8Array)

Source from the content-addressed store, hash-verified

1356}
1357
1358function serializeBinary(value: Uint8Array): string {
1359 return `:${encodeBase64(value)}:`;
1360}
1361
1362function serializeBoolean(value: boolean): string {
1363 return value ? "?1" : "?0";

Callers 1

serializeBareItemFunction · 0.85

Calls 1

encodeBase64Function · 0.90

Tested by

no test coverage detected