At the current documentation for Buffer.concat the second parameter explanation seems a little vague.
On our project we're trying to avoid a possible use case issue and it would be helpful to definitively explain if totalLength is Byte length or encoded length e.g. String length, or other... otherwise we may have an issue down the road pop-up.
It would be super helpful to clarify this in the documentation. :)
TIA