_Originally posted by @RyanTheOptimist in https://github.com/envoyproxy/envoy-mobile/pull/2164#discussion_r865090104_ 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