serializedData
Declaration
Summary
Returns
A Data instance containing the binary serialization of the message.
Throws
BinaryEncodingErrorif encoding fails.
Parameters
| Name | Type | Summary |
|---|---|---|
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi before encoding to verify that all requiredfields are present. If any are missing, this method throws BinaryEncodingError/missingRequiredFields. |
Overload
func serializedData(partial: Bool = false, options: BinaryEncodingOptions = BinaryEncodingOptions()) throws -> Data
Summary
Returns a Data instance containing the Protocol Buffer binary
format serialization of the message.
Returns
A Data instance containing the binary serialization of the message.
Throws
BinaryEncodingErrorif encoding fails.
Parameters
| Name | Type | Summary |
|---|---|---|
| partial | Bool | If false (the default), this method will checkMessage/isInitialized-6abgi before encoding to verify that all requiredfields are present. If any are missing, this method throws BinaryEncodingError/missingRequiredFields. |
Returns a
Datainstance containing the Protocol Buffer binaryformat serialization of the message.