MCPcopy Index your code
hub / github.com/dop251/goja_nodejs / EncodeBytes

Function EncodeBytes

buffer/buffer.go:124–133  ·  view source on GitHub ↗

EncodeBytes returns the given byte slice encoded as string with the given encoding. If encoding is not specified or not supported, returns a Buffer that wraps the data.

(r *goja.Runtime, data []byte, enc goja.Value)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

EncodeMethod · 0.95
StringCodecByNameFunction · 0.85
WrapBytesFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…