Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Generates a checksum for a file.
- */
- fun File.checksum() : Long? {
- val crc = CRC32()
- crc.update(readBytes())
- return crc.value
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement