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(OBJECTINSTREAM_OL_GUARD)
00044 #define OBJECTINSTREAM_OL_GUARD
00045
00046 #include <ObjectiveLib/LayeredInStream.h>
00047
00048 @class OLHashMap;
00049 @class OLSharedPointerTable;
00050
00063 @interface OLObjectInStream : OLLayeredInStream
00064 {
00065 @protected
00069 OLHashMap* classes;
00070
00074 OLSharedPointerTable* sharedPointers;
00075
00079 uint32_t systemVersion;
00080 }
00081
00089 + (id) streamWithInStream: (OLInStream*)underStream;
00090
00094
00102 - (id) initWithInStream: (OLInStream*)underStream;
00103 #if !defined(OL_NO_OPENSTEP)
00104 - (void) dealloc;
00105 #endif
00106
00107
00120 - (unsigned) classVersion: (const char*)className;
00121 #if defined(OL_NO_OPENSTEP)
00122 - (void) freeStreamResources;
00123 #endif
00124 - (BOOL) readBool;
00125
00134 - (Class) readClass;
00135 - (double) readDouble;
00136 - (float) readFloat;
00137
00148 - (void) readHeader;
00149 - (unsigned) readInt;
00150 - (uint16_t) readInt16;
00151 - (uint32_t) readInt32;
00152 - (uint64_t) readInt64;
00153
00169 - (id) readObject;
00170
00177 - (unsigned) systemVersion;
00178
00179 #if !defined(OL_NO_OPENSTEP)
00180
00185
00186 - (void*) decodeBytesWithReturnedLength: (unsigned*)numBytes;
00187 - (NSData*) decodeDataObject;
00188
00195 - (id) decodeObject;
00196
00224 - (void) decodeValueOfObjCType: (const char*)valueType at: (void*)address;
00225
00238 - (unsigned) versionForClassName: (NSString*)className;
00239
00240 #endif
00241
00242 @end
00243
00244 #endif