Instance Methods | Class Methods | Protected Attributes | Properties | List of all members
GPBInt64Array Class Reference

#import <GPBArray.h>

Inheritance diagram for GPBInt64Array:
Inheritance graph
[legend]

Instance Methods

(void) - addValue:
 
(void) - addValue:
 
(void) - addValues:count:
 
(void) - addValues:count:
 
(void) - addValuesFromArray:
 
(void) - addValuesFromArray:
 
(void) - enumerateValuesWithBlock:
 
(void) - enumerateValuesWithBlock:
 
(void) - enumerateValuesWithOptions:usingBlock:
 
(void) - enumerateValuesWithOptions:usingBlock:
 
(void) - exchangeValueAtIndex:withValueAtIndex:
 
(void) - exchangeValueAtIndex:withValueAtIndex:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithCapacity:
 
(instancetype) - initWithValueArray:
 
(instancetype) - initWithValueArray:
 
(instancetype) - initWithValues:count:
 
(instancetype) - initWithValues:count:
 
(void) - insertValue:atIndex:
 
(void) - insertValue:atIndex:
 
(instancetype) - NS_DESIGNATED_INITIALIZER
 
(instancetype) - NS_DESIGNATED_INITIALIZER
 
(void) - removeAll
 
(void) - removeAll
 
(void) - removeValueAtIndex:
 
(void) - removeValueAtIndex:
 
(void) - replaceValueAtIndex:withValue:
 
(void) - replaceValueAtIndex:withValue:
 
(int64_t- valueAtIndex:
 
(int64_t- valueAtIndex:
 

Class Methods

(instancetype) + array
 
(instancetype) + array
 
(instancetype) + arrayWithCapacity:
 
(instancetype) + arrayWithCapacity:
 
(instancetype) + arrayWithValue:
 
(instancetype) + arrayWithValue:
 
(instancetype) + arrayWithValueArray:
 
(instancetype) + arrayWithValueArray:
 

Protected Attributes

package GPB_UNSAFE_UNRETAINED GPBMessage_autocreator
 

Properties

NSUInteger count
 

Detailed Description

Class used for repeated fields of int64_t values. This performs better than boxing into NSNumbers in NSArrays.

Note
This class is not meant to be subclassed.

Definition at line 392 of file bloaty/third_party/protobuf/objectivec/GPBArray.h.

Method Documentation

◆ addValue: [1/2]

- (void) addValue: (int64_t value

Adds a value to this array.

Parameters
valueThe value to add to this array.

◆ addValue: [2/2]

- (void) addValue: (int64_t value

Adds a value to this array.

Parameters
valueThe value to add to this array.

◆ addValues:count: [1/2]

- (void) addValues: (const int64_t values[__nullable]
count: (NSUInteger)  count 

Adds values to this array.

Parameters
valuesThe values to add to this array.
countThe number of elements to add.

◆ addValues:count: [2/2]

- (void) addValues: (const int64_t values[__nullable]
count: (NSUInteger)  count 

Adds values to this array.

Parameters
valuesThe values to add to this array.
countThe number of elements to add.

◆ addValuesFromArray: [1/2]

- (void) addValuesFromArray: (GPBInt64Array *)  array

Adds the values from the given array to this array.

Parameters
arrayThe array containing the elements to add to this array.

◆ addValuesFromArray: [2/2]

- (void) addValuesFromArray: (GPBInt64Array *)  array

Adds the values from the given array to this array.

Parameters
arrayThe array containing the elements to add to this array.

◆ array [1/2]

+ (instancetype) array
Returns
A newly instanced and empty GPBInt64Array.

◆ array [2/2]

+ (instancetype) array
Returns
A newly instanced and empty GPBInt64Array.

◆ arrayWithCapacity: [1/2]

+ (instancetype) arrayWithCapacity: (NSUInteger)  count

Creates and initializes a GPBInt64Array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly instanced GPBInt64Array with a capacity of count.

◆ arrayWithCapacity: [2/2]

+ (instancetype) arrayWithCapacity: (NSUInteger)  count

Creates and initializes a GPBInt64Array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly instanced GPBInt64Array with a capacity of count.

◆ arrayWithValue: [1/2]

+ (instancetype) arrayWithValue: (int64_t value

Creates and initializes a GPBInt64Array with the single element given.

Parameters
valueThe value to be placed in the array.
Returns
A newly instanced GPBInt64Array with value in it.

◆ arrayWithValue: [2/2]

+ (instancetype) arrayWithValue: (int64_t value

Creates and initializes a GPBInt64Array with the single element given.

Parameters
valueThe value to be placed in the array.
Returns
A newly instanced GPBInt64Array with value in it.

◆ arrayWithValueArray: [1/2]

+ (instancetype) arrayWithValueArray: (GPBInt64Array *)  array

Creates and initializes a GPBInt64Array with the contents of the given array.

Parameters
arrayArray with the contents to be put into the new array.
Returns
A newly instanced GPBInt64Array with the contents of array.

◆ arrayWithValueArray: [2/2]

+ (instancetype) arrayWithValueArray: (GPBInt64Array *)  array

Creates and initializes a GPBInt64Array with the contents of the given array.

Parameters
arrayArray with the contents to be put into the new array.
Returns
A newly instanced GPBInt64Array with the contents of array.

◆ enumerateValuesWithBlock: [1/2]

- (void) enumerateValuesWithBlock: (void(NS_NOESCAPE ^ block)(int64_t value, NSUInteger idx, BOOL *stop)) 

Enumerates the values on this array with the given block.

Parameters
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithBlock: [2/2]

- (void) enumerateValuesWithBlock: (void(NS_NOESCAPE ^ block)(int64_t value, NSUInteger idx, BOOL *stop)) 

Enumerates the values on this array with the given block.

Parameters
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithOptions:usingBlock: [1/2]

- (void) enumerateValuesWithOptions: (NSEnumerationOptions)  opts
usingBlock: (void(NS_NOESCAPE ^ block)(int64_t value, NSUInteger idx, BOOL *stop))   

Enumerates the values on this array with the given block.

Parameters
optsOptions to control the enumeration.
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ enumerateValuesWithOptions:usingBlock: [2/2]

- (void) enumerateValuesWithOptions: (NSEnumerationOptions)  opts
usingBlock: (void(NS_NOESCAPE ^ block)(int64_t value, NSUInteger idx, BOOL *stop))   

Enumerates the values on this array with the given block.

Parameters
optsOptions to control the enumeration.
blockThe block to enumerate with. value: The current value being enumerated. idx: The index of the current value. stop: A pointer to a boolean that when set stops the enumeration.

◆ exchangeValueAtIndex:withValueAtIndex: [1/2]

- (void) exchangeValueAtIndex: (NSUInteger)  idx1
withValueAtIndex: (NSUInteger)  idx2 

Exchanges the values between the given indexes.

Parameters
idx1The index of the first element to exchange.
idx2The index of the second element to exchange.

◆ exchangeValueAtIndex:withValueAtIndex: [2/2]

- (void) exchangeValueAtIndex: (NSUInteger)  idx1
withValueAtIndex: (NSUInteger)  idx2 

Exchanges the values between the given indexes.

Parameters
idx1The index of the first element to exchange.
idx2The index of the second element to exchange.

◆ initWithCapacity: [1/2]

- (instancetype) initWithCapacity: (NSUInteger)  count

Initializes the array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly initialized GPBInt64Array with a capacity of count.

◆ initWithCapacity: [2/2]

- (instancetype) initWithCapacity: (NSUInteger)  count

Initializes the array with the given capacity.

Parameters
countThe capacity needed for the array.
Returns
A newly initialized GPBInt64Array with a capacity of count.

◆ initWithValueArray: [1/2]

- (instancetype) initWithValueArray: (GPBInt64Array *)  array

Initializes the array, copying the given values.

Parameters
arrayAn array with the values to put inside this array.
Returns
A newly initialized GPBInt64Array with a copy of the values.

◆ initWithValueArray: [2/2]

- (instancetype) initWithValueArray: (GPBInt64Array *)  array

Initializes the array, copying the given values.

Parameters
arrayAn array with the values to put inside this array.
Returns
A newly initialized GPBInt64Array with a copy of the values.

◆ initWithValues:count: [1/2]

- (instancetype) initWithValues: (const int64_t values[__nullable]
count: (NSUInteger)  count 

Initializes the array, copying the given values.

Parameters
valuesAn array with the values to put inside this array.
countThe number of elements to copy into the array.
Returns
A newly initialized GPBInt64Array with a copy of the values.

◆ initWithValues:count: [2/2]

- (instancetype) initWithValues: (const int64_t values[__nullable]
count: (NSUInteger)  count 

Initializes the array, copying the given values.

Parameters
valuesAn array with the values to put inside this array.
countThe number of elements to copy into the array.
Returns
A newly initialized GPBInt64Array with a copy of the values.

◆ insertValue:atIndex: [1/2]

- (void) insertValue: (int64_t value
atIndex: (NSUInteger)  index 

Inserts a value into the given position.

Parameters
valueThe value to add to this array.
indexThe index into which to insert the value.

◆ insertValue:atIndex: [2/2]

- (void) insertValue: (int64_t value
atIndex: (NSUInteger)  index 

Inserts a value into the given position.

Parameters
valueThe value to add to this array.
indexThe index into which to insert the value.

◆ NS_DESIGNATED_INITIALIZER [1/2]

- (instancetype) NS_DESIGNATED_INITIALIZER
Returns
A newly initialized and empty GPBInt64Array.

◆ NS_DESIGNATED_INITIALIZER [2/2]

- (instancetype) NS_DESIGNATED_INITIALIZER
Returns
A newly initialized and empty GPBInt64Array.

◆ removeAll [1/2]

- (void) removeAll

Removes all the values from this array.

◆ removeAll [2/2]

- (void) removeAll

Removes all the values from this array.

◆ removeValueAtIndex: [1/2]

- (void) removeValueAtIndex: (NSUInteger)  index

Removes the value at the given index.

Parameters
indexThe index of the value to remove.

◆ removeValueAtIndex: [2/2]

- (void) removeValueAtIndex: (NSUInteger)  index

Removes the value at the given index.

Parameters
indexThe index of the value to remove.

◆ replaceValueAtIndex:withValue: [1/2]

- (void) replaceValueAtIndex: (NSUInteger)  index
withValue: (int64_t value 

Replaces the value at the given index with the given value.

Parameters
indexThe index for which to replace the value.
valueThe value to replace with.

◆ replaceValueAtIndex:withValue: [2/2]

- (void) replaceValueAtIndex: (NSUInteger)  index
withValue: (int64_t value 

Replaces the value at the given index with the given value.

Parameters
indexThe index for which to replace the value.
valueThe value to replace with.

◆ valueAtIndex: [1/2]

- (int64_t) valueAtIndex: (NSUInteger)  index

Gets the value at the given index.

Parameters
indexThe index of the value to get.
Returns
The value at the given index.

◆ valueAtIndex: [2/2]

- (int64_t) valueAtIndex: (NSUInteger)  index

Gets the value at the given index.

Parameters
indexThe index of the value to get.
Returns
The value at the given index.

Member Data Documentation

◆ _autocreator

- (package GPB_UNSAFE_UNRETAINED GPBMessage *) _autocreator
protected

Property Documentation

◆ count

- (NSUInteger) count
readnonatomicassign

The number of elements contained in the array.

Definition at line 395 of file bloaty/third_party/protobuf/objectivec/GPBArray.h.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:45