PsdLayerSectionDivider constructor
PsdLayerSectionDivider(
- String tag,
- InputBuffer data
Implementation
PsdLayerSectionDivider(String tag, InputBuffer data) : super.type(tag) {
final len = data.length;
type = data.readUint32();
if (len >= 12) {
final sig = data.readString(4);
if (sig != '8BIM') {
throw ImageException('Invalid key in layer additional data');
}
key = data.readString(4);
}
if (len >= 16) {
subType = data.readUint32();
}
}