MCPcopy Index your code
hub / github.com/simstudioai/sim / deriveBlobBlockId

Function deriveBlobBlockId

apps/sim/lib/uploads/providers/blob/client.ts:491–493  ·  view source on GitHub ↗
(partNumber: number)

Source from the content-addressed store, hash-verified

489 * server reconstruct the id from `partNumber` alone when completing an upload.
490 */
491export function deriveBlobBlockId(partNumber: number): string {
492 return Buffer.from(`block-${partNumber.toString().padStart(6, '0')}`).toString('base64')
493}
494
495/**
496 * Initiate a multipart upload for Azure Blob Storage

Callers 3

getMultipartPartUrlsFunction · 0.85
stageBlobPartFunction · 0.85
completeOneFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected