mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
32b9892e7b
commit
212c286e3f
6 changed files with 665 additions and 253 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue