25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithStream: (OFSeekableStream *)stream
offset: (of_offset_t)offset
whence: (int)whence
errNo: (int)errNo
{
return [[[self alloc] initWithStream: stream
offset: offset
whence: whence
errNo: errNo] autorelease];
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithStream: (OFSeekableStream *)stream
offset: (of_offset_t)offset
whence: (int)whence
errNo: (int)errNo
{
self = [super init];
_stream = [stream retain];
_offset = offset;
|
|
|
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
+ (instancetype)exception
{
OF_UNRECOGNIZED_SELECTOR
}
+ (instancetype)exceptionWithStream: (OFSeekableStream *)stream
offset: (OFFileOffset)offset
whence: (int)whence
errNo: (int)errNo
{
return [[[self alloc] initWithStream: stream
offset: offset
whence: whence
errNo: errNo] autorelease];
}
- (instancetype)init
{
OF_INVALID_INIT_METHOD
}
- (instancetype)initWithStream: (OFSeekableStream *)stream
offset: (OFFileOffset)offset
whence: (int)whence
errNo: (int)errNo
{
self = [super init];
_stream = [stream retain];
_offset = offset;
|
66
67
68
69
70
71
72
73
74
75
|
[super dealloc];
}
- (OFString *)description
{
return [OFString stringWithFormat:
@"Seeking failed in stream of type %@: %@",
_stream.class, of_strerror(_errNo)];
}
@end
|
|
|
66
67
68
69
70
71
72
73
74
75
|
[super dealloc];
}
- (OFString *)description
{
return [OFString stringWithFormat:
@"Seeking failed in stream of type %@: %@",
_stream.class, OFStrError(_errNo)];
}
@end
|