go: cuelang.org/go/pkg/encoding/base64 Index | Files

package base64

import "cuelang.org/go/pkg/encoding/base64"

Package base64 implements base64 encoding as specified by RFC 4648.

Index

Package Files

manual.go

func Decode Uses

func Decode(encoding cue.Value, s string) ([]byte, error)

Decode returns the bytes represented by the base64 string s. Encoding needs to be set to null as only StdEncoding is supported for now.

func DecodedLen Uses

func DecodedLen(encoding cue.Value, x int) (int, error)

DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data. Encoding needs to be set to null as only StdEncoding is supported for now.

func Encode Uses

func Encode(encoding cue.Value, src []byte) (string, error)

Encode returns the base64 encoding of src. Encoding needs to be set to null as only StdEncoding is supported for now.

func EncodedLen Uses

func EncodedLen(encoding cue.Value, n int) (int, error)

EncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n. Encoding needs to be set to null as only StdEncoding is supported for now.

Package base64 imports 3 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.