@@ -129,12 +129,12 @@ @throw [OFInitializationFailedException exceptionWithClass: self]; #endif } -+ (instancetype)fileWithPath: (OFString*)path - mode: (OFString*)mode ++ (instancetype)fileWithPath: (OFString *)path + mode: (OFString *)mode { return [[[self alloc] initWithPath: path mode: mode] autorelease]; } @@ -147,12 +147,12 @@ - init { OF_INVALID_INIT_METHOD } -- initWithPath: (OFString*)path - mode: (OFString*)mode +- initWithPath: (OFString *)path + mode: (OFString *)mode { self = [super init]; @try { int flags; @@ -199,11 +199,11 @@ return true; return _atEndOfStream; } -- (size_t)lowlevelReadIntoBuffer: (void*)buffer +- (size_t)lowlevelReadIntoBuffer: (void *)buffer length: (size_t)length { ssize_t ret; if (_fd == -1 || _atEndOfStream) @@ -229,11 +229,11 @@ _atEndOfStream = true; return ret; } -- (void)lowlevelWriteBuffer: (const void*)buffer +- (void)lowlevelWriteBuffer: (const void *)buffer length: (size_t)length { if (_fd == -1 || _atEndOfStream) @throw [OFWriteFailedException exceptionWithObject: self requestedLength: length];