Documentation
¶
Index ¶
- Constants
- func Base64DecodeAppend(dst []byte, src string) ([]byte, error)
- func Bytes(r *sobek.Runtime, v sobek.Value) []byte
- func DecodeBytes(r *sobek.Runtime, arg, enc sobek.Value) []byte
- func Enable(runtime *sobek.Runtime)
- func EncodeBytes(r *sobek.Runtime, data []byte, enc sobek.Value) sobek.Value
- func Require(runtime *sobek.Runtime, module *sobek.Object)
- func WrapBytes(r *sobek.Runtime, data []byte) *sobek.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.