| // WARNING: This file is machine generated by fidlgen. |
| |
| // fidl_experiment = output_index_json |
| |
| #include <fidl/test.emptystruct/cpp/wire_messaging.h> |
| |
| #include <memory> |
| |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wshadow" |
| |
| namespace test_emptystruct { |
| |
| [[maybe_unused]] |
| constexpr uint64_t kEmptyProtocol_Send_Ordinal = 1378773277029173000lu; |
| |
| [[maybe_unused]] |
| constexpr ::fidl::MessageDynamicFlags kEmptyProtocol_Send_DynamicFlags = ::fidl::MessageDynamicFlags::kStrictMethod; |
| |
| [[maybe_unused]] |
| constexpr uint64_t kEmptyProtocol_Receive_Ordinal = 2301564782476583487lu; |
| |
| [[maybe_unused]] |
| constexpr ::fidl::MessageDynamicFlags kEmptyProtocol_Receive_DynamicFlags = ::fidl::MessageDynamicFlags::kStrictMethod; |
| |
| [[maybe_unused]] |
| constexpr uint64_t kEmptyProtocol_SendAndReceive_Ordinal = 534401212734647530lu; |
| |
| [[maybe_unused]] |
| constexpr ::fidl::MessageDynamicFlags kEmptyProtocol_SendAndReceive_DynamicFlags = ::fidl::MessageDynamicFlags::kStrictMethod; |
| #ifdef __Fuchsia__ |
| } // namespace test_emptystruct |
| |
| ::fidl::WireResult<::test_emptystruct::EmptyProtocol::Send>::WireResult( |
| ::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol> client, |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>* request) { |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::OwnedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>, ::fidl::internal::ChannelTransport> request_message( |
| ::fidl::internal::AllowUnownedInputRef{}, request); |
| auto& outgoing = request_message.GetOutgoingMessage(); |
| outgoing.Write(client.handle()); |
| SetStatus(outgoing); |
| } |
| namespace test_emptystruct { |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| } // namespace test_emptystruct |
| |
| ::fidl::WireUnownedResult<::test_emptystruct::EmptyProtocol::Send>::WireUnownedResult(::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol> client_end, ::fidl::internal::AnyBufferAllocator& allocator, ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>* request) { |
| constexpr uint32_t buffer_size = ::fidl::SyncClientMethodBufferSizeInChannel<::test_emptystruct::EmptyProtocol::Send>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> allocation = allocator.TryAllocate(buffer_size); |
| if (!allocation.is_ok()) { |
| SetStatus(allocation.error_value()); |
| return; |
| } |
| uint8_t* buffer = allocation->data; |
| uint32_t request_byte_capacity = buffer_size; |
| uint8_t* request_bytes = buffer; |
| |
| ::fidl::internal::UnownedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>> request_message( |
| request_bytes, request_byte_capacity, request); |
| auto& outgoing = request_message.GetOutgoingMessage(); |
| outgoing.Write(client_end.handle()); |
| SetStatus(outgoing); |
| } |
| namespace test_emptystruct { |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| } // namespace test_emptystruct |
| |
| ::fidl::WireResult<::test_emptystruct::EmptyProtocol::SendAndReceive>::WireResult( |
| ::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol> client, |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>* request) { |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::OwnedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>, ::fidl::internal::ChannelTransport> request_message( |
| ::fidl::internal::AllowUnownedInputRef{}, request); |
| auto& outgoing = request_message.GetOutgoingMessage(); |
| ::fidl::internal::IncomingMessageHandleStorage<::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>> handle_storage; |
| ::fit::result decoded = ::fidl::internal::InplaceDecodeTransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>( |
| outgoing.Call(client.handle(), handle_storage.view(bytes_.view()), fidl::CallOptions{})); |
| SetStatus(::fidl::internal::StatusFromResult(decoded)); |
| if (ok()) { |
| decoded_ = std::move(decoded.value()); |
| ExtractValueFromDecoded(decoded_.pointer()); |
| } |
| } |
| namespace test_emptystruct { |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| } // namespace test_emptystruct |
| |
| ::fidl::WireUnownedResult<::test_emptystruct::EmptyProtocol::SendAndReceive>::WireUnownedResult(::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol> client_end, ::fidl::internal::AnyBufferAllocator& allocator, ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>* request) { |
| constexpr uint32_t buffer_size = ::fidl::SyncClientMethodBufferSizeInChannel<::test_emptystruct::EmptyProtocol::SendAndReceive>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> allocation = allocator.TryAllocate(buffer_size); |
| if (!allocation.is_ok()) { |
| SetStatus(allocation.error_value()); |
| return; |
| } |
| uint8_t* buffer = allocation->data; |
| constexpr uint32_t request_byte_capacity = ::fidl::MaxSizeInChannel< |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>, ::fidl::MessageDirection::kSending>(); |
| uint8_t* request_bytes = buffer; |
| static_assert(buffer_size > request_byte_capacity); |
| uint32_t response_byte_capacity = buffer_size - request_byte_capacity; |
| uint8_t* response_bytes = &buffer[request_byte_capacity]; |
| |
| ::fidl::internal::UnownedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>> request_message( |
| request_bytes, request_byte_capacity, request); |
| auto& outgoing = request_message.GetOutgoingMessage(); |
| ::fidl::internal::IncomingMessageHandleStorage<::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>> handle_storage; |
| ::fit::result decoded = ::fidl::internal::InplaceDecodeTransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>( |
| outgoing.Call( |
| client_end.handle(), |
| handle_storage.view(fidl::BufferSpan(response_bytes, response_byte_capacity)))); |
| SetStatus(::fidl::internal::StatusFromResult(decoded)); |
| if (ok()) { |
| decoded_ = std::move(decoded.value()); |
| ExtractValueFromDecoded(decoded_.pointer()); |
| } |
| } |
| namespace test_emptystruct { |
| |
| #endif // __Fuchsia__ |
| |
| } // namespace test_emptystruct |
| |
| #ifdef __Fuchsia__ |
| |
| ::fidl::OneWayStatus fidl::internal::WireWeakOnewayClientImpl<::test_emptystruct::EmptyProtocol>::Send(const ::test_emptystruct::wire::Empty& e) { |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send> _request_object{e}; |
| ::fidl::internal::OwnedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>, ::fidl::internal::ChannelTransport> _request_message( |
| ::fidl::internal::AllowUnownedInputRef{}, &_request_object); |
| return _client_base()->SendOneWay(_request_message.GetOutgoingMessage()); |
| } |
| |
| ::fidl::internal::WireThenable<::test_emptystruct::EmptyProtocol::SendAndReceive> fidl::internal::WireWeakAsyncClientImpl<::test_emptystruct::EmptyProtocol>::SendAndReceive(const ::test_emptystruct::wire::Empty& e) { |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive> _request{e}; |
| return ::fidl::internal::WireThenable<::test_emptystruct::EmptyProtocol::SendAndReceive>{ |
| _client_base(), ::fidl::WriteOptions{}, ::fidl::internal::AllowUnownedInputRef{}, &_request}; |
| } |
| ::fidl::OneWayStatus fidl::internal::WireWeakOnewayBufferClientImpl<::test_emptystruct::EmptyProtocol>::Send(const ::test_emptystruct::wire::Empty& e) { |
| constexpr uint32_t _buffer_size = ::fidl::AsyncClientMethodBufferSizeInChannel<::test_emptystruct::EmptyProtocol::Send>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> _allocation = |
| _allocator().TryAllocate(_buffer_size); |
| if (!_allocation.is_ok()) { |
| return ::fidl::OneWayStatus{_allocation.error_value()}; |
| } |
| |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send> _request{e}; |
| ::fidl::internal::UnownedEncodedMessage<::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>> _request_message( |
| _allocation->data, _buffer_size, &_request); |
| return _client_base()->SendOneWay(_request_message.GetOutgoingMessage()); |
| } |
| ::fidl::internal::WireBufferThenable<::test_emptystruct::EmptyProtocol::SendAndReceive> fidl::internal::WireWeakAsyncBufferClientImpl<::test_emptystruct::EmptyProtocol>::SendAndReceive(const ::test_emptystruct::wire::Empty& e) { |
| constexpr uint32_t _buffer_size = ::fidl::AsyncClientMethodBufferSizeInChannel<::test_emptystruct::EmptyProtocol::SendAndReceive>(); |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive> _request{e}; |
| return ::fidl::internal::WireBufferThenable<::test_emptystruct::EmptyProtocol::SendAndReceive>{ |
| _client_base(), ::fidl::WriteOptions{}, _allocator(), _buffer_size, &_request}; |
| } |
| |
| ::fidl::WireResult<::test_emptystruct::EmptyProtocol::SendAndReceive> |
| fidl::internal::WireWeakSyncClientImpl<::test_emptystruct::EmptyProtocol>::SendAndReceive(const ::test_emptystruct::wire::Empty& e) { |
| return _client_base()->MakeSyncCallWith( |
| [&](std::shared_ptr<::fidl::internal::AnyTransport> _transport) { |
| ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive> _request{e}; |
| return ::fidl::WireResult<::test_emptystruct::EmptyProtocol::SendAndReceive>(::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol>(_transport->get<::fidl::internal::ChannelTransport>()), &_request); |
| }); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| ::fidl::Status fidl::WireSyncEventHandler<::test_emptystruct::EmptyProtocol>::HandleOneEvent( |
| ::fidl::UnownedClientEnd<::test_emptystruct::EmptyProtocol> client_end) { |
| ::fidl::internal::IncomingEventsStorage<::test_emptystruct::EmptyProtocol> event_storage; |
| fidl::internal::WireEventDispatcher<::test_emptystruct::EmptyProtocol> dispatcher{this}; |
| return HandleOneEventImpl_(client_end.channel(), event_storage.view(), dispatcher); |
| } |
| ::fidl::Status |
| fidl::internal::WireEventDispatcher<::test_emptystruct::EmptyProtocol>::DispatchEvent( |
| ::fidl::IncomingHeaderAndMessage& msg, |
| ::fidl::internal::MessageStorageViewBase* storage_view) { |
| switch (msg.header()->ordinal) { |
| case ::test_emptystruct::kEmptyProtocol_Receive_Ordinal: { |
| ::fit::result decoded = ::fidl::internal::InplaceDecodeTransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>( |
| std::move(msg)); |
| if (!decoded.is_ok()) { |
| return decoded.error_value(); |
| } |
| if (event_handler()) { |
| auto* primary = decoded.value().pointer(); |
| event_handler()->Receive(primary); |
| } |
| return ::fidl::Status::Ok(); |
| } |
| default: |
| std::move(msg).CloseHandles(); |
| return ::fidl::Status::UnknownOrdinal(); |
| } |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| |
| constexpr ::fidl::internal::MethodEntry fidl::internal::WireServerDispatcher<::test_emptystruct::EmptyProtocol>::entries_[] = { |
| { |
| ::test_emptystruct::kEmptyProtocol_Send_Ordinal, |
| [](void* interface, ::fidl::EncodedMessage& msg, ::fidl::WireFormatMetadata metadata, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| ::fit::result decoded = ::fidl::StandaloneInplaceDecode<::test_emptystruct::wire::EmptyProtocolSendRequest>( |
| std::move(msg), metadata); |
| if (unlikely(!decoded.is_ok())) { |
| return decoded.error_value(); |
| } |
| ::fidl::internal::WireCompleter<::test_emptystruct::EmptyProtocol::Send>::Sync completer(txn); |
| reinterpret_cast<::fidl::WireServer<::test_emptystruct::EmptyProtocol>*>(interface)->Send( |
| decoded.value().pointer(), |
| completer); |
| return ::fidl::Status::Ok(); |
| }, |
| }, |
| { |
| ::test_emptystruct::kEmptyProtocol_SendAndReceive_Ordinal, |
| [](void* interface, ::fidl::EncodedMessage& msg, ::fidl::WireFormatMetadata metadata, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| ::fit::result decoded = ::fidl::StandaloneInplaceDecode<::test_emptystruct::wire::EmptyProtocolSendAndReceiveRequest>( |
| std::move(msg), metadata); |
| if (unlikely(!decoded.is_ok())) { |
| return decoded.error_value(); |
| } |
| ::fidl::internal::WireCompleter<::test_emptystruct::EmptyProtocol::SendAndReceive>::Sync completer(txn); |
| reinterpret_cast<::fidl::WireServer<::test_emptystruct::EmptyProtocol>*>(interface)->SendAndReceive( |
| decoded.value().pointer(), |
| completer); |
| return ::fidl::Status::Ok(); |
| }, |
| }, |
| }; |
| |
| const ::fidl::internal::MethodEntry* fidl::internal::WireServerDispatcher<::test_emptystruct::EmptyProtocol>::entries_end_ = |
| &entries_[2]; |
| |
| ::fidl::DispatchResult fidl::internal::WireServerDispatcher<::test_emptystruct::EmptyProtocol>::TryDispatch( |
| ::fidl::WireServer<::test_emptystruct::EmptyProtocol>* impl, ::fidl::IncomingHeaderAndMessage& msg, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| return ::fidl::internal::TryDispatch( |
| impl, msg, storage_view, txn, entries_, entries_end_); |
| } |
| |
| void fidl::internal::WireServerDispatcher<::test_emptystruct::EmptyProtocol>::Dispatch(::fidl::WireServer<::test_emptystruct::EmptyProtocol>* impl, ::fidl::IncomingHeaderAndMessage&& msg, |
| internal::MessageStorageViewBase* storage_view, ::fidl::Transaction* txn) { |
| ::fidl::internal::Dispatch(impl, msg, storage_view, txn, entries_, entries_end_, |
| &unknown_method_handler_entry_); |
| } |
| |
| void fidl::WireServer<::test_emptystruct::EmptyProtocol>::dispatch_message( |
| ::fidl::IncomingHeaderAndMessage&& msg, ::fidl::Transaction* txn, |
| ::fidl::internal::MessageStorageViewBase* storage_view) { |
| ::fidl::internal::WireServerDispatcher<::test_emptystruct::EmptyProtocol>::Dispatch(this, std::move(msg), storage_view, txn); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| void fidl::internal::WireCompleterImpl<::test_emptystruct::EmptyProtocol::SendAndReceive>::Reply(const ::test_emptystruct::wire::Empty& e) { |
| return MakeReply(e); |
| } |
| |
| void fidl::internal::WireCompleterImpl<::test_emptystruct::EmptyProtocol::SendAndReceive>::MakeReply(const ::test_emptystruct::wire::Empty& e) { |
| ::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive> _response{e}; |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::OwnedEncodedMessage< |
| ::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>, ::fidl::internal::ChannelTransport> |
| _response_message{ |
| ::fidl::internal::AllowUnownedInputRef{}, &_response}; |
| return _core()->SendReply(&_response_message.GetOutgoingMessage(), |
| ::fidl::internal::OutgoingTransportContext()); |
| } |
| |
| void fidl::internal::WireBufferCompleterImpl<::test_emptystruct::EmptyProtocol::SendAndReceive>::Reply(const ::test_emptystruct::wire::Empty& e) { |
| return MakeReply(e); |
| } |
| |
| void fidl::internal::WireBufferCompleterImpl<::test_emptystruct::EmptyProtocol::SendAndReceive>::MakeReply(const ::test_emptystruct::wire::Empty& e) { |
| ::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive> _response{e}; |
| constexpr uint32_t _buffer_size = ::fidl::ServerReplyBufferSizeInChannel<::test_emptystruct::EmptyProtocol::SendAndReceive>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> _allocation = |
| _allocator().TryAllocate(_buffer_size); |
| if (!_allocation.is_ok()) { |
| ::fidl::OutgoingMessage _failure{_allocation.error_value()}; |
| return _core()->SendReply(&_failure, ::fidl::internal::OutgoingTransportContext()); |
| } |
| ::fidl::internal::UnownedEncodedMessage< |
| ::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>, ::fidl::internal::ChannelTransport> |
| _response_message( |
| _allocation->data, _buffer_size, &_response); |
| return _core()->SendReply(&_response_message.GetOutgoingMessage(), |
| ::fidl::internal::OutgoingTransportContext()); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| void ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::Send>::_InitHeader() { |
| ::fidl::InitTxnHeader(&header, 0, ::test_emptystruct::kEmptyProtocol_Send_Ordinal, ::test_emptystruct::kEmptyProtocol_Send_DynamicFlags); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| void ::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>::_InitHeader() { |
| ::fidl::InitTxnHeader(&header, 0, ::test_emptystruct::kEmptyProtocol_Receive_Ordinal, ::test_emptystruct::kEmptyProtocol_Receive_DynamicFlags); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #ifdef __Fuchsia__ |
| void ::fidl::internal::TransactionalRequest<::test_emptystruct::EmptyProtocol::SendAndReceive>::_InitHeader() { |
| ::fidl::InitTxnHeader(&header, 0, ::test_emptystruct::kEmptyProtocol_SendAndReceive_Ordinal, ::test_emptystruct::kEmptyProtocol_SendAndReceive_DynamicFlags); |
| } |
| |
| #endif // __Fuchsia__ |
| |
| void ::fidl::internal::TransactionalResponse<::test_emptystruct::EmptyProtocol::SendAndReceive>::_InitHeader() { |
| ::fidl::InitTxnHeader(&header, 0, ::test_emptystruct::kEmptyProtocol_SendAndReceive_Ordinal, ::test_emptystruct::kEmptyProtocol_SendAndReceive_DynamicFlags); |
| } |
| |
| #ifdef __Fuchsia__ |
| |
| ::fidl::OneWayStatus fidl::internal::WireWeakEventSender<::test_emptystruct::EmptyProtocol>::Receive(const ::test_emptystruct::wire::Empty& e) { |
| ::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive> _response{e}; |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::OwnedEncodedMessage<::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>, ::fidl::internal::ChannelTransport> _response_message{ |
| ::fidl::internal::AllowUnownedInputRef{}, &_response}; |
| return _inner().SendEvent(_response_message.GetOutgoingMessage()); |
| } |
| |
| fidl::OneWayStatus fidl::internal::WireWeakBufferEventSender<::test_emptystruct::EmptyProtocol>::Receive(const ::test_emptystruct::wire::Empty& e) { |
| constexpr uint32_t _buffer_size = ::fidl::EventReplyBufferSizeInChannel<::test_emptystruct::EmptyProtocol::Receive>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> _allocation = |
| _allocator().TryAllocate(_buffer_size); |
| if (!_allocation.is_ok()) { |
| _inner().HandleSendError(_allocation.error_value()); |
| return fidl::OneWayStatus{_allocation.error_value()}; |
| } |
| |
| ::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive> _response{e}; |
| ::fidl::internal::UnownedEncodedMessage<::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>, ::fidl::internal::ChannelTransport> _response_message( |
| _allocation->data, _buffer_size, &_response); |
| return _inner().SendEvent(_response_message.GetOutgoingMessage()); |
| } |
| |
| fidl::OneWayStatus fidl::internal::WireEventSender<::test_emptystruct::EmptyProtocol>::Receive(const ::test_emptystruct::wire::Empty& e) { |
| ::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive> _response{e}; |
| FIDL_INTERNAL_DISABLE_AUTO_VAR_INIT |
| ::fidl::internal::OwnedEncodedMessage<::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>, ::fidl::internal::ChannelTransport> _response_message{ |
| ::fidl::internal::AllowUnownedInputRef{}, &_response}; |
| auto& _message = _response_message.GetOutgoingMessage(); |
| _message.Write(_transport()); |
| return ::fidl::OneWayStatus{::fidl::Status{_message}}; |
| } |
| |
| fidl::OneWayStatus fidl::internal::WireBufferEventSender<::test_emptystruct::EmptyProtocol>::Receive(const ::test_emptystruct::wire::Empty& e) { |
| constexpr uint32_t _buffer_size = ::fidl::EventReplyBufferSizeInChannel<::test_emptystruct::EmptyProtocol::Receive>(); |
| ::fit::result<::fidl::Error, ::fidl::BufferSpan> _allocation = |
| _allocator().TryAllocate(_buffer_size); |
| if (!_allocation.is_ok()) { |
| return fidl::OneWayStatus{_allocation.error_value()}; |
| } |
| |
| ::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive> _response{e}; |
| ::fidl::internal::UnownedEncodedMessage<::fidl::internal::TransactionalEvent<::test_emptystruct::EmptyProtocol::Receive>, ::fidl::internal::ChannelTransport> _response_message( |
| _allocation->data, _buffer_size, &_response); |
| auto& _message = _response_message.GetOutgoingMessage(); |
| _message.Write(_transport()); |
| return ::fidl::OneWayStatus{::fidl::Status{_message}}; |
| } |
| |
| #endif // __Fuchsia__ |
| |
| #pragma clang diagnostic pop |