mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 12:16:40 +00:00
Updates for 10.5 API changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
845a701069
commit
24d43481a8
138 changed files with 2094 additions and 1536 deletions
|
@ -104,7 +104,7 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (int) read: (uint8_t *)buffer maxLength: (unsigned int)len
|
||||
- (NSInteger) read: (uint8_t *)buffer maxLength: (NSUInteger)len
|
||||
{
|
||||
int readLen;
|
||||
|
||||
|
@ -139,7 +139,7 @@
|
|||
return readLen;
|
||||
}
|
||||
|
||||
- (BOOL) getBuffer: (uint8_t **)buffer length: (unsigned int *)len
|
||||
- (BOOL) getBuffer: (uint8_t **)buffer length: (NSUInteger *)len
|
||||
{
|
||||
return NO;
|
||||
}
|
||||
|
@ -240,7 +240,7 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
- (int) write: (const uint8_t *)buffer maxLength: (unsigned int)len
|
||||
- (NSInteger) write: (const uint8_t *)buffer maxLength: (NSUInteger)len
|
||||
{
|
||||
int writeLen;
|
||||
|
||||
|
@ -349,7 +349,7 @@
|
|||
@implementation NSStream
|
||||
|
||||
+ (void) getStreamsToHost: (NSHost *)host
|
||||
port: (int)port
|
||||
port: (NSInteger)port
|
||||
inputStream: (NSInputStream **)inputStream
|
||||
outputStream: (NSOutputStream **)outputStream
|
||||
{
|
||||
|
@ -501,7 +501,7 @@
|
|||
return AUTORELEASE([[GSFileInputStream alloc] initWithFileAtPath: path]);
|
||||
}
|
||||
|
||||
- (BOOL) getBuffer: (uint8_t **)buffer length: (unsigned int *)len
|
||||
- (BOOL) getBuffer: (uint8_t **)buffer length: (NSUInteger *)len
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return NO;
|
||||
|
@ -525,7 +525,7 @@
|
|||
return [[GSFileInputStream alloc] initWithFileAtPath: path];
|
||||
}
|
||||
|
||||
- (int) read: (uint8_t *)buffer maxLength: (unsigned int)len
|
||||
- (NSInteger) read: (uint8_t *)buffer maxLength: (NSUInteger)len
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return -1;
|
||||
|
@ -535,7 +535,7 @@
|
|||
|
||||
@implementation NSOutputStream
|
||||
|
||||
+ (id) outputStreamToBuffer: (uint8_t *)buffer capacity: (unsigned int)capacity
|
||||
+ (id) outputStreamToBuffer: (uint8_t *)buffer capacity: (NSUInteger)capacity
|
||||
{
|
||||
return AUTORELEASE([[GSBufferOutputStream alloc]
|
||||
initToBuffer: buffer capacity: capacity]);
|
||||
|
@ -558,7 +558,7 @@
|
|||
return NO;
|
||||
}
|
||||
|
||||
- (id) initToBuffer: (uint8_t *)buffer capacity: (unsigned int)capacity
|
||||
- (id) initToBuffer: (uint8_t *)buffer capacity: (NSUInteger)capacity
|
||||
{
|
||||
RELEASE(self);
|
||||
return [[GSBufferOutputStream alloc] initToBuffer: buffer capacity: capacity];
|
||||
|
@ -577,7 +577,7 @@
|
|||
return [[GSDataOutputStream alloc] init];
|
||||
}
|
||||
|
||||
- (int) write: (const uint8_t *)buffer maxLength: (unsigned int)len
|
||||
- (NSInteger) write: (const uint8_t *)buffer maxLength: (NSUInteger)len
|
||||
{
|
||||
[self subclassResponsibility: _cmd];
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue