UNPKG

node-firebird-driver

Version:
31 lines 878 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AbstractBlobStream = void 0; const __1 = require(".."); /** AbstractBlobStream implementation. */ class AbstractBlobStream extends __1.BlobStream { constructor(blob, attachment) { super(blob); this.attachment = attachment; } get length() { return this.internalGetLength(); } async close() { return await this.internalClose(); } async cancel() { return await this.internalCancel(); } async seek(offset, whence) { return await this.internalSeek(offset, whence); } async read(buffer) { return await this.internalRead(buffer); } async write(buffer) { return await this.internalWrite(buffer); } } exports.AbstractBlobStream = AbstractBlobStream; //# sourceMappingURL=blob.js.map