}
for (int j = 0; j < objArr.length; j++) {
Object objectValue = objArr[j];
if ( templatearr != null ) {
// unsafe.copyMemory(templatearr,FSTStruct.bufoff,bytes,FSTStruct.bufoff+tmpIndex,templatearr.length);
templatearr.copyTo(bytes,tmpIndex,0,templatearr.length());
tmpIndex+=elemSiz;
} else {
if ( objectValue == null ) {
bytes.putInt(tmpIndex + 4, -1);
tmpIndex += elemSiz;