Artifact 7b96bce1bd87e7e85f668dfcd8abb3614f7841b9b2d82f32080a435d4ea7c836:
- File
src/OFSeekableStream.m
— part of check-in
[efe7be259d]
at
2013-02-18 21:53:56
on branch trunk
— Rename -[OFStream pendingBytes].
It is now called -[numberOfBytesInReadBuffer].
Additionally, this commit renames OFStream's _cache to _readBuffer. (user: js, size: 1002) [annotate] [blame] [check-ins using]
/* * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 * Jonathan Schleifer <js@webkeks.org> * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in * the packaging of this file. * * Alternatively, it may be distributed under the terms of the GNU General * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #include "config.h" #include <stdlib.h> #import "OFSeekableStream.h" @implementation OFSeekableStream - (void)lowlevelSeekToOffset: (off_t)offset whence: (int)whence { [self doesNotRecognizeSelector: _cmd]; abort(); } - (void)seekToOffset: (off_t)offset whence: (int)whence { [self lowlevelSeekToOffset: offset whence: whence]; [self freeMemory: _readBuffer]; _readBuffer = NULL; _readBufferLength = 0; } @end