base64

package
v0.0.0-...-5d666d8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendDecode

func AppendDecode(enc *base64.Encoding, dst, src []byte) ([]byte, error)

AppendDecode appends decoded src to dst using the encoding enc and returns the extended dst

If src contains invalid base64 data, it will return the CorruptInputError. New line characters (\r and \n) are ignored.

See https://go-review.googlesource.com/c/go/+/37639/1/src/encoding/base64/base64.go#372

func AppendEncode

func AppendEncode(enc *base64.Encoding, dst, src []byte) []byte

AppendEncode appends encoded src to dst using the encoding enc and returns the extended dst.

The encoding pads the output to a multiple of 4 bytes, so AppendEncode is not appropriate for use on individual blocks of a large data stream. Use NewEncoder() instead.

See https://go-review.googlesource.com/c/go/+/37639/1/src/encoding/base64/base64.go#149

Types

This section is empty.

Jump to

Keyboard shortcuts

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