31 #import <Foundation/Foundation.h>
35 NS_ASSUME_NONNULL_BEGIN
51 @property(nonatomic, readonly) NSUInteger
count;
56 + (instancetype)
array;
65 + (instancetype)arrayWithValue:(int32_t)
value;
84 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
99 - (instancetype)initWithValues:(
const int32_t [__nullable])
values
118 - (instancetype)initWithCapacity:(NSUInteger)
count;
127 - (int32_t)valueAtIndex:(NSUInteger)
index;
137 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
148 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
149 usingBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
187 - (
void)replaceValueAtIndex:(NSUInteger)
index withValue:(int32_t)
value;
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;
237 + (instancetype)arrayWithValue:(uint32_t)
value;
256 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
271 - (instancetype)initWithValues:(
const uint32_t [__nullable])
values
290 - (instancetype)initWithCapacity:(NSUInteger)
count;
299 - (uint32_t)valueAtIndex:(NSUInteger)
index;
309 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(uint32_t
value, NSUInteger
idx, BOOL *stop))block;
320 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
321 usingBlock:(
void (NS_NOESCAPE ^)(uint32_t
value, NSUInteger
idx, BOOL *stop))block;
359 - (
void)replaceValueAtIndex:(NSUInteger)
index withValue:(uint32_t)
value;
366 - (
void)removeValueAtIndex:(NSUInteger)
index;
379 - (
void)exchangeValueAtIndex:(NSUInteger)idx1
380 withValueAtIndex:(NSUInteger)idx2;
395 @property(nonatomic, readonly) NSUInteger
count;
400 + (instancetype)
array;
409 + (instancetype)arrayWithValue:(int64_t)
value;
428 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
443 - (instancetype)initWithValues:(
const int64_t [__nullable])
values
462 - (instancetype)initWithCapacity:(NSUInteger)
count;
471 - (int64_t)valueAtIndex:(NSUInteger)
index;
481 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(int64_t
value, NSUInteger
idx, BOOL *stop))block;
492 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
493 usingBlock:(
void (NS_NOESCAPE ^)(int64_t
value, NSUInteger
idx, BOOL *stop))block;
531 - (
void)replaceValueAtIndex:(NSUInteger)
index withValue:(int64_t)
value;
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;
581 + (instancetype)arrayWithValue:(uint64_t)
value;
600 + (instancetype)arrayWithCapacity:(NSUInteger)
count;
615 - (instancetype)initWithValues:(
const uint64_t [__nullable])
values
634 - (instancetype)initWithCapacity:(NSUInteger)
count;
643 - (uint64_t)valueAtIndex:(NSUInteger)
index;
653 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(uint64_t
value, NSUInteger
idx, BOOL *stop))block;
664 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
665 usingBlock:(
void (NS_NOESCAPE ^)(uint64_t
value, NSUInteger
idx, BOOL *stop))block;
703 - (
void)replaceValueAtIndex:(NSUInteger)
index withValue:(uint64_t)
value;
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
837 usingBlock:(
void (NS_NOESCAPE ^)(
float value, NSUInteger
idx, BOOL *stop))block;
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
1009 usingBlock:(
void (NS_NOESCAPE ^)(
double value, NSUInteger
idx, BOOL *stop))block;
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;
1159 - (BOOL)valueAtIndex:(NSUInteger)
index;
1169 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(BOOL
value, NSUInteger
idx, BOOL *stop))block;
1180 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1181 usingBlock:(
void (NS_NOESCAPE ^)(BOOL
value, NSUInteger
idx, BOOL *stop))block;
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;
1284 rawValue:(int32_t)value;
1294 + (instancetype)arrayWithValueArray:(
GPBEnumArray *)array;
1306 capacity:(NSUInteger)count;
1316 NS_DESIGNATED_INITIALIZER;
1328 rawValues:(
const int32_t [__nullable])values
1329 count:(NSUInteger)count;
1338 - (instancetype)initWithValueArray:(
GPBEnumArray *)array;
1349 capacity:(NSUInteger)count;
1362 - (int32_t)valueAtIndex:(NSUInteger)index;
1372 - (
void)enumerateValuesWithBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
1383 - (
void)enumerateValuesWithOptions:(NSEnumerationOptions)opts
1384 usingBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
1396 - (int32_t)rawValueAtIndex:(NSUInteger)index;
1406 - (
void)enumerateRawValuesWithBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
1417 - (
void)enumerateRawValuesWithOptions:(NSEnumerationOptions)opts
1418 usingBlock:(
void (NS_NOESCAPE ^)(int32_t
value, NSUInteger
idx, BOOL *stop))block;
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