MCPcopy Create free account
hub / github.com/SnapDrop/snapdrop / constructor

Method constructor

client/scripts/network.js:479–486  ·  view source on GitHub ↗
(meta, callback)

Source from the content-addressed store, hash-verified

477class FileDigester {
478
479 constructor(meta, callback) {
480 this._buffer = [];
481 this._bytesReceived = 0;
482 this._size = meta.size;
483 this._mime = meta.mime || 'application/octet-stream';
484 this._name = meta.name;
485 this._callback = callback;
486 }
487
488 unchunk(chunk) {
489 this._buffer.push(chunk);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected