MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / parseBlobById

Function parseBlobById

packages/core/src/__tests__/drawlistDecode.ts:259–264  ·  view source on GitHub ↗
(bytes: Uint8Array, blobId: number)

Source from the content-addressed store, hash-verified

257}
258
259export function parseBlobById(bytes: Uint8Array, blobId: number): Uint8Array | null {
260 const resources = parseResourceState(bytes);
261 const blob = resources.blobs.get(blobId);
262 if (!blob) return null;
263 return cloneBytes(blob);
264}
265
266export function parseDrawTextCommands(bytes: Uint8Array): readonly DrawTextCommand[] {
267 const headers = parseCommandHeaders(bytes);

Callers 5

firstTextRunBlobFunction · 0.85
textRunAttrsFunction · 0.85

Calls 3

parseResourceStateFunction · 0.85
cloneBytesFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected