valueArray = valueArray == null ? Array.newInstance(componentType, structArray.size()) : valueArray; if (Array.getLength(valueArray) != structArray.size()) { throw new JBBPMapperException("Can't map an array field for different expected size [" + Array.getLength(valueArray) + "!=" + structArray.size() + ']', binField, mappingClass, mappingField, null); for (int i = 0; i < structArray.size(); i++) { final Object curInstance = Array.get(valueArray, i); if (curInstance == null) { Array.set(valueArray, i, map(structArray.getElementAt(i), componentType, customFieldProcessor)); } else { Array.set(valueArray, i, map(structArray.getElementAt(i), curInstance, customFieldProcessor));
structureFields.add(new JBBPFieldArrayStruct(name, result));
final JBBPFieldArrayStruct structArray = (JBBPFieldArrayStruct) array; int index = 0; for (final JBBPFieldStruct s : structArray.getArray()) { printAbstractFieldObject('[' + Integer.toString(index++) + ']', s);