decodeSingularInt64Field(value:)
Decode an int64 value to Optional
field storage
mutating func decodeSingularInt64Field(value: inout Int64?) throws
Decode an int64 value to Optional
field storage
mutating func decodeSingularInt64Field(value: inout Int64?) throws
s13SwiftProtobuf7DecoderP24decodeSingularInt64Field5valueys0F0VSgz_tKF
What are these?PLBM
import SwiftProtobuf
Support library for Swift code generated by protoc-gen-swift.
protocol Decoder
Abstract protocol used by the generated code to deserialize data.
@frozen struct Int64
A 64-bit signed integer value type.
mutating func decodeExtensionField(values: inout ExtensionFieldValueSet, messageType: any Message.Type, fieldNumber: Int) throws
Decode an extension field
mutating func decodeExtensionFieldsAsMessageSet(values: inout ExtensionFieldValueSet, messageType: any Message.Type) throws
mutating func decodeMapField<KeyType, ValueType>(fieldType: _ProtobufEnumMap<KeyType, ValueType>.Type, value: inout _ProtobufEnumMap<KeyType, ValueType>.BaseType) throws where KeyType : MapKeyType, ValueType : Enum, ValueType.RawValue == Int
Decode a map whose values are protobuf enum types
mutating func decodeMapField<KeyType, ValueType>(fieldType: _ProtobufMessageMap<KeyType, ValueType>.Type, value: inout _ProtobufMessageMap<KeyType, ValueType>.BaseType) throws where KeyType : MapKeyType, ValueType : Hashable, ValueType : Message
Decode a map whose values are protobuf message types
mutating func decodeMapField<KeyType, ValueType>(fieldType: _ProtobufMap<KeyType, ValueType>.Type, value: inout _ProtobufMap<KeyType, ValueType>.BaseType) throws where KeyType : MapKeyType, ValueType : MapValueType
Decode a map whose values are primitive types (including string and bytes)
mutating func decodeRepeatedBoolField(value: inout [Bool]) throws
Decode bool values to repeated field storage
mutating func decodeRepeatedBytesField(value: inout [Data]) throws
Decode bytes values to repeated field storage
mutating func decodeRepeatedDoubleField(value: inout [Double]) throws
Decode double values to repeated field storage
mutating func decodeRepeatedEnumField<E>(value: inout [E]) throws where E : Enum, E.RawValue == Int
Decode enum values to repeated field storage
mutating func decodeRepeatedFixed32Field(value: inout [UInt32]) throws
Decode fixed32 values to repeated field storage
mutating func decodeRepeatedFixed64Field(value: inout [UInt64]) throws
Decode fixed64 values to repeated field storage
mutating func decodeRepeatedFloatField(value: inout [Float]) throws
Decode float values to repeated field storage
mutating func decodeRepeatedGroupField<G>(value: inout [G]) throws where G : Message
Decode group values to repeated field storage
mutating func decodeRepeatedInt32Field(value: inout [Int32]) throws
Decode int32 values to repeated field storage
mutating func decodeRepeatedInt64Field(value: inout [Int64]) throws
Decode int64 values to repeated field storage
mutating func decodeRepeatedMessageField<M>(value: inout [M]) throws where M : Message
Decode message values to repeated field storage
mutating func decodeRepeatedSFixed32Field(value: inout [Int32]) throws
Decode sfixed32 values to repeated field storage
mutating func decodeRepeatedSFixed64Field(value: inout [Int64]) throws
Decode sfixed64 values to repeated field storage
mutating func decodeRepeatedSInt32Field(value: inout [Int32]) throws
Decode sint32 values to repeated field storage
mutating func decodeRepeatedSInt64Field(value: inout [Int64]) throws
Decode sint64 values to repeated field storage
mutating func decodeRepeatedStringField(value: inout [String]) throws
Decode string values to repeated field storage
mutating func decodeRepeatedUInt32Field(value: inout [UInt32]) throws
Decode uint32 values to repeated field storage
mutating func decodeRepeatedUInt64Field(value: inout [UInt64]) throws
Decode uint64 values to repeated field storage
mutating func decodeSingularBoolField(value: inout Bool?) throws
Decode a bool value to Optional
field storage
mutating func decodeSingularBoolField(value: inout Bool) throws
Decode a bool value to non-Optional
field storage
mutating func decodeSingularBytesField(value: inout Data?) throws
Decode a bytes value to Optional
field storage
mutating func decodeSingularBytesField(value: inout Data) throws
Decode a bytes value to non-Optional
field storage
mutating func decodeSingularDoubleField(value: inout Double?) throws
Decode a double value to Optional
field storage
mutating func decodeSingularDoubleField(value: inout Double) throws
Decode a double value to non-Optional
field storage
mutating func decodeSingularEnumField<E>(value: inout E?) throws where E : Enum, E.RawValue == Int
Decode an enum value to Optional
field storage
mutating func decodeSingularEnumField<E>(value: inout E) throws where E : Enum, E.RawValue == Int
Decode an enum value to non-Optional
field storage
mutating func decodeSingularFixed32Field(value: inout UInt32?) throws
Decode a fixed32 value to Optional
field storage
mutating func decodeSingularFixed32Field(value: inout UInt32) throws
Decode a fixed32 value to non-Optional
field storage
mutating func decodeSingularFixed64Field(value: inout UInt64?) throws
Decode a fixed64 value to Optional
field storage
mutating func decodeSingularFixed64Field(value: inout UInt64) throws
Decode a fixed64 value to non-Optional
field storage
mutating func decodeSingularFloatField(value: inout Float?) throws
Decode a float value to Optional
field storage
mutating func decodeSingularFloatField(value: inout Float) throws
Decode a float value to non-Optional
field storage
mutating func decodeSingularGroupField<G>(value: inout G?) throws where G : Message
Decode a group value to Optional
field storage.
mutating func decodeSingularInt32Field(value: inout Int32?) throws
Decode an int32 value to Optional
field storage
mutating func decodeSingularInt32Field(value: inout Int32) throws
Decode an int32 value to non-Optional
field storage
mutating func decodeSingularInt64Field(value: inout Int64) throws
Decode an int64 value to non-Optional
field storage
mutating func decodeSingularMessageField<M>(value: inout M?) throws where M : Message
Decode a message value to Optional
field storage.
mutating func decodeSingularSFixed32Field(value: inout Int32?) throws
Decode an sfixed32 value to Optional
field storage
mutating func decodeSingularSFixed32Field(value: inout Int32) throws
Decode an sfixed32 value to non-Optional
field storage
mutating func decodeSingularSFixed64Field(value: inout Int64?) throws
Decode an sfixed64 value to Optional
field storage
mutating func decodeSingularSFixed64Field(value: inout Int64) throws
Decode an sfixed64 value to non-Optional
field storage
mutating func decodeSingularSInt32Field(value: inout Int32?) throws
Decode an sint32 value to Optional
field storage
mutating func decodeSingularSInt32Field(value: inout Int32) throws
Decode an sint32 value to non-Optional
field storage
mutating func decodeSingularSInt64Field(value: inout Int64?) throws
Decode an sint64 value to Optional
field storage
mutating func decodeSingularSInt64Field(value: inout Int64) throws
Decode an sint64 value to non-Optional
field storage
mutating func decodeSingularStringField(value: inout String?) throws
Decode a string value to Optional
field storage
mutating func decodeSingularStringField(value: inout String) throws
Decode a string value to non-Optional
field storage
mutating func decodeSingularUInt32Field(value: inout UInt32?) throws
Decode a uint32 value to Optional
field storage
mutating func decodeSingularUInt32Field(value: inout UInt32) throws
Decode a uint32 value to non-Optional
field storage
mutating func decodeSingularUInt64Field(value: inout UInt64?) throws
Decode a uint64 value to Optional
field storage
mutating func decodeSingularUInt64Field(value: inout UInt64) throws
Decode a uint64 value to non-Optional
field storage
mutating func handleConflictingOneOf() throws
Called by a oneof
when it already has a value and is being asked to accept a new value. Some formats require oneof
decoding to fail in this case.
mutating func nextFieldNumber() throws -> Int?
Returns the next field number, or nil when the end of the input is reached.