Required Static Methodswift-protobuf 1.29.0SwiftProtobuf
decodeSingular(value:from:)
FieldTypes.swift:43static func decodeSingular<D>(value: inout BaseType?, from decoder: inout D) throws where D : Decoder
static func decodeSingular<D>(value: inout BaseType?, from decoder: inout D) throws where D : Decoder
s13SwiftProtobuf9FieldTypeP14decodeSingular5value4fromy04BaseD0QzSgz_qd__ztKAA7DecoderRd__lFZ
What are these?CKEV
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
@preconcurrency protocol FieldType : Sendable
associatedtype BaseType : Hashable, Sendable
protocol Decoder
Abstract protocol used by the generated code to deserialize data.
static var proto3DefaultValue: BaseType { get }
static func decodeRepeated<D>(value: inout [BaseType], from decoder: inout D) throws where D : Decoder
static func visitPacked<V>(value: [BaseType], fieldNumber: Int, with visitor: inout V) throws where V : Visitor
static func visitRepeated<V>(value: [BaseType], fieldNumber: Int, with visitor: inout V) throws where V : Visitor
static func visitSingular<V>(value: BaseType, fieldNumber: Int, with visitor: inout V) throws where V : Visitor