CalcIt Commands

BUFFERFILL(BufferField, FillValue=0)

This command is used to initialize a Buffer variable or a Buffer variable field with a specific byte value.

SET bf=BUFDEF(f1:atINTEGGER, f2:atCHAR[30]);
BufferFill(bf);   
//bf initialized with zeroes
BufferFill(bf.f2);
//bf.f2 initialized with zeroes

The above code creates a Buffer variable bf and initialize its memory with zeroes in the second line. In the third fills only the field f2 of bf.

FillValue parameter is optional and if omitted then zero (0) is assumed. It can take values in the range 0-255.

See also Using Buffer Variables.

Go Back