bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSMutableData -replaceBytesInRange:withBytes doesn't follow OpenStep Spe


From: Tom Koelman
Subject: NSMutableData -replaceBytesInRange:withBytes doesn't follow OpenStep Specs
Date: Fri, 8 Jun 2001 11:26:37 +0200

I assume this was done on purpose, but nonetheless.
According to the OpenStep specs

- (void) replaceBytesInRange:(NSRange)aRange withBytes:(const void*)bytes
raises an NSRangeException if aRange is not within the range of the receiver's 
data

When aRange would extend the receiver however, GNUstep's base library  
adjusts the capacity of the NSMutableData.

Tom



reply via email to

[Prev in Thread] Current Thread [Next in Thread]