32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
}
- (const char *)objCType
{
return @encode(of_point_t);
}
- (void)getValue: (void *)value
size: (size_t)size
{
if (size != sizeof(_point))
@throw [OFOutOfRangeException exception];
memcpy(value, &_point, sizeof(_point));
}
- (OFString *)description
{
return [OFString stringWithFormat:
@"<OFValue: of_point_t { %f, %f }>", _point.x, _point.y];
}
@end
|
|
<
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
}
- (const char *)objCType
{
return @encode(of_point_t);
}
- (void)getValue: (void *)value size: (size_t)size
{
if (size != sizeof(_point))
@throw [OFOutOfRangeException exception];
memcpy(value, &_point, sizeof(_point));
}
- (OFString *)description
{
return [OFString stringWithFormat:
@"<OFValue: of_point_t { %f, %f }>", _point.x, _point.y];
}
@end
|