Functions

The following functions are available globally.

  • Error when there is not a file.

    Declaration

    Swift

    private func isNoSuchFileError(_ error: Error?) -> Bool
  • Overload of the the < operator

    Declaration

    Swift

    func < (lhs: NSNumber, rhs: NSNumber) -> Bool
  • array of bytes, little-endian representation

    Declaration

    Swift

    func arrayOfBytes<T>(value: T, length: Int? = nil) -> [UInt8]
  • Rotate left for MD5 implementation

    Declaration

    Swift

    func rotateLeft(v: UInt32, n: UInt32) -> UInt32
  • sliceToUInt32 for MD5 implementation

    Declaration

    Swift

    func sliceToUInt32Array(_ slice: ArraySlice<UInt8>) -> [UInt32]