This reverts commit 53c4a27aef. I forgot that these functions are based on element count, not based on byte count. Rename “length” to “elementCount” for better clarification.
53c4a27aef