One Logo Pool Ball
Distributed · IOS API REFERENCE

LocalTestingInvocationDecoder

class · iOS 16.0+ · SDK 27.1

final class LocalTestingInvocationDecoder

Members (1)

method · iOS 16.0+

decodeNextArgument

TypeScript
decodeNextArgument(): number
Swift declaration
final func decodeNextArgument<Argument>() throws -> Argument where Argument : Decodable, Argument : Encodable

Attempt to decode the next argument from the underlying buffers into pre-allocated storage pointed at by 'pointer'. This method should throw if it has no more arguments available, if decoding the argument failed, or, optionally, if the argument type we're trying to decode does not match the stored type. The result of the decoding operation must be stored into the provided 'pointer' rather than returning a value. This pattern allows the runtime to use a heavily optimized, pre-allocated buffer for all the arguments and their expected types. The 'pointer' passed here is a pointer to a "slot" in that pre-allocated buffer. That buffer will then be passed to a thunk that performs the actual distributed (local) instance method invocation. ### Serialization Requirement Implementations of this method must ensure that the `Argument` type parameter conforms to the types' `SerializationRequirement`.

Skipped declarations

3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

LocalTestingInvocationDecoder.decodeGenericSubstitutions()

Passing a Swift type itself is not supported.

LocalTestingInvocationDecoder.decodeErrorType()

Passing a Swift type itself is not supported.

LocalTestingInvocationDecoder.decodeReturnType()

Passing a Swift type itself is not supported.

All Distributed types →