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

Method readBytes

lib/readers.js:181–188  ·  view source on GitHub ↗

* Reads the amount of bytes that the field has and returns them (slicing them). * @returns {Buffer}

()

Source from the content-addressed store, hash-verified

179 * @returns {Buffer}
180 */
181 readBytes() {
182 const length = this.readInt();
183 if (length < 0) {
184 return null;
185 }
186 this.checkOffset(length);
187 return this.read(length);
188 }
189
190 readShortBytes() {
191 const length = this.readShort();

Callers 2

readMetadataMethod · 0.95
streams.jsFile · 0.80

Calls 3

readIntMethod · 0.95
checkOffsetMethod · 0.95
readMethod · 0.95

Tested by

no test coverage detected