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

Function allocBufferFromStringDeprecated

lib/utils.js:78–84  ·  view source on GitHub ↗
(text, encoding)

Source from the content-addressed store, hash-verified

76}
77
78function allocBufferFromStringDeprecated(text, encoding) {
79 if (typeof text !== 'string') {
80 throw new TypeError('Expected string, obtained ' + util.inspect(text));
81 }
82 // eslint-disable-next-line
83 return new Buffer(text, encoding);
84}
85
86function allocBufferFromArrayDeprecated(arr) {
87 if (!Array.isArray(arr)) {

Callers

nothing calls this directly

Calls 1

inspectMethod · 0.45

Tested by

no test coverage detected