39
40
41
42
43
44
45
46
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
|
- (void)seekToOffset: (off_t)offset
{
[self _seekToOffset: offset];
[self freeMemory: cache];
cache = NULL;
cacheLen = 0;
}
- (off_t)seekForwardWithOffset: (off_t)offset
{
off_t ret;
ret = [self _seekForwardWithOffset: offset - cacheLen];
[self freeMemory: cache];
cache = NULL;
cacheLen = 0;
return ret;
}
- (off_t)seekToOffsetRelativeToEnd: (off_t)offset
{
off_t ret;
ret = [self _seekToOffsetRelativeToEnd: offset];
[self freeMemory: cache];
cache = NULL;
cacheLen = 0;
return ret;
}
@end
|
|
|
|
|
|
|
|
|
|
|
39
40
41
42
43
44
45
46
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
|
- (void)seekToOffset: (off_t)offset
{
[self _seekToOffset: offset];
[self freeMemory: cache];
cache = NULL;
cacheLength = 0;
}
- (off_t)seekForwardWithOffset: (off_t)offset
{
off_t retOffset;
retOffset = [self _seekForwardWithOffset: offset - cacheLength];
[self freeMemory: cache];
cache = NULL;
cacheLength = 0;
return retOffset;
}
- (off_t)seekToOffsetRelativeToEnd: (off_t)offset
{
off_t retOffset;
retOffset = [self _seekToOffsetRelativeToEnd: offset];
[self freeMemory: cache];
cache = NULL;
cacheLength = 0;
return retOffset;
}
@end
|