setColors function, sop cpp node c++

Hi there,
I`m wish to pass RGB stream int8_t* (R,G,B,R,G,B…) (0-255) to
setColors function

And you guys Accept only float* (R,G,B,A,R,G,B,A…)
normalized value 0-1.

besides creating new float*
and iterate thru all stream values and normalize them. ( already done)

what else can be done on my side?
(besides the trivial, source with types case)
thanks a lot !

// set the sequnece of input colors for points that are already added.
// each color must hold 4 values.
// the size param is the number of color.
// the startPointIdx indicates the start index of the points.

virtual bool	setColors(const float *c, int32_t size, int32_t startPointIdx) = 0;

If memory is an issue, you can use set them individually in a loop with:
setColor(float r, float g, float b, float a, int32_t pointIdx).
The way the memory is arranged on the SOP attribute side, means it won’t be much slower anyways at this point.
Cheers,
Rob.