Enumerationswift-protobuf 1.28.1SwiftProtobuf
Internal
Functions that are public only because they are used by generated message implementations.
Internal.swift:21enum Internal
Citizens in SwiftProtobuf
Type members
static func areAllInitialized<K>([K : any Message]
) -> Bool Helper to loop over dictionary with values that are Messages to see if they are all initialized (see Message.isInitialized for what that means).
static func areAllInitialized([any Message]
) -> Bool Helper to loop over a list of Messages to see if they are all initialized (see Message.isInitialized for what that means).
Show obsolete interfaces (1)
Hide obsolete interfaces
static let emptyData: Data
A singleton instance of an empty data that is used by the generated code for default values. This is a performance enhancement to work around the fact that the
Data
type in Swift involves a new heap allocation every time an empty instance is initialized, instead of sharing a common empty backing storage.