mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-12-03 11:52:43 +00:00
0f5e1dcafd
* chore(deps): upgrade stardoc This uses the Bazel 7 'starlark_doc_extract' rule which our docsite expects for slurping data. * chore: stardoc setup in WORKSPACE too * chore: skip stardoc on bazel 6 in cases where the legacy extractor produces different docstrings
51 lines
915 B
Markdown
Generated
51 lines
915 B
Markdown
Generated
<!-- Generated with Stardoc: http://skydoc.bazel.build -->
|
|
|
|
Utility functions for encoding and decoding strings with base64.
|
|
|
|
See https://en.wikipedia.org/wiki/Base64.
|
|
|
|
<a id="base64.decode"></a>
|
|
|
|
## base64.decode
|
|
|
|
<pre>
|
|
base64.decode(<a href="#base64.decode-data">data</a>)
|
|
</pre>
|
|
|
|
Decode a base64 encoded string.
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="base64.decode-data"></a>data | base64-encoded string | none |
|
|
|
|
**RETURNS**
|
|
|
|
A string containing the decoded data
|
|
|
|
|
|
<a id="base64.encode"></a>
|
|
|
|
## base64.encode
|
|
|
|
<pre>
|
|
base64.encode(<a href="#base64.encode-data">data</a>)
|
|
</pre>
|
|
|
|
Base64 encode a string.
|
|
|
|
**PARAMETERS**
|
|
|
|
|
|
| Name | Description | Default Value |
|
|
| :------------- | :------------- | :------------- |
|
|
| <a id="base64.encode-data"></a>data | string to encode | none |
|
|
|
|
**RETURNS**
|
|
|
|
The base64-encoded string
|
|
|
|
|