try { len = Integer.parseInt(dTag); } catch (Exception ignore) {};
if (len == 0) len = dArrayLength;
if (len > length) len = length;
if (length <= 0) return TErrorList.argument_list_error;
if (dFormat != TFormat.CF_AIMAGE) return TErrorList.illegal_format;
if (isLocked) throw new InputDataLockedException(lockedMessage);
dSizeInBytes = 0;
int totalHdrBytes = 0, totalFrameBytes = 0;
for (int i=0; i<len; i++)
{
if (((IMAGE[])data)[i+offset] == null) ((IMAGE[])data)[i+offset] = new IMAGE(100);