| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b1bda16 commit 1cd526c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -618,6 +618,10 @@ Returns the actual byte length of a string. This is not the same as | |||
| 618 | 618 | [`String.prototype.length`] since that returns the number of *characters* in | |
| 619 | 619 | a string. | |
| 620 | 620 | ||
| 621 | + *Note* that for `'base64'` and `'hex'`, this function assumes valid input. For | ||
| 622 | + strings that contain non-Base64/Hex-encoded data (e.g. whitespace), the return | ||
| 623 | + value might be greater than the length of a `Buffer` created from the string. | ||
| 624 | + | ||
| 621 | 625 | Example: | |
| 622 | 626 | ||
| 623 | 627 | ```js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments