Initializerswift-openapi-runtime 1.6.0OpenAPIRuntime
init(arrayLiteral:)
Initializes an instance of Base64EncodedData
with a sequence of bytes provided as an array literal.
init(arrayLiteral elements: UInt8...)
Parameters
- elements
The sequence of
UInt8
elements representing the underlying bytes.
Other members in extension
Type members
init(ArraySlice<UInt8>
) Initializes an instance of
Base64EncodedData
wrapping the provided slice of bytes.init(some Sequence<UInt8>
) Initializes an instance of
Base64EncodedData
wrapping the provided sequence of bytes.init(from: any Decoder
) throws Initializes a
Base64EncodedData
instance by decoding a base64-encoded string.
Instance members
var data: ArraySlice<UInt8>
A container of the raw bytes.
func encode(to: any Encoder
) throws Encodes the binary data as a base64-encoded string.