00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043 #if !defined(INSTREAM_OL_GUARD)
00044 #define INSTREAM_OL_GUARD
00045
00046 #include <ObjectiveLib/Config.h>
00047 #if defined(OL_NO_OPENSTEP)
00048 #include <ObjectiveLib/ReferenceCountedStream.h>
00049 #if defined(OL_HAVE_INTTYPES_H)
00050 #include <inttypes.h>
00051 #else
00052 #include <stdint.h>
00053 #endif
00054 #else
00055 #include <ObjectiveLib/ObjectBase.h>
00056 #if defined(OL_GENERATING_DOCUMENTATION)
00057 #include <Foundation/NSCoder.h>
00058 #else
00059 #import <Foundation/NSCoder.h>
00060 #endif
00061
00062 @class NSData;
00063 #endif
00064
00065 @class OLText;
00066
00084 #if defined(OL_NO_OPENSTEP)
00085 @interface OLInStream : OLReferenceCountedStream
00086 #else
00087 @interface OLInStream : NSCoder
00088 #endif
00089 {
00090 }
00091
00098 - (void) close;
00099
00109 - (BOOL) readBool;
00110
00120 - (uint8_t) readByte;
00121
00133 - (unsigned) readBytes: (uint8_t*)buffer count: (unsigned)max;
00134
00144 - (double) readDouble;
00145
00155 - (float) readFloat;
00156
00169 - (unsigned) readInt;
00170
00180 - (uint16_t) readInt16;
00181
00191 - (uint32_t) readInt32;
00192
00202 - (uint64_t) readInt64;
00203
00212 - (SEL) readSelector;
00213
00214 #if !defined(OL_NO_OPENSTEP)
00215
00220
00227 - (BOOL) allowsKeyedCoding;
00228
00245 - (void*) decodeBytesWithReturnedLength: (unsigned*)numBytes;
00246
00260 - (NSData*) decodeDataObject;
00261
00268 - (id) decodeObject;
00269
00298 - (void) decodeValueOfObjCType: (const char*)valueType at: (void*)address;
00299
00300 #endif
00301
00302 @end
00303
00304 #endif