Originally posted by @RyanTheOptimist in #2164 (comment)
EM only cares about the provided length: always starts at position zero, regardless of what the ByteBuffer says.
https://github.com/envoyproxy/envoy-mobile/blob/main/library/common/jni/jni_utility.cc#L167