armor64

package module
v0.0.0-...-67a6dda Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: 0BSD Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(dst []byte, src []byte) (int, error)

Decode decodes src. It writes at most DecodedLen(len(src)) bytes to dst and returns the number of bytes written. If src contains invalid armor64 data, it will return the number of bytes successfully written and base64.CorruptInputError.

func DecodeString

func DecodeString(s string) ([]byte, error)

DecodeString returns the bytes represented by the armor64 string s. If s contains invalid armor64 data, it will return nil and base64.CorruptInputError.

func DecodedLen

func DecodedLen(n int) int

DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of armor64-encoded data.

func Encode

func Encode(dst []byte, src []byte)

Encode encodes src, writing EncodedLen(len(src)) bytes to dst.

func EncodeToString

func EncodeToString(src []byte) string

EncodeToString returns the armor64 encoding of src.

func EncodedLen

func EncodedLen(n int) int

EncodedLen returns the length in bytes of the armor64 encoding of an input buffer of length n.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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