Versions in this module Expand all Collapse all v0 v0.1.0 Aug 31, 2026 Changes in this version + const ModuleName + func Base64DecodeAppend(dst []byte, src string) ([]byte, error) + func Bytes(r *goja.Runtime, v goja.Value) []byte + func DecodeBytes(r *goja.Runtime, arg, enc goja.Value) []byte + func Enable(runtime *goja.Runtime) + func EncodeBytes(r *goja.Runtime, data []byte, enc goja.Value) goja.Value + func Require(runtime *goja.Runtime, module *goja.Object) + func WrapBytes(r *goja.Runtime, data []byte) *goja.Object + type Buffer struct + func GetApi(r *goja.Runtime) *Buffer + func (b *Buffer) RequiredBufferArgument(call goja.FunctionCall, argName string, argIdx int) []byte + func (b *Buffer) WrapBytes(data []byte) *goja.Object + type StringCodec interface + Decode func(s string) []byte + DecodeAppend func(string, []byte) []byte + Encode func([]byte) string + func StringCodecByName(name string) StringCodec