| 116 | } |
| 117 | |
| 118 | PsdTextAttribute::PsdTextAttribute(int size, const uint8_t* data) { |
| 119 | mem.reserve(size); |
| 120 | len = stringFormatTransform(mem, data, size); |
| 121 | src = mem.data(); |
| 122 | } |
| 123 | |
| 124 | bool PsdTextAttribute::getIntegerByKeys(int& result, std::vector<int> keys, const int keyCount) { |
| 125 | if (keys.empty() || keyCount <= 0) { |