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:
CaS 2002-02-22 11:13:45 +00:00
parent 29821cab66
commit 1eeb202116

View file

@ -404,6 +404,16 @@ GSIArraySetItemAtIndex(GSIArray array, GSIArrayItem item, unsigned index)
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
GSIArrayItemAtIndex(GSIArray array, unsigned index)
{