mingw stream improvements

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23254 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-08-11 13:27:10 +00:00
parent 32b9892e7b
commit 212c286e3f
6 changed files with 665 additions and 253 deletions

View file

@ -28,7 +28,7 @@
NSStream
|-- NSInputStream
| `--GSInputStream
| |-- GSMemoryInputStream
| |-- GSDataInputStream
| |-- GSFileInputStream
| `-- GSSocketInputStream
| |-- GSInetInputStream
@ -36,7 +36,8 @@
| `-- GSInet6InputStream
|-- NSOutputStream
| `--GSOutputStream
| |-- GSMemoryOutputStream
| |-- GSBufferOutputStream
| |-- GSDataOutputStream
| |-- GSFileOutputStream
| `-- GSSocketOutputStream
| |-- GSInetOutputStream
@ -144,7 +145,7 @@ IVARS
/**
* The concrete subclass of NSInputStream that reads from the memory
*/
@interface GSMemoryInputStream : GSInputStream
@interface GSDataInputStream : GSInputStream
{
@private
NSData *_data;
@ -158,14 +159,30 @@ IVARS
@end
/**
* The concrete subclass of NSOutputStream that writes to memory
* The concrete subclass of NSOutputStream that writes to a buffer
*/
@interface GSMemoryOutputStream : GSOutputStream
@interface GSBufferOutputStream : GSOutputStream
{
@private
uint8_t *_buffer;
unsigned _capacity;
unsigned long _pointer;
}
/**
* this is the bridge method for asynchronized operation. Do not call.
*/
- (void) _dispatch;
@end
/**
* The concrete subclass of NSOutputStream that writes to a variable sise buffer
*/
@interface GSDataOutputStream : GSOutputStream
{
@private
NSMutableData *_data;
unsigned long _pointer;
BOOL _fixedSize;
}
/**