Refactoring

This commit is contained in:
Ali
2021-04-26 02:00:48 +04:00
parent bc108d8dc1
commit 1b48517f12
126 changed files with 407 additions and 377 deletions

View File

@@ -0,0 +1,13 @@
import Foundation
import Postbox
import CryptoUtils
// Incuding at least one Objective-C class in a swift file ensures that it doesn't get stripped by the linker
private final class LinkHelperClass: NSObject {
}
public extension MemoryBuffer {
func md5Digest() -> Data {
return CryptoMD5(self.memory, Int32(self.length))
}
}