2000-03-05 17:39:33 +00:00
|
|
|
<html><head>
|
|
|
|
<title>NSMutableData</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<a href="NSMutableCharacterSet.html">[Previous]</a>
|
2000-04-10 05:32:04 +00:00
|
|
|
<a href="Base.html">[Up]</a>
|
2000-03-05 17:39:33 +00:00
|
|
|
<a href="NSMutableDictionary.html">[Next]</a>
|
|
|
|
<h1>NSMutableData</h1>
|
|
|
|
<h3>Authors</h3>
|
|
|
|
<dl>
|
|
|
|
<dt><a href="http://www.gnustep.org/developers/whoiswho.html">Richard Frith-Macdonald</a>
|
|
|
|
<dd>
|
|
|
|
</dl>
|
|
|
|
<p>Version: 0.1</p>
|
|
|
|
<p>Date: 28 February, 2000</p>
|
|
|
|
<h2><a name="cont-0">NSMutableData</a></h2>
|
|
|
|
<h2><a name="NSMutableData">NSMutableData</a></h2>
|
|
|
|
<p><b>Declared in:</b> Foundation/NSData.h</p>
|
|
|
|
<p><b>Conforms to:</b> NSCoding
|
|
|
|
</p>
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
|
|
<ul>
|
|
|
|
<li><a href="NSMutableData.html#method-0">+allocWithZone:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-1">+dataWithCapacity:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-2">+dataWithLength:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-3">-appendBytes:length:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-4">-appendData:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-5">-increaseLengthBy:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-6">-initWithCapacity:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-7">-initWithLength:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-8">-mutableBytes</a>
|
|
|
|
<li><a href="NSMutableData.html#method-9">-replaceBytesInRange:withBytes:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-10">-resetBytesInRange:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-11">-serializeAlignedBytesLength:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-12">-serializeDataAt:ofObjCType:context:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-13">-serializeInt:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-14">-serializeInt:atIndex:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-15">-serializeInts:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-16">-serializeInts:count:atIndex:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-17">-setData:</a>
|
|
|
|
<li><a href="NSMutableData.html#method-18">-setLength:</a>
|
|
|
|
</ul>
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-0">allocWithZone:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
+ (id) <b>allocWithZone:</b> (NSZone*)zone;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-1">dataWithCapacity:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
+ (id) <b>dataWithCapacity:</b> (unsigned int)aNumItems;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-2">dataWithLength:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
+ (id) <b>dataWithLength:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-3">appendBytes:length:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>appendBytes:</b> (const void*)bytes <b>length:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-4">appendData:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>appendData:</b> (NSData*)otherData;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-5">increaseLengthBy:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>increaseLengthBy:</b> (unsigned int)extraLength;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-6">initWithCapacity:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (id) <b>initWithCapacity:</b> (unsigned int)capacity;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-7">initWithLength:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (id) <b>initWithLength:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-8">mutableBytes</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void*) <b>mutableBytes</b>;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-9">replaceBytesInRange:withBytes:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>replaceBytesInRange:</b> (NSRange)range <b>withBytes:</b> (const void*)bytes;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-10">resetBytesInRange:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>resetBytesInRange:</b> (NSRange)range;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-11">serializeAlignedBytesLength:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeAlignedBytesLength:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-12">serializeDataAt:ofObjCType:context:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeDataAt:</b> (const void*)data <b>ofObjCType:</b> (const char*)type <b>context:</b> (id<NSObjCTypeSerializationCallBack>)callback;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-13">serializeInt:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeInt:</b> (int)value;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-14">serializeInt:atIndex:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeInt:</b> (int)value <b>atIndex:</b> (unsigned int)index;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-15">serializeInts:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeInts:</b> (int*)intBuffer;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-16">serializeInts:count:atIndex:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>serializeInts:</b> (int*)intBuffer <b>count:</b> (unsigned int)numInts <b>atIndex:</b> (unsigned int)index;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-17">setData:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>setData:</b> (NSData*)aData;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<h2><a name="method-18">setLength:</a></h2>
|
2000-07-04 19:53:39 +00:00
|
|
|
- (void) <b>setLength:</b> (unsigned int)length;<br>
|
2000-03-05 17:39:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|