mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Corrected spec for primitive methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10116 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
2ea1ef766a
commit
5ee5cd8963
1 changed files with 35 additions and 20 deletions
|
@ -71,16 +71,22 @@
|
|||
<method type="void*">
|
||||
<sel>mutableBytes</sel>
|
||||
<desc>
|
||||
Returns a pointer to the data storage of the receiver.<br />
|
||||
Modifications to the memory pointed to by this pointer will
|
||||
change the contents of the object. It is important that
|
||||
your code should not try to modify the memory beyond the
|
||||
number of bytes given by the <code>-length</code> method.<br />
|
||||
NB. if the object is released, or any method that changes its
|
||||
size or content is called, then the pointer previously returned
|
||||
by this method may cease to be valid.<br />
|
||||
This is a 'primitive' method ... you need to implement it
|
||||
if you write a subclass of NSMutableData.
|
||||
<p>
|
||||
Returns a pointer to the data storage of the receiver.<br />
|
||||
Modifications to the memory pointed to by this pointer will
|
||||
change the contents of the object. It is important that
|
||||
your code should not try to modify the memory beyond the
|
||||
number of bytes given by the <code>-length</code> method.
|
||||
</p>
|
||||
<p>
|
||||
NB. if the object is released, or any method that changes its
|
||||
size or content is called, then the pointer previously returned
|
||||
by this method may cease to be valid.
|
||||
</p>
|
||||
<p>
|
||||
This is a 'primitive' method ... you need to implement it
|
||||
if you write a subclass of NSMutableData.
|
||||
</p>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
|
@ -89,16 +95,16 @@
|
|||
<sel>withBytes:</sel>
|
||||
<arg type="const void*">bytes</arg>
|
||||
<desc>
|
||||
Replaces the bytes of data in the specified range with a
|
||||
copy of the new bytes supplied.<br />
|
||||
If the location of the range specified lies beyond the end
|
||||
of the data (<code>[self length] < range.location</code>)
|
||||
then a range exception is raised.<br />
|
||||
Otherwise, if the range specified extends beyond the end
|
||||
of the data, then the size of the data is increased to
|
||||
accomodate the new bytes.<br />
|
||||
This is a 'primitive' method ... you need to implement it
|
||||
if you write a subclass of NSMutableData.
|
||||
<p>
|
||||
Replaces the bytes of data in the specified range with a
|
||||
copy of the new bytes supplied.<br />
|
||||
If the location of the range specified lies beyond the end
|
||||
of the data (<code>[self length] < range.location</code>)
|
||||
then a range exception is raised.<br />
|
||||
Otherwise, if the range specified extends beyond the end
|
||||
of the data, then the size of the data is increased to
|
||||
accomodate the new bytes.<br />
|
||||
</p>
|
||||
</desc>
|
||||
</method>
|
||||
<method type="void">
|
||||
|
@ -163,6 +169,15 @@
|
|||
<sel>setLength:</sel>
|
||||
<arg type="unsigned int">length</arg>
|
||||
<desc>
|
||||
<p>
|
||||
Sets the length of the NSMutableData object.
|
||||
If the length is increased, the newly allocated data area
|
||||
is filled with zero bytes.
|
||||
</p>
|
||||
<p>
|
||||
This is a 'primitive' method ... you need to implement it
|
||||
if you write a subclass of NSMutableData.
|
||||
</p>
|
||||
</desc>
|
||||
</method>
|
||||
</class>
|
||||
|
|
Loading…
Reference in a new issue