31 #import <Foundation/Foundation.h>
35 NS_ASSUME_NONNULL_BEGIN
51 @property(nonatomic, readonly) NSUInteger
count;
56 + (instancetype)
array;
84 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
99 - (instancetype)initWithValues:(
const int32_t [__nullable])
values
118 - (instancetype)initWithCapacity:(NSUInteger)
count;
148 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
194 - (void)removeValueAtIndex:(NSUInteger)
index;
207 - (void)exchangeValueAtIndex:(NSUInteger)idx1
208 withValueAtIndex:(NSUInteger)idx2;
212 #pragma mark - UInt32
223 @property(nonatomic, readonly) NSUInteger
count;
228 + (instancetype)
array;
256 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
271 - (instancetype)initWithValues:(
const uint32_t [__nullable])
values
290 - (instancetype)initWithCapacity:(NSUInteger)
count;
320 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
366 - (void)removeValueAtIndex:(NSUInteger)
index;
379 - (void)exchangeValueAtIndex:(NSUInteger)idx1
380 withValueAtIndex:(NSUInteger)idx2;
395 @property(nonatomic, readonly) NSUInteger
count;
400 + (instancetype)
array;
428 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
443 - (instancetype)initWithValues:(
const int64_t [__nullable])
values
462 - (instancetype)initWithCapacity:(NSUInteger)
count;
492 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
538 - (void)removeValueAtIndex:(NSUInteger)
index;
551 - (void)exchangeValueAtIndex:(NSUInteger)idx1
552 withValueAtIndex:(NSUInteger)idx2;
556 #pragma mark - UInt64
567 @property(nonatomic, readonly) NSUInteger
count;
572 + (instancetype)
array;
600 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
615 - (instancetype)initWithValues:(
const uint64_t [__nullable])
values
634 - (instancetype)initWithCapacity:(NSUInteger)
count;
664 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
710 - (void)removeValueAtIndex:(NSUInteger)
index;
723 - (void)exchangeValueAtIndex:(NSUInteger)idx1
724 withValueAtIndex:(NSUInteger)idx2;
739 @property(nonatomic, readonly) NSUInteger
count;
744 + (instancetype)
array;
753 + (instancetype)arrayWithValue:(
float)
value;
772 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
787 - (instancetype)initWithValues:(
const float [__nullable])
values
806 - (instancetype)initWithCapacity:(NSUInteger)
count;
815 - (float)valueAtIndex:(NSUInteger)
index;
825 - (void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(
float value, NSUInteger
idx,
BOOL *
stop))
block;
836 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
844 - (void)addValue:(
float)
value;
867 - (void)insertValue:(
float)
value atIndex:(NSUInteger)
index;
875 - (void)replaceValueAtIndex:(NSUInteger)
index withValue:(float)
value;
882 - (void)removeValueAtIndex:(NSUInteger)
index;
895 - (void)exchangeValueAtIndex:(NSUInteger)idx1
896 withValueAtIndex:(NSUInteger)idx2;
900 #pragma mark - Double
911 @property(nonatomic, readonly) NSUInteger
count;
916 + (instancetype)
array;
925 + (instancetype)arrayWithValue:(
double)
value;
944 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
959 - (instancetype)initWithValues:(
const double [__nullable])
values
978 - (instancetype)initWithCapacity:(NSUInteger)
count;
987 - (double)valueAtIndex:(NSUInteger)
index;
997 - (void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(
double value, NSUInteger
idx,
BOOL *
stop))
block;
1008 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
1016 - (void)addValue:(
double)
value;
1024 - (void)addValues:(
const double [__nullable])
values count:(NSUInteger)
count;
1039 - (void)insertValue:(
double)
value atIndex:(NSUInteger)
index;
1047 - (void)replaceValueAtIndex:(NSUInteger)
index withValue:(double)
value;
1054 - (void)removeValueAtIndex:(NSUInteger)
index;
1067 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1068 withValueAtIndex:(NSUInteger)idx2;
1083 @property(nonatomic, readonly) NSUInteger
count;
1088 + (instancetype)
array;
1097 + (instancetype)arrayWithValue:(
BOOL)
value;
1116 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
1131 - (instancetype)initWithValues:(
const BOOL [__nullable])
values
1150 - (instancetype)initWithCapacity:(NSUInteger)
count;
1180 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)
opts
1219 - (void)replaceValueAtIndex:(NSUInteger)
index withValue:(
BOOL)
value;
1226 - (void)removeValueAtIndex:(NSUInteger)
index;
1239 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1240 withValueAtIndex:(NSUInteger)idx2;
1255 @property(nonatomic, readonly) NSUInteger
count;
1262 + (instancetype)
array;
1294 + (instancetype)arrayWithValueArray:(
GPBEnumArray *)array;
1306 capacity:(NSUInteger)count;
1316 NS_DESIGNATED_INITIALIZER;
1329 count:(NSUInteger)count;
1338 - (instancetype)initWithValueArray:(
GPBEnumArray *)array;
1349 capacity:(NSUInteger)count;
1362 - (
int32_t)valueAtIndex:(NSUInteger)index;
1383 - (void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1396 - (
int32_t)rawValueAtIndex:(NSUInteger)index;
1417 - (void)enumerateRawValuesWithOptions:(NSEnumerationOptions)opts
1430 - (void)addValue:(
int32_t)value;
1438 - (void)addValues:(
const int32_t [__nullable])values count:(NSUInteger)count;
1447 - (void)insertValue:(
int32_t)value atIndex:(NSUInteger)index;
1455 - (void)replaceValueAtIndex:(NSUInteger)index withValue:(
int32_t)value;
1468 - (void)addRawValue:(
int32_t)value;
1489 - (void)addRawValues:(
const int32_t [__nullable])values count:(NSUInteger)count;
1500 - (void)insertRawValue:(
int32_t)value atIndex:(NSUInteger)index;
1511 - (void)replaceValueAtIndex:(NSUInteger)index withRawValue:(
int32_t)value;
1520 - (void)removeValueAtIndex:(NSUInteger)index;
1533 - (void)exchangeValueAtIndex:(NSUInteger)idx1
1534 withValueAtIndex:(NSUInteger)idx2;
1540 NS_ASSUME_NONNULL_END