Reaction list setup

This commit is contained in:
Ali
2021-12-17 00:20:30 +04:00
parent 321fe4e052
commit 1ac4c70dec
12 changed files with 1473 additions and 59 deletions

View File

@@ -1311,6 +1311,14 @@ public final class PostboxDecoder {
return []
}
}
public func decodeOptionalStringArrayForKey(_ key: String) -> [String]? {
if PostboxDecoder.positionOnKey(self.buffer.memory, offset: &self.offset, maxOffset: self.buffer.length, length: self.buffer.length, key: key, valueType: .StringArray) {
return decodeStringArrayRaw()
} else {
return nil
}
}
public func decodeStringArrayRaw() -> [String] {
var length: Int32 = 0