101 + (
id)JSONEncoderWithStream:(
NXStream *)stream indent:(unsigned)indent;
107 + (
id)JSONDecoderWithStream:(
NXStream *)stream;
113 + (
id)JSONDecoderWithObject:(
id)object;
118 + (
id)binaryEncoderWithStream:(
NXStream *)stream;
124 + (
id)binaryDecoderWithStream:(
NXStream *)stream;
140 + (
id)decodeObjectOfClass:(
Class)cls
168 - (void)failWithReason:(
NXString *)reason;
174 - (void)setMaximumDepth:(
unsigned)depth;
181 - (void)setMaximumLength:(
size_t)length;
189 - (
BOOL)encodeInt32:(int32_t)value forKey:(
NXString *)key;
190 - (
BOOL)encodeInt64:(int64_t)value forKey:(
NXString *)key;
191 - (
BOOL)encodeUnsignedInt32:(uint32_t)value forKey:(
NXString *)key;
192 - (
BOOL)encodeUnsignedInt64:(uint64_t)value forKey:(
NXString *)key;
193 - (
BOOL)encodeFloat32:(
float)value forKey:(
NXString *)key;
194 - (
BOOL)encodeFloat64:(
double)value forKey:(
NXString *)key;
221 - (int32_t)decodeInt32ForKey:(
NXString *)key;
222 - (int64_t)decodeInt64ForKey:(
NXString *)key;
223 - (uint32_t)decodeUnsignedInt32ForKey:(
NXString *)key;
224 - (uint64_t)decodeUnsignedInt64ForKey:(
NXString *)key;
225 - (float)decodeFloat32ForKey:(
NXString *)key;
226 - (double)decodeFloat64ForKey:(
NXString *)key;
A stream of bytes, which can be read or written.
Objects found by keys, which can be changed.
Objects which can be written to an archive and read back.
BOOL isEncoding()
Returns YES if it writes, or NO if it reads.
BOOL failed()
Returns YES if there's been an error.
bool BOOL
A Boolean value.
An ordered list of objects, which can be changed.
struct objc_class * Class
A pointer to a class definition.
The base class for objects in the Foundation framework.
Values in order, little-endian, with a hash of each class.
NXString * failure()
Returns what the first error was, or nil if there hasn't been one.
struct objc_object * id
A pointer to an instance of a class.
NXArchiveFormat
The formats of an archive.
JSON, with keys, and no classes unless they differ.
Writes objects out as JSON or binary, and reads them back.
NXArchiveFormat format()
Returns the format.