MCPcopy Create free account
hub / github.com/mscdex/ssh2 / readData

Method readData

lib/protocol/SFTP.js:418–421  ·  view source on GitHub ↗
(handle, buf, off, len, position, cb)

Source from the content-addressed store, hash-verified

416 read_(this, handle, buf, off, len, position, cb);
417 }
418 readData(handle, buf, off, len, position, cb) {
419 // Backwards compatibility
420 this.read(handle, buf, off, len, position, cb);
421 }
422 write(handle, buf, off, len, position, cb) {
423 if (this.server)
424 throw new Error('Client-only method called in server mode');

Callers

nothing calls this directly

Calls 1

readMethod · 0.95

Tested by

no test coverage detected