MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / slice

Method slice

lib/readers.js:81–86  ·  view source on GitHub ↗

* Slices the underlining buffer * @param {Number} begin * @param {Number} [end] * @returns {Buffer}

(begin, end)

Source from the content-addressed store, hash-verified

79 * @returns {Buffer}
80 */
81 slice(begin, end) {
82 if (typeof end === 'undefined') {
83 end = this.buf.length;
84 }
85 return this.buf.slice(begin, end);
86 }
87
88 /**
89 * Modifies the underlying buffer, it concatenates the given buffer with the original (internalBuffer = concat(bytes, internalBuffer)

Callers 1

readMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected