Support zero-copy with encoded format