Documentation ¶
Index ¶
- Constants
- 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
- type StringCodec
Constants ¶
View Source
const ModuleName = "buffer"
Variables ¶
This section is empty.
Functions ¶
func EncodeBytes ¶
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.
Types ¶
type StringCodec ¶
func StringCodecByName ¶
func StringCodecByName(name string) StringCodec
Click to show internal directories.
Click to hide internal directories.