27 quint32 resourceSectionLength = 0;
28 if (!
psdread(io, resourceSectionLength)) {
29 error =
"Could not read image resource section length";
33 dbgFile <<
"Image Resource Sectionlength:" << resourceSectionLength <<
", starts at:" << io.pos();
35 QByteArray ba = io.read(resourceSectionLength);
36 if ((quint32)ba.size() != resourceSectionLength) {
37 error =
"Could not read all resources";
43 buf.open(QBuffer::ReadOnly);
45 while (!buf.atEnd()) {
47 if (!block->read(buf)) {
48 error =
"Error reading block: " + block->error;
53 dbgFile <<
"resource block created. Type:" << block->identifier <<
"name" << block->name <<
"size" << block->dataSize <<
"," << buf.bytesAvailable()