| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 54879ab commit 9861ec9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -747,6 +747,10 @@ in `list`. This however causes an additional loop to be executed in order to | |||
| 747 | 747 | calculate the `totalLength`, so it is faster to provide the length explicitly if | |
| 748 | 748 | it is already known. | |
| 749 | 749 | ||
| 750 | + If `totalLength` is provided, it is coerced to an unsigned integer. If the | ||
| 751 | + combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is | ||
| 752 | + truncated to `totalLength`. | ||
| 753 | + | ||
| 750 | 754 | Example: Create a single `Buffer` from a list of three `Buffer` instances | |
| 751 | 755 | ||
| 752 | 756 | ```js | |
| Back | FazBrowse Home | New Git URL |
0 commit comments