blob: 72a45d15bd943f433d783dbc8488204fa2c7e5af [file] [log] [blame]
// WARNING: This file is machine generated by fidlgen.
#include <fidl/test/escaping/cpp/natural_types.h>
#include "lib/fidl/cpp/internal/natural_types_implementation.h"
//
// Domain objects definitions (i.e. "natural types" in unified bindings)
//
namespace fidl {
namespace test {
namespace escaping {
extern "C" const fidl_type_t fidl_test_escaping_DocCommentWithQuotesTable;
const fidl_type_t* DocCommentWithQuotes::FidlType =
&fidl_test_escaping_DocCommentWithQuotesTable;
void DocCommentWithQuotes::Encode(
::fidl::Encoder* _encoder, size_t _offset,
cpp17::optional<::fidl::HandleInformation> maybe_handle_info) {
if (::fidl::IsMemcpyCompatible<DocCommentWithQuotes>::value) {
memcpy(_encoder->template GetPtr<DocCommentWithQuotes>(_offset), this,
sizeof(DocCommentWithQuotes));
} else {
::fidl::Encode(_encoder, &__reserved, _offset + 0);
}
}
void DocCommentWithQuotes::Decode(::fidl::Decoder* _decoder,
DocCommentWithQuotes* _value,
size_t _offset) {
if (::fidl::IsMemcpyCompatible<DocCommentWithQuotes>::value) {
memcpy(_value, _decoder->template GetPtr<DocCommentWithQuotes>(_offset),
sizeof(DocCommentWithQuotes));
} else {
::fidl::Decode(_decoder, &_value->__reserved, _offset + 0);
}
}
zx_status_t DocCommentWithQuotes::Clone(DocCommentWithQuotes* _result) const {
zx_status_t _status = ::fidl::Clone(__reserved, &_result->__reserved);
if (_status != ZX_OK) return _status;
return ZX_OK;
}
} // namespace escaping
} // namespace test
} // namespace fidl