Skip to content

Instantly share code, notes, and snippets.

View flocked's full-sized avatar

Florian Zand flocked

  • MuffinStory
  • Berlin, Germany
View GitHub Profile
@flocked
flocked / OSHash.swift
Last active March 4, 2023 19:18
OpenSubtitles Hash
import Foundation
public class OSHash {
enum HashError: Error {
case invalidFile
case fileToSmall
}
private static let chunkSize: Int = 65536
private static let byteCount = 8