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

Function encodeDuration

lib/encoder.js:2027–2032  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

2025}
2026
2027function encodeDuration(value) {
2028 if (!(value instanceof types.Duration)) {
2029 throw new TypeError('Not a valid duration, expected Duration/Buffer obtained ' + util.inspect(value));
2030 }
2031 return value.toBuffer();
2032}
2033
2034/**
2035 * @private

Callers

nothing calls this directly

Calls 1

inspectMethod · 0.45

Tested by

no test coverage detected