How to save data in a buffer in Arduino

A buffer is simply an array and you save data to each array element using the = operation.

int inputValues [16];

for(i=0; i<16; i++){
value = // what ever you have to do to read the value
inputValues[i] = value;
}