[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
- NSMutableData -replaceBytesInRange:withBytes doesn't follow OpenStep Specs,
Tom Koelman <=