MCPcopy Create free account
hub / github.com/denoland/celld / isEncoding

Method isEncoding

crates/celld/js/node_buffer.js:242–244  ·  view source on GitHub ↗
(enc)

Source from the content-addressed store, hash-verified

240 }
241 static isBuffer(value) { return value instanceof NodeBuffer; }
242 static isEncoding(enc) {
243 return typeof enc === "string" && __normEnc(enc) !== undefined;
244 }
245 static byteLength(value, encoding) {
246 if (typeof value !== "string") {
247 if (ArrayBuffer.isView(value) || value instanceof ArrayBuffer ||

Callers 3

WritableStateFunction · 0.80
_writeFunction · 0.80

Calls 1

__normEncFunction · 0.85

Tested by

no test coverage detected