Classes | Typedefs | Enumerations | Functions
GPBRuntimeTypes.h File Reference
#import <Foundation/Foundation.h>
#import "GPBBootstrap.h"
Include dependency graph for GPBRuntimeTypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  GPBExtensionRange
 
union  GPBGenericValue
 

Typedefs

typedef GPBEnumDescriptor *(* GPBEnumDescriptorFunc) (void)
 
typedef BOOL(* GPBEnumValidationFunc) (int32_t)
 
typedef struct GPBExtensionRange GPBExtensionRange
 

Enumerations

enum  { kGPBUnrecognizedEnumeratorValue = (int32_t)0xFBADBEEF }
 
enum  { GPBDataType_Count = GPBDataTypeEnum + 1 }
 

Functions

typedef NS_ENUM (uint8_t, GPBDataType)
 

Typedef Documentation

◆ GPBEnumDescriptorFunc

typedef GPBEnumDescriptor*(* GPBEnumDescriptorFunc) (void)

Fetches an EnumDescriptor.

Definition at line 47 of file GPBRuntimeTypes.h.

◆ GPBEnumValidationFunc

typedef BOOL(* GPBEnumValidationFunc) (int32_t)

Verifies that a given value can be represented by an enum type.

Definition at line 42 of file GPBRuntimeTypes.h.

◆ GPBExtensionRange

An extension range.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Magic value used at runtime to indicate an enum value that wasn't know at compile time.

Enumerator
kGPBUnrecognizedEnumeratorValue 

Definition at line 53 of file GPBRuntimeTypes.h.

◆ anonymous enum

anonymous enum
Enumerator
GPBDataType_Count 

A count of the number of types in GPBDataType. Separated out from the GPBDataType enum to avoid warnings regarding not handling GPBDataType_Count in switch statements.

Definition at line 129 of file GPBRuntimeTypes.h.

Function Documentation

◆ NS_ENUM()

typedef NS_ENUM ( uint8_t  ,
GPBDataType   
)

Enum listing the possible data types that a field can contain.

Note
Do not change the order of this enum (or add things to it) without thinking about it very carefully. There are several things that depend on the order.

Field contains boolean value(s).

Field contains unsigned 4 byte value(s).

Field contains signed 4 byte value(s).

Field contains float value(s).

Field contains unsigned 8 byte value(s).

Field contains signed 8 byte value(s).

Field contains double value(s).

Field contains variable length value(s). Inefficient for encoding negative numbers – if your field is likely to have negative values, use GPBDataTypeSInt32 instead.

Field contains variable length value(s). Inefficient for encoding negative numbers – if your field is likely to have negative values, use GPBDataTypeSInt64 instead.

Field contains signed variable length integer value(s).

Field contains signed variable length integer value(s).

Field contains unsigned variable length integer value(s).

Field contains unsigned variable length integer value(s).

Field contains an arbitrary sequence of bytes.

Field contains UTF-8 encoded or 7-bit ASCII text.

Field contains message type(s).

Field contains message type(s).

Field contains enum value(s).

Definition at line 82 of file GPBRuntimeTypes.h.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03