mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Merged 1.0 branch into main.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9548 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
04be1df225
commit
9628d301e9
42 changed files with 1313 additions and 514 deletions
|
@ -91,11 +91,31 @@
|
|||
<h3><a name ="method-8">mutableBytes</a></h3>
|
||||
- (void*) <b>mutableBytes</b>;<br>
|
||||
|
||||
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.
|
||||
|
||||
<hr>
|
||||
<h3><a name ="method-9">replaceBytesInRange:withBytes:</a></h3>
|
||||
- (void) <b>replaceBytesInRange:</b> (NSRange)range <b>withBytes:</b> (const void*)bytes;<br>
|
||||
|
||||
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.
|
||||
|
||||
<hr>
|
||||
<h3><a name ="method-10">resetBytesInRange:</a></h3>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue