1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-27 15:50:56 +00:00
CLK/OSBindings/Mac/Clock Signal/Machine/NSData+CRC32.m
Thomas Harte 2129bfc570 Gets as far as testing ROMs against the missing list.
Though now it strikes me that I've forgotten to retain the machine name.
2019-07-22 18:02:48 -04:00

20 lines
327 B
Objective-C

//
// NSData+CRC32.m
// Clock Signal
//
// Created by Thomas Harte on 22/07/2019.
// Copyright 2019 Thomas Harte. All rights reserved.
//
#import "NSData+CRC32.h"
#include <zlib.h>
@implementation NSData (StdVector)
- (NSNumber *)crc32 {
return @(crc32(crc32(0, Z_NULL, 0), self.bytes, (uInt)self.length));
}
@end