ObjFW  Diff

Differences From Artifact [c971350bab]:

To Artifact [d12ca7c473]:


47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
47
48
49
50
51
52
53















54
55
56
57
58
59
60







-
-
-
-
-
-
-
-
-
-
-
-
-
-
-







+ (instancetype)dataWithItemSize: (size_t)itemSize
			capacity: (size_t)capacity
{
	return [[[self alloc] initWithItemSize: itemSize
				      capacity: capacity] autorelease];
}

+ (instancetype)dataWithItemsNoCopy: (const void *)items
			      count: (size_t)count
		       freeWhenDone: (bool)freeWhenDone
{
	OF_UNRECOGNIZED_SELECTOR
}

+ (instancetype)dataWithItemsNoCopy: (const void *)items
			   itemSize: (size_t)itemSize
			      count: (size_t)count
		       freeWhenDone: (bool)freeWhenDone
{
	OF_UNRECOGNIZED_SELECTOR
}

- (instancetype)init
{
	self = [super of_init];

	_itemSize = 1;

	return self;
129
130
131
132
133
134
135
136

137
138
139


140
141
142
143








144
145
146
147



148





149
150
151
152
153
154
155
114
115
116
117
118
119
120

121
122
123
124
125
126




127
128
129
130
131
132
133
134
135
136
137
138
139
140
141

142
143
144
145
146
147
148
149
150
151
152
153







-
+



+
+
-
-
-
-
+
+
+
+
+
+
+
+




+
+
+
-
+
+
+
+
+







			      count: count];

	_capacity = _count;

	return self;
}

- (instancetype)initWithItemsNoCopy: (const void *)items
- (instancetype)initWithItemsNoCopy: (void *)items
			      count: (size_t)count
		       freeWhenDone: (bool)freeWhenDone
{
	self = [self initWithItems: items
			     count: count];
	OF_INVALID_INIT_METHOD
}

- (instancetype)initWithItemsNoCopy: (const void *)items

	if (freeWhenDone)
		free(items);

	return self;
}

- (instancetype)initWithItemsNoCopy: (void *)items
			   itemSize: (size_t)itemSize
			      count: (size_t)count
		       freeWhenDone: (bool)freeWhenDone
{
	self = [self initWithItems: items
			  itemSize: itemSize
			     count: count];
	OF_INVALID_INIT_METHOD

	if (freeWhenDone)
		free(items);

	return self;
}

- (instancetype)initWithStringRepresentation: (OFString *)string
{
	self = [super initWithStringRepresentation: string];

	_capacity = _count;