base64

package
v0.5.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package base64 implements base64 encoding as specified by RFC 4648.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

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

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

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

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL