mirror of
https://github.com/thes3m/XNI
synced 2024-12-26 13:26:06 +01:00
29 lines
541 B
Objective-C
29 lines
541 B
Objective-C
//
|
|
// XniAdaptiveArray.h
|
|
// XNI
|
|
//
|
|
// Created by Matej Jan on 21.9.10.
|
|
// Copyright 2010 Retronator. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
@interface XniAdaptiveArray : NSObject {
|
|
int capacity;
|
|
int itemSize;
|
|
void *array;
|
|
int count;
|
|
}
|
|
|
|
- (id) initWithItemSize:(int)theItemSize initialCapacity:(int)theCapacity;
|
|
|
|
@property (nonatomic, readonly) int itemSize;
|
|
@property (nonatomic, readonly) void *array;
|
|
@property (nonatomic, readonly) int count;
|
|
|
|
- (void) addItem:(void*)item;
|
|
- (void) clear;
|
|
|
|
@end
|