Reviewed-by: xuelei, alanb
To use GetPrimitiveArrayCritical for bye array access Reviewed-by: bristor, alanb