Use a sample to indicate a reader EOF.

This commit is contained in:
Damiano Galassi committed 2016-07-23 17:20:31 +02:00
1 parent 54437f9030
commit 6a2b4a1fad
12 files changed
+121 -71

No files matched your search

+8 -1
View File
@@ -26,7 +26,14 @@ uint64 right(uint64 i) {
return i * 2 + 2;
}
@implementation MP42Heap
@implementation MP42Heap {
@private
id *_array;
uint64 _size;
uint64 _len;
NSComparator _cmptr;
}
- (instancetype)initWithCapacity:(NSUInteger)numItems andComparator:(NSComparator)cmptr {
self = [super init];