* @throws fr.xlim.ssd.capmanipulator.library.exceptions.UnableToReadCapFileException
*
*/
public ArrayInitInfo load(CapInputStream in) throws UnableToReadCapFileException {
ArrayInitInfo arrayInitInfo = new ArrayInitInfo();
arrayInitInfo.setType(in.readByte());
arrayInitInfo.setCount(in.readShort());
arrayInitInfo.setValues(new ArrayList<Byte>(arrayInitInfo.getCount()));
for (int i = 0; i < arrayInitInfo.getCount(); i++) {
arrayInitInfo.getValues().add(in.readByte());
}
return arrayInitInfo;
}