mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +00:00
Provide pointer access into array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12646 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7bd047b3b1
commit
4568e4bab9
1 changed files with 10 additions and 0 deletions
|
@ -404,6 +404,16 @@ GSIArraySetItemAtIndex(GSIArray array, GSIArrayItem item, unsigned index)
|
||||||
GSI_ARRAY_RELEASE(array, tmp);
|
GSI_ARRAY_RELEASE(array, tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* For direct access ... unsafe if you change the array in any way while
|
||||||
|
* examining the contents of this buffer.
|
||||||
|
*/
|
||||||
|
static INLINE GSIArrayItem *
|
||||||
|
GSIArrayItems(GSIArray array)
|
||||||
|
{
|
||||||
|
return array->ptr;
|
||||||
|
}
|
||||||
|
|
||||||
static INLINE GSIArrayItem
|
static INLINE GSIArrayItem
|
||||||
GSIArrayItemAtIndex(GSIArray array, unsigned index)
|
GSIArrayItemAtIndex(GSIArray array, unsigned index)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue