PsdLayerSectionDivider constructor

PsdLayerSectionDivider(
  1. String tag,
  2. InputBuffer data
)

Implementation

PsdLayerSectionDivider(String tag, InputBuffer data) : super.type(tag) {
  var len = data.length;

  type = data.readUint32();

  if (len >= 12) {
    var 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();
  }
}