ObjFW  Diff

Differences From Artifact [a0f881f925]:

To Artifact [5fd2ddb8ad]:


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- (void)dealloc
{
	free(_bytes);

	[super dealloc];
}

- (void)getValue: (void *)value
	    size: (size_t)size
{
	if (size != _size)
		@throw [OFOutOfRangeException exception];

	memcpy(value, _bytes, _size);
}
@end







|
<







43
44
45
46
47
48
49
50

51
52
53
54
55
56
57
- (void)dealloc
{
	free(_bytes);

	[super dealloc];
}

- (void)getValue: (void *)value size: (size_t)size

{
	if (size != _size)
		@throw [OFOutOfRangeException exception];

	memcpy(value, _bytes, _size);
}
@end