MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / readFileBlob

Method readFileBlob

helpers/scanner/scan.ts:279–290  ·  view source on GitHub ↗
( fileInstance: ArrayBuffer | Blob | ScanFileLike )

Source from the content-addressed store, hash-verified

277 }
278
279 async readFileBlob ( fileInstance: ArrayBuffer | Blob | ScanFileLike ) {
280 const binaryReader = await this.getZipFileReader( fileInstance )
281 const zipReader = new zip.ZipReader( binaryReader )
282 const entries = await zipReader.getEntries()
283
284 this.sendMessage({
285 message: '📖 Reading file complete. Entries found',
286 status: 'read'
287 })
288
289 return entries as ScanFileEntry[]
290 }
291
292 classifyBinaryEntryArchitecture ( binaryEntry: ScanMachoMeta ) {
293 const armArchitecture = binaryEntry.architectures.find( architecture => {

Callers 1

runScanMethod · 0.95

Calls 2

getZipFileReaderMethod · 0.95
sendMessageMethod · 0.95

Tested by

no test coverage detected