What alternative for setUniformVec4 in Lua

I’m looking at upgrading my Lua v3.17.2 based app to v4.0. I’m using material files loaded as Sprite3DMaterial objects and setting the values of uniforms via setUniformVec4. That method has disappeared in v4.0. In the C++ API, I see a general setUniform method that takes a value as a sized memory buffer but I can’t see what do do from Lua.