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

Function allocBufferFromArrayDeprecated

lib/utils.js:86–92  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

84}
85
86function allocBufferFromArrayDeprecated(arr) {
87 if (!Array.isArray(arr)) {
88 throw new TypeError('Expected Array, obtained ' + util.inspect(arr));
89 }
90 // eslint-disable-next-line
91 return new Buffer(arr);
92}
93
94/**
95 * @returns {Function} Returns a wrapper function that invokes the underlying callback only once.

Callers

nothing calls this directly

Calls 1

inspectMethod · 0.45

Tested by

no test coverage detected