// Copyright © 2024 Rangeproof Pty Ltd. All rights reserved. import Foundation /// **Note:** The below code **MUST** match the equivalent in `SessionUtilitiesKit.Data+Utilities` internal extension Data { var suiKitGuessedImageFormat: SUIKImageFormat { let twoBytesLength: Int = 2 guard count > twoBytesLength else { return .unknown } var bytes: [UInt8] = [UInt8](repeating: 0, count: twoBytesLength) self.copyBytes(to: &bytes, from: (self.startIndex..