MCPcopy Create free account
hub / github.com/devld/go-drive / vm_base64Encode

Function vm_base64Encode

script/call_enc.go:16–18  ·  view source on GitHub ↗

vm_base64Encode: (b Bytes) string

(vm *VM, args Values)

Source from the content-addressed store, hash-verified

14
15// vm_base64Encode: (b Bytes) string
16func vm_base64Encode(vm *VM, args Values) any {
17 return base64.StdEncoding.EncodeToString(GetBytes(args.Get(0).Raw()))
18}
19
20// vm_base64Decode: (s string) Bytes
21func vm_base64Decode(vm *VM, args Values) any {

Callers

nothing calls this directly

Calls 3

GetBytesFunction · 0.85
RawMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected