| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 30d9202 commit e1e02ef
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -528,6 +528,10 @@ Returns the actual byte length of a string. This is not the same as | |||
| 528 | 528 | [`String.prototype.length`][] since that returns the number of *characters* in | |
| 529 | 529 | a string. | |
| 530 | 530 | ||
| 531 | + *Note* that for `'base64'` and `'hex'`, this function assumes valid input. For | ||
| 532 | + strings that contain non-Base64/Hex-encoded data (e.g. whitespace), the return | ||
| 533 | + value might be greater than the length of a `Buffer` created from the string. | ||
| 534 | + | ||
| 531 | 535 | Example: | |
| 532 | 536 | ||
| 533 | 537 | ```js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments