mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +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
29821cab66
commit
1eeb202116
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);
|
||||
}
|
||||
|
||||
/*
|
||||
* 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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue