Branch data Line data Source code
1 : : // Generated by Cap'n Proto compiler, DO NOT EDIT
2 : : // source: ipc_test.capnp
3 : :
4 : : #pragma once
5 : :
6 : : #include <capnp/generated-header-support.h>
7 : : #include <kj/windows-sanity.h>
8 : : #if !CAPNP_LITE
9 : : #include <capnp/capability.h>
10 : : #endif // !CAPNP_LITE
11 : :
12 : : #ifndef CAPNP_VERSION
13 : : #error "CAPNP_VERSION is not defined, is capnp/generated-header-support.h missing?"
14 : : #elif CAPNP_VERSION != 1004000
15 : : #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
16 : : #endif
17 : :
18 : :
19 : : CAPNP_BEGIN_HEADER
20 : :
21 : : namespace capnp {
22 : : namespace schemas {
23 : :
24 : : CAPNP_DECLARE_SCHEMA(9b16bffa65b7eed2);
25 : : CAPNP_DECLARE_SCHEMA(b7a9756e51860513);
26 : : CAPNP_DECLARE_SCHEMA(fd99518ef5186972);
27 : : CAPNP_DECLARE_SCHEMA(bcfcca27cd7c6f67);
28 : : CAPNP_DECLARE_SCHEMA(b24a1700d0933642);
29 : : CAPNP_DECLARE_SCHEMA(f7ac3fc302b10456);
30 : : CAPNP_DECLARE_SCHEMA(bba87756fde5befc);
31 : : CAPNP_DECLARE_SCHEMA(9df220427551ad24);
32 : : CAPNP_DECLARE_SCHEMA(c63198fcfc209ae4);
33 : : CAPNP_DECLARE_SCHEMA(c39c1a7a6e433e04);
34 : : CAPNP_DECLARE_SCHEMA(e0dd015e07c39c85);
35 : : CAPNP_DECLARE_SCHEMA(90806df4bc24ab2e);
36 : : CAPNP_DECLARE_SCHEMA(db7b185a06e60737);
37 : : CAPNP_DECLARE_SCHEMA(fd4bedaa67bc13ce);
38 : : CAPNP_DECLARE_SCHEMA(cd220ff2dbb43d30);
39 : :
40 : : } // namespace schemas
41 : : } // namespace capnp
42 : :
43 : : namespace gen {
44 : :
45 : : struct FooInterface {
46 : : FooInterface() = delete;
47 : :
48 : : #if !CAPNP_LITE
49 : : class Client;
50 : : class Server;
51 : : #endif // !CAPNP_LITE
52 : :
53 : : struct AddParams;
54 : : struct AddResults;
55 : : struct PassOutPointParams;
56 : : struct PassOutPointResults;
57 : : struct PassUniValueParams;
58 : : struct PassUniValueResults;
59 : : struct PassTransactionParams;
60 : : struct PassTransactionResults;
61 : : struct PassVectorCharParams;
62 : : struct PassVectorCharResults;
63 : : struct PassScriptParams;
64 : : struct PassScriptResults;
65 : : struct PassTransactionsParams;
66 : : struct PassTransactionsResults;
67 : :
68 : : #if !CAPNP_LITE
69 : : struct _capnpPrivate {
70 : : CAPNP_DECLARE_INTERFACE_HEADER(9b16bffa65b7eed2)
71 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
72 : : };
73 : : #endif // !CAPNP_LITE
74 : : };
75 : :
76 : : struct FooInterface::AddParams {
77 : : AddParams() = delete;
78 : :
79 : : class Reader;
80 : : class Builder;
81 : : class Pipeline;
82 : :
83 : : struct _capnpPrivate {
84 : : CAPNP_DECLARE_STRUCT_HEADER(b7a9756e51860513, 1, 0)
85 : : #if !CAPNP_LITE
86 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
87 : : #endif // !CAPNP_LITE
88 : : };
89 : : };
90 : :
91 : : struct FooInterface::AddResults {
92 : : AddResults() = delete;
93 : :
94 : : class Reader;
95 : : class Builder;
96 : : class Pipeline;
97 : :
98 : : struct _capnpPrivate {
99 : : CAPNP_DECLARE_STRUCT_HEADER(fd99518ef5186972, 1, 0)
100 : : #if !CAPNP_LITE
101 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
102 : : #endif // !CAPNP_LITE
103 : : };
104 : : };
105 : :
106 : : struct FooInterface::PassOutPointParams {
107 : : PassOutPointParams() = delete;
108 : :
109 : : class Reader;
110 : : class Builder;
111 : : class Pipeline;
112 : :
113 : : struct _capnpPrivate {
114 : : CAPNP_DECLARE_STRUCT_HEADER(bcfcca27cd7c6f67, 0, 1)
115 : : #if !CAPNP_LITE
116 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
117 : : #endif // !CAPNP_LITE
118 : : };
119 : : };
120 : :
121 : : struct FooInterface::PassOutPointResults {
122 : : PassOutPointResults() = delete;
123 : :
124 : : class Reader;
125 : : class Builder;
126 : : class Pipeline;
127 : :
128 : : struct _capnpPrivate {
129 : : CAPNP_DECLARE_STRUCT_HEADER(b24a1700d0933642, 0, 1)
130 : : #if !CAPNP_LITE
131 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
132 : : #endif // !CAPNP_LITE
133 : : };
134 : : };
135 : :
136 : : struct FooInterface::PassUniValueParams {
137 : : PassUniValueParams() = delete;
138 : :
139 : : class Reader;
140 : : class Builder;
141 : : class Pipeline;
142 : :
143 : : struct _capnpPrivate {
144 : : CAPNP_DECLARE_STRUCT_HEADER(f7ac3fc302b10456, 0, 1)
145 : : #if !CAPNP_LITE
146 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
147 : : #endif // !CAPNP_LITE
148 : : };
149 : : };
150 : :
151 : : struct FooInterface::PassUniValueResults {
152 : : PassUniValueResults() = delete;
153 : :
154 : : class Reader;
155 : : class Builder;
156 : : class Pipeline;
157 : :
158 : : struct _capnpPrivate {
159 : : CAPNP_DECLARE_STRUCT_HEADER(bba87756fde5befc, 0, 1)
160 : : #if !CAPNP_LITE
161 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
162 : : #endif // !CAPNP_LITE
163 : : };
164 : : };
165 : :
166 : : struct FooInterface::PassTransactionParams {
167 : : PassTransactionParams() = delete;
168 : :
169 : : class Reader;
170 : : class Builder;
171 : : class Pipeline;
172 : :
173 : : struct _capnpPrivate {
174 : : CAPNP_DECLARE_STRUCT_HEADER(9df220427551ad24, 0, 1)
175 : : #if !CAPNP_LITE
176 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
177 : : #endif // !CAPNP_LITE
178 : : };
179 : : };
180 : :
181 : : struct FooInterface::PassTransactionResults {
182 : : PassTransactionResults() = delete;
183 : :
184 : : class Reader;
185 : : class Builder;
186 : : class Pipeline;
187 : :
188 : : struct _capnpPrivate {
189 : : CAPNP_DECLARE_STRUCT_HEADER(c63198fcfc209ae4, 0, 1)
190 : : #if !CAPNP_LITE
191 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
192 : : #endif // !CAPNP_LITE
193 : : };
194 : : };
195 : :
196 : : struct FooInterface::PassVectorCharParams {
197 : : PassVectorCharParams() = delete;
198 : :
199 : : class Reader;
200 : : class Builder;
201 : : class Pipeline;
202 : :
203 : : struct _capnpPrivate {
204 : : CAPNP_DECLARE_STRUCT_HEADER(c39c1a7a6e433e04, 0, 1)
205 : : #if !CAPNP_LITE
206 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
207 : : #endif // !CAPNP_LITE
208 : : };
209 : : };
210 : :
211 : : struct FooInterface::PassVectorCharResults {
212 : : PassVectorCharResults() = delete;
213 : :
214 : : class Reader;
215 : : class Builder;
216 : : class Pipeline;
217 : :
218 : : struct _capnpPrivate {
219 : : CAPNP_DECLARE_STRUCT_HEADER(e0dd015e07c39c85, 0, 1)
220 : : #if !CAPNP_LITE
221 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
222 : : #endif // !CAPNP_LITE
223 : : };
224 : : };
225 : :
226 : : struct FooInterface::PassScriptParams {
227 : : PassScriptParams() = delete;
228 : :
229 : : class Reader;
230 : : class Builder;
231 : : class Pipeline;
232 : :
233 : : struct _capnpPrivate {
234 : : CAPNP_DECLARE_STRUCT_HEADER(90806df4bc24ab2e, 0, 1)
235 : : #if !CAPNP_LITE
236 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
237 : : #endif // !CAPNP_LITE
238 : : };
239 : : };
240 : :
241 : : struct FooInterface::PassScriptResults {
242 : : PassScriptResults() = delete;
243 : :
244 : : class Reader;
245 : : class Builder;
246 : : class Pipeline;
247 : :
248 : : struct _capnpPrivate {
249 : : CAPNP_DECLARE_STRUCT_HEADER(db7b185a06e60737, 0, 1)
250 : : #if !CAPNP_LITE
251 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
252 : : #endif // !CAPNP_LITE
253 : : };
254 : : };
255 : :
256 : : struct FooInterface::PassTransactionsParams {
257 : : PassTransactionsParams() = delete;
258 : :
259 : : class Reader;
260 : : class Builder;
261 : : class Pipeline;
262 : :
263 : : struct _capnpPrivate {
264 : : CAPNP_DECLARE_STRUCT_HEADER(fd4bedaa67bc13ce, 0, 1)
265 : : #if !CAPNP_LITE
266 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
267 : : #endif // !CAPNP_LITE
268 : : };
269 : : };
270 : :
271 : : struct FooInterface::PassTransactionsResults {
272 : : PassTransactionsResults() = delete;
273 : :
274 : : class Reader;
275 : : class Builder;
276 : : class Pipeline;
277 : :
278 : : struct _capnpPrivate {
279 : : CAPNP_DECLARE_STRUCT_HEADER(cd220ff2dbb43d30, 0, 1)
280 : : #if !CAPNP_LITE
281 : : static constexpr ::capnp::_::RawBrandedSchema const* brand() { return &schema->defaultBrand; }
282 : : #endif // !CAPNP_LITE
283 : : };
284 : : };
285 : :
286 : : // =======================================================================================
287 : :
288 : : #if !CAPNP_LITE
289 [ + - + - : 4 : class FooInterface::Client
+ - + - ]
290 : : : public virtual ::capnp::Capability::Client {
291 : : public:
292 : : typedef FooInterface Calls;
293 : : typedef FooInterface Reads;
294 : :
295 : : Client(decltype(nullptr));
296 : : explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
297 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
298 : : Client(::kj::Own<_t>&& server);
299 : : template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
300 : : Client(::kj::Promise<_t>&& promise);
301 : : Client(::kj::Exception&& exception);
302 : : Client(Client&) = default;
303 [ + - + - ]: 3 : Client(Client&&) = default;
304 : : Client& operator=(Client& other);
305 : : Client& operator=(Client&& other);
306 : :
307 : : ::capnp::Request< ::gen::FooInterface::AddParams, ::gen::FooInterface::AddResults> addRequest(
308 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
309 : : ::capnp::Request< ::gen::FooInterface::PassOutPointParams, ::gen::FooInterface::PassOutPointResults> passOutPointRequest(
310 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
311 : : ::capnp::Request< ::gen::FooInterface::PassUniValueParams, ::gen::FooInterface::PassUniValueResults> passUniValueRequest(
312 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
313 : : ::capnp::Request< ::gen::FooInterface::PassTransactionParams, ::gen::FooInterface::PassTransactionResults> passTransactionRequest(
314 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
315 : : ::capnp::Request< ::gen::FooInterface::PassVectorCharParams, ::gen::FooInterface::PassVectorCharResults> passVectorCharRequest(
316 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
317 : : ::capnp::Request< ::gen::FooInterface::PassScriptParams, ::gen::FooInterface::PassScriptResults> passScriptRequest(
318 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
319 : : ::capnp::Request< ::gen::FooInterface::PassTransactionsParams, ::gen::FooInterface::PassTransactionsResults> passTransactionsRequest(
320 : : ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
321 : :
322 : : protected:
323 : : Client() = default;
324 : : };
325 : :
326 : : class FooInterface::Server
327 : : : public virtual ::capnp::Capability::Server {
328 : : public:
329 : : typedef FooInterface Serves;
330 : :
331 : : ::capnp::Capability::Server::DispatchCallResult dispatchCall(
332 : : uint64_t interfaceId, uint16_t methodId,
333 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
334 : : override;
335 : :
336 : : protected:
337 : : typedef ::gen::FooInterface::AddParams AddParams;
338 : : typedef ::gen::FooInterface::AddResults AddResults;
339 : : typedef ::capnp::CallContext<AddParams, AddResults> AddContext;
340 : : virtual ::kj::Promise<void> add(AddContext context);
341 : : typedef ::gen::FooInterface::PassOutPointParams PassOutPointParams;
342 : : typedef ::gen::FooInterface::PassOutPointResults PassOutPointResults;
343 : : typedef ::capnp::CallContext<PassOutPointParams, PassOutPointResults> PassOutPointContext;
344 : : virtual ::kj::Promise<void> passOutPoint(PassOutPointContext context);
345 : : typedef ::gen::FooInterface::PassUniValueParams PassUniValueParams;
346 : : typedef ::gen::FooInterface::PassUniValueResults PassUniValueResults;
347 : : typedef ::capnp::CallContext<PassUniValueParams, PassUniValueResults> PassUniValueContext;
348 : : virtual ::kj::Promise<void> passUniValue(PassUniValueContext context);
349 : : typedef ::gen::FooInterface::PassTransactionParams PassTransactionParams;
350 : : typedef ::gen::FooInterface::PassTransactionResults PassTransactionResults;
351 : : typedef ::capnp::CallContext<PassTransactionParams, PassTransactionResults> PassTransactionContext;
352 : : virtual ::kj::Promise<void> passTransaction(PassTransactionContext context);
353 : : typedef ::gen::FooInterface::PassVectorCharParams PassVectorCharParams;
354 : : typedef ::gen::FooInterface::PassVectorCharResults PassVectorCharResults;
355 : : typedef ::capnp::CallContext<PassVectorCharParams, PassVectorCharResults> PassVectorCharContext;
356 : : virtual ::kj::Promise<void> passVectorChar(PassVectorCharContext context);
357 : : typedef ::gen::FooInterface::PassScriptParams PassScriptParams;
358 : : typedef ::gen::FooInterface::PassScriptResults PassScriptResults;
359 : : typedef ::capnp::CallContext<PassScriptParams, PassScriptResults> PassScriptContext;
360 : : virtual ::kj::Promise<void> passScript(PassScriptContext context);
361 : : typedef ::gen::FooInterface::PassTransactionsParams PassTransactionsParams;
362 : : typedef ::gen::FooInterface::PassTransactionsResults PassTransactionsResults;
363 : : typedef ::capnp::CallContext<PassTransactionsParams, PassTransactionsResults> PassTransactionsContext;
364 : : virtual ::kj::Promise<void> passTransactions(PassTransactionsContext context);
365 : :
366 : : inline ::gen::FooInterface::Client thisCap() {
367 : : return ::capnp::Capability::Server::thisCap()
368 : : .template castAs< ::gen::FooInterface>();
369 : : }
370 : :
371 : : ::capnp::Capability::Server::DispatchCallResult dispatchCallInternal(
372 : : uint16_t methodId,
373 : : ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
374 : : };
375 : : #endif // !CAPNP_LITE
376 : :
377 : : class FooInterface::AddParams::Reader {
378 : : public:
379 : : typedef AddParams Reads;
380 : :
381 : : Reader() = default;
382 : 4 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
383 : :
384 : : inline ::capnp::MessageSize totalSize() const {
385 : : return _reader.totalSize().asPublic();
386 : : }
387 : :
388 : : #if !CAPNP_LITE
389 : 2 : inline ::kj::StringTree toString() const {
390 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
391 : : }
392 : : #endif // !CAPNP_LITE
393 : :
394 : : inline ::int32_t getA() const;
395 : :
396 : : inline ::int32_t getB() const;
397 : :
398 : : private:
399 : : ::capnp::_::StructReader _reader;
400 : : template <typename, ::capnp::Kind>
401 : : friend struct ::capnp::ToDynamic_;
402 : : template <typename, ::capnp::Kind>
403 : : friend struct ::capnp::_::PointerHelpers;
404 : : template <typename, ::capnp::Kind>
405 : : friend struct ::capnp::List;
406 : : friend class ::capnp::MessageBuilder;
407 : : friend class ::capnp::Orphanage;
408 : : };
409 : :
410 : : class FooInterface::AddParams::Builder {
411 : : public:
412 : : typedef AddParams Builds;
413 : :
414 : : Builder() = delete; // Deleted to discourage incorrect usage.
415 : : // You can explicitly initialize to nullptr instead.
416 : : inline Builder(decltype(nullptr)) {}
417 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
418 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
419 : 1 : inline Reader asReader() const { return *this; }
420 : :
421 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
422 : : #if !CAPNP_LITE
423 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
424 : : #endif // !CAPNP_LITE
425 : :
426 : : inline ::int32_t getA();
427 : : inline void setA( ::int32_t value);
428 : :
429 : : inline ::int32_t getB();
430 : : inline void setB( ::int32_t value);
431 : :
432 : : private:
433 : : ::capnp::_::StructBuilder _builder;
434 : : template <typename, ::capnp::Kind>
435 : : friend struct ::capnp::ToDynamic_;
436 : : friend class ::capnp::Orphanage;
437 : : template <typename, ::capnp::Kind>
438 : : friend struct ::capnp::_::PointerHelpers;
439 : : };
440 : :
441 : : #if !CAPNP_LITE
442 : : class FooInterface::AddParams::Pipeline {
443 : : public:
444 : : typedef AddParams Pipelines;
445 : :
446 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
447 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
448 : : : _typeless(kj::mv(typeless)) {}
449 : :
450 : : private:
451 : : ::capnp::AnyPointer::Pipeline _typeless;
452 : : friend class ::capnp::PipelineHook;
453 : : template <typename, ::capnp::Kind>
454 : : friend struct ::capnp::ToDynamic_;
455 : : };
456 : : #endif // !CAPNP_LITE
457 : :
458 : : class FooInterface::AddResults::Reader {
459 : : public:
460 : : typedef AddResults Reads;
461 : :
462 : : Reader() = default;
463 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
464 : :
465 : : inline ::capnp::MessageSize totalSize() const {
466 : : return _reader.totalSize().asPublic();
467 : : }
468 : :
469 : : #if !CAPNP_LITE
470 : 2 : inline ::kj::StringTree toString() const {
471 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
472 : : }
473 : : #endif // !CAPNP_LITE
474 : :
475 : : inline ::int32_t getResult() const;
476 : :
477 : : private:
478 : : ::capnp::_::StructReader _reader;
479 : : template <typename, ::capnp::Kind>
480 : : friend struct ::capnp::ToDynamic_;
481 : : template <typename, ::capnp::Kind>
482 : : friend struct ::capnp::_::PointerHelpers;
483 : : template <typename, ::capnp::Kind>
484 : : friend struct ::capnp::List;
485 : : friend class ::capnp::MessageBuilder;
486 : : friend class ::capnp::Orphanage;
487 : : };
488 : :
489 : : class FooInterface::AddResults::Builder {
490 : : public:
491 : : typedef AddResults Builds;
492 : :
493 : : Builder() = delete; // Deleted to discourage incorrect usage.
494 : : // You can explicitly initialize to nullptr instead.
495 : : inline Builder(decltype(nullptr)) {}
496 : 4 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
497 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
498 : 1 : inline Reader asReader() const { return *this; }
499 : :
500 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
501 : : #if !CAPNP_LITE
502 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
503 : : #endif // !CAPNP_LITE
504 : :
505 : : inline ::int32_t getResult();
506 : : inline void setResult( ::int32_t value);
507 : :
508 : : private:
509 : : ::capnp::_::StructBuilder _builder;
510 : : template <typename, ::capnp::Kind>
511 : : friend struct ::capnp::ToDynamic_;
512 : : friend class ::capnp::Orphanage;
513 : : template <typename, ::capnp::Kind>
514 : : friend struct ::capnp::_::PointerHelpers;
515 : : };
516 : :
517 : : #if !CAPNP_LITE
518 [ - + ]: 2 : class FooInterface::AddResults::Pipeline {
519 : : public:
520 : : typedef AddResults Pipelines;
521 : :
522 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
523 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
524 : 1 : : _typeless(kj::mv(typeless)) {}
525 : :
526 : : private:
527 : : ::capnp::AnyPointer::Pipeline _typeless;
528 : : friend class ::capnp::PipelineHook;
529 : : template <typename, ::capnp::Kind>
530 : : friend struct ::capnp::ToDynamic_;
531 : : };
532 : : #endif // !CAPNP_LITE
533 : :
534 : : class FooInterface::PassOutPointParams::Reader {
535 : : public:
536 : : typedef PassOutPointParams Reads;
537 : :
538 : : Reader() = default;
539 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
540 : :
541 : : inline ::capnp::MessageSize totalSize() const {
542 : : return _reader.totalSize().asPublic();
543 : : }
544 : :
545 : : #if !CAPNP_LITE
546 : 2 : inline ::kj::StringTree toString() const {
547 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
548 : : }
549 : : #endif // !CAPNP_LITE
550 : :
551 : : inline bool hasArg() const;
552 : : inline ::capnp::Data::Reader getArg() const;
553 : :
554 : : private:
555 : : ::capnp::_::StructReader _reader;
556 : : template <typename, ::capnp::Kind>
557 : : friend struct ::capnp::ToDynamic_;
558 : : template <typename, ::capnp::Kind>
559 : : friend struct ::capnp::_::PointerHelpers;
560 : : template <typename, ::capnp::Kind>
561 : : friend struct ::capnp::List;
562 : : friend class ::capnp::MessageBuilder;
563 : : friend class ::capnp::Orphanage;
564 : : };
565 : :
566 : : class FooInterface::PassOutPointParams::Builder {
567 : : public:
568 : : typedef PassOutPointParams Builds;
569 : :
570 : : Builder() = delete; // Deleted to discourage incorrect usage.
571 : : // You can explicitly initialize to nullptr instead.
572 : : inline Builder(decltype(nullptr)) {}
573 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
574 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
575 : 1 : inline Reader asReader() const { return *this; }
576 : :
577 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
578 : : #if !CAPNP_LITE
579 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
580 : : #endif // !CAPNP_LITE
581 : :
582 : : inline bool hasArg();
583 : : inline ::capnp::Data::Builder getArg();
584 : : inline void setArg( ::capnp::Data::Reader value);
585 : : inline ::capnp::Data::Builder initArg(unsigned int size);
586 : : inline void adoptArg(::capnp::Orphan< ::capnp::Data>&& value);
587 : : inline ::capnp::Orphan< ::capnp::Data> disownArg();
588 : :
589 : : private:
590 : : ::capnp::_::StructBuilder _builder;
591 : : template <typename, ::capnp::Kind>
592 : : friend struct ::capnp::ToDynamic_;
593 : : friend class ::capnp::Orphanage;
594 : : template <typename, ::capnp::Kind>
595 : : friend struct ::capnp::_::PointerHelpers;
596 : : };
597 : :
598 : : #if !CAPNP_LITE
599 : : class FooInterface::PassOutPointParams::Pipeline {
600 : : public:
601 : : typedef PassOutPointParams Pipelines;
602 : :
603 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
604 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
605 : : : _typeless(kj::mv(typeless)) {}
606 : :
607 : : private:
608 : : ::capnp::AnyPointer::Pipeline _typeless;
609 : : friend class ::capnp::PipelineHook;
610 : : template <typename, ::capnp::Kind>
611 : : friend struct ::capnp::ToDynamic_;
612 : : };
613 : : #endif // !CAPNP_LITE
614 : :
615 : : class FooInterface::PassOutPointResults::Reader {
616 : : public:
617 : : typedef PassOutPointResults Reads;
618 : :
619 : : Reader() = default;
620 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
621 : :
622 : : inline ::capnp::MessageSize totalSize() const {
623 : : return _reader.totalSize().asPublic();
624 : : }
625 : :
626 : : #if !CAPNP_LITE
627 : 2 : inline ::kj::StringTree toString() const {
628 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
629 : : }
630 : : #endif // !CAPNP_LITE
631 : :
632 : : inline bool hasResult() const;
633 : : inline ::capnp::Data::Reader getResult() const;
634 : :
635 : : private:
636 : : ::capnp::_::StructReader _reader;
637 : : template <typename, ::capnp::Kind>
638 : : friend struct ::capnp::ToDynamic_;
639 : : template <typename, ::capnp::Kind>
640 : : friend struct ::capnp::_::PointerHelpers;
641 : : template <typename, ::capnp::Kind>
642 : : friend struct ::capnp::List;
643 : : friend class ::capnp::MessageBuilder;
644 : : friend class ::capnp::Orphanage;
645 : : };
646 : :
647 : : class FooInterface::PassOutPointResults::Builder {
648 : : public:
649 : : typedef PassOutPointResults Builds;
650 : :
651 : : Builder() = delete; // Deleted to discourage incorrect usage.
652 : : // You can explicitly initialize to nullptr instead.
653 : : inline Builder(decltype(nullptr)) {}
654 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
655 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
656 : 1 : inline Reader asReader() const { return *this; }
657 : :
658 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
659 : : #if !CAPNP_LITE
660 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
661 : : #endif // !CAPNP_LITE
662 : :
663 : : inline bool hasResult();
664 : : inline ::capnp::Data::Builder getResult();
665 : : inline void setResult( ::capnp::Data::Reader value);
666 : : inline ::capnp::Data::Builder initResult(unsigned int size);
667 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
668 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
669 : :
670 : : private:
671 : : ::capnp::_::StructBuilder _builder;
672 : : template <typename, ::capnp::Kind>
673 : : friend struct ::capnp::ToDynamic_;
674 : : friend class ::capnp::Orphanage;
675 : : template <typename, ::capnp::Kind>
676 : : friend struct ::capnp::_::PointerHelpers;
677 : : };
678 : :
679 : : #if !CAPNP_LITE
680 [ - + ]: 2 : class FooInterface::PassOutPointResults::Pipeline {
681 : : public:
682 : : typedef PassOutPointResults Pipelines;
683 : :
684 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
685 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
686 : 1 : : _typeless(kj::mv(typeless)) {}
687 : :
688 : : private:
689 : : ::capnp::AnyPointer::Pipeline _typeless;
690 : : friend class ::capnp::PipelineHook;
691 : : template <typename, ::capnp::Kind>
692 : : friend struct ::capnp::ToDynamic_;
693 : : };
694 : : #endif // !CAPNP_LITE
695 : :
696 : : class FooInterface::PassUniValueParams::Reader {
697 : : public:
698 : : typedef PassUniValueParams Reads;
699 : :
700 : : Reader() = default;
701 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
702 : :
703 : : inline ::capnp::MessageSize totalSize() const {
704 : : return _reader.totalSize().asPublic();
705 : : }
706 : :
707 : : #if !CAPNP_LITE
708 : 2 : inline ::kj::StringTree toString() const {
709 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
710 : : }
711 : : #endif // !CAPNP_LITE
712 : :
713 : : inline bool hasArg() const;
714 : : inline ::capnp::Text::Reader getArg() const;
715 : :
716 : : private:
717 : : ::capnp::_::StructReader _reader;
718 : : template <typename, ::capnp::Kind>
719 : : friend struct ::capnp::ToDynamic_;
720 : : template <typename, ::capnp::Kind>
721 : : friend struct ::capnp::_::PointerHelpers;
722 : : template <typename, ::capnp::Kind>
723 : : friend struct ::capnp::List;
724 : : friend class ::capnp::MessageBuilder;
725 : : friend class ::capnp::Orphanage;
726 : : };
727 : :
728 : : class FooInterface::PassUniValueParams::Builder {
729 : : public:
730 : : typedef PassUniValueParams Builds;
731 : :
732 : : Builder() = delete; // Deleted to discourage incorrect usage.
733 : : // You can explicitly initialize to nullptr instead.
734 : : inline Builder(decltype(nullptr)) {}
735 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
736 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
737 : 1 : inline Reader asReader() const { return *this; }
738 : :
739 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
740 : : #if !CAPNP_LITE
741 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
742 : : #endif // !CAPNP_LITE
743 : :
744 : : inline bool hasArg();
745 : : inline ::capnp::Text::Builder getArg();
746 : : inline void setArg( ::capnp::Text::Reader value);
747 : : inline ::capnp::Text::Builder initArg(unsigned int size);
748 : : inline void adoptArg(::capnp::Orphan< ::capnp::Text>&& value);
749 : : inline ::capnp::Orphan< ::capnp::Text> disownArg();
750 : :
751 : : private:
752 : : ::capnp::_::StructBuilder _builder;
753 : : template <typename, ::capnp::Kind>
754 : : friend struct ::capnp::ToDynamic_;
755 : : friend class ::capnp::Orphanage;
756 : : template <typename, ::capnp::Kind>
757 : : friend struct ::capnp::_::PointerHelpers;
758 : : };
759 : :
760 : : #if !CAPNP_LITE
761 : : class FooInterface::PassUniValueParams::Pipeline {
762 : : public:
763 : : typedef PassUniValueParams Pipelines;
764 : :
765 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
766 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
767 : : : _typeless(kj::mv(typeless)) {}
768 : :
769 : : private:
770 : : ::capnp::AnyPointer::Pipeline _typeless;
771 : : friend class ::capnp::PipelineHook;
772 : : template <typename, ::capnp::Kind>
773 : : friend struct ::capnp::ToDynamic_;
774 : : };
775 : : #endif // !CAPNP_LITE
776 : :
777 : : class FooInterface::PassUniValueResults::Reader {
778 : : public:
779 : : typedef PassUniValueResults Reads;
780 : :
781 : : Reader() = default;
782 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
783 : :
784 : : inline ::capnp::MessageSize totalSize() const {
785 : : return _reader.totalSize().asPublic();
786 : : }
787 : :
788 : : #if !CAPNP_LITE
789 : 2 : inline ::kj::StringTree toString() const {
790 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
791 : : }
792 : : #endif // !CAPNP_LITE
793 : :
794 : : inline bool hasResult() const;
795 : : inline ::capnp::Text::Reader getResult() const;
796 : :
797 : : private:
798 : : ::capnp::_::StructReader _reader;
799 : : template <typename, ::capnp::Kind>
800 : : friend struct ::capnp::ToDynamic_;
801 : : template <typename, ::capnp::Kind>
802 : : friend struct ::capnp::_::PointerHelpers;
803 : : template <typename, ::capnp::Kind>
804 : : friend struct ::capnp::List;
805 : : friend class ::capnp::MessageBuilder;
806 : : friend class ::capnp::Orphanage;
807 : : };
808 : :
809 : : class FooInterface::PassUniValueResults::Builder {
810 : : public:
811 : : typedef PassUniValueResults Builds;
812 : :
813 : : Builder() = delete; // Deleted to discourage incorrect usage.
814 : : // You can explicitly initialize to nullptr instead.
815 : : inline Builder(decltype(nullptr)) {}
816 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
817 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
818 : 1 : inline Reader asReader() const { return *this; }
819 : :
820 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
821 : : #if !CAPNP_LITE
822 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
823 : : #endif // !CAPNP_LITE
824 : :
825 : : inline bool hasResult();
826 : : inline ::capnp::Text::Builder getResult();
827 : : inline void setResult( ::capnp::Text::Reader value);
828 : : inline ::capnp::Text::Builder initResult(unsigned int size);
829 : : inline void adoptResult(::capnp::Orphan< ::capnp::Text>&& value);
830 : : inline ::capnp::Orphan< ::capnp::Text> disownResult();
831 : :
832 : : private:
833 : : ::capnp::_::StructBuilder _builder;
834 : : template <typename, ::capnp::Kind>
835 : : friend struct ::capnp::ToDynamic_;
836 : : friend class ::capnp::Orphanage;
837 : : template <typename, ::capnp::Kind>
838 : : friend struct ::capnp::_::PointerHelpers;
839 : : };
840 : :
841 : : #if !CAPNP_LITE
842 [ - + ]: 2 : class FooInterface::PassUniValueResults::Pipeline {
843 : : public:
844 : : typedef PassUniValueResults Pipelines;
845 : :
846 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
847 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
848 : 1 : : _typeless(kj::mv(typeless)) {}
849 : :
850 : : private:
851 : : ::capnp::AnyPointer::Pipeline _typeless;
852 : : friend class ::capnp::PipelineHook;
853 : : template <typename, ::capnp::Kind>
854 : : friend struct ::capnp::ToDynamic_;
855 : : };
856 : : #endif // !CAPNP_LITE
857 : :
858 : : class FooInterface::PassTransactionParams::Reader {
859 : : public:
860 : : typedef PassTransactionParams Reads;
861 : :
862 : : Reader() = default;
863 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
864 : :
865 : : inline ::capnp::MessageSize totalSize() const {
866 : : return _reader.totalSize().asPublic();
867 : : }
868 : :
869 : : #if !CAPNP_LITE
870 : 2 : inline ::kj::StringTree toString() const {
871 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
872 : : }
873 : : #endif // !CAPNP_LITE
874 : :
875 : : inline bool hasArg() const;
876 : : inline ::capnp::Data::Reader getArg() const;
877 : :
878 : : private:
879 : : ::capnp::_::StructReader _reader;
880 : : template <typename, ::capnp::Kind>
881 : : friend struct ::capnp::ToDynamic_;
882 : : template <typename, ::capnp::Kind>
883 : : friend struct ::capnp::_::PointerHelpers;
884 : : template <typename, ::capnp::Kind>
885 : : friend struct ::capnp::List;
886 : : friend class ::capnp::MessageBuilder;
887 : : friend class ::capnp::Orphanage;
888 : : };
889 : :
890 : : class FooInterface::PassTransactionParams::Builder {
891 : : public:
892 : : typedef PassTransactionParams Builds;
893 : :
894 : : Builder() = delete; // Deleted to discourage incorrect usage.
895 : : // You can explicitly initialize to nullptr instead.
896 : : inline Builder(decltype(nullptr)) {}
897 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
898 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
899 : 1 : inline Reader asReader() const { return *this; }
900 : :
901 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
902 : : #if !CAPNP_LITE
903 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
904 : : #endif // !CAPNP_LITE
905 : :
906 : : inline bool hasArg();
907 : : inline ::capnp::Data::Builder getArg();
908 : : inline void setArg( ::capnp::Data::Reader value);
909 : : inline ::capnp::Data::Builder initArg(unsigned int size);
910 : : inline void adoptArg(::capnp::Orphan< ::capnp::Data>&& value);
911 : : inline ::capnp::Orphan< ::capnp::Data> disownArg();
912 : :
913 : : private:
914 : : ::capnp::_::StructBuilder _builder;
915 : : template <typename, ::capnp::Kind>
916 : : friend struct ::capnp::ToDynamic_;
917 : : friend class ::capnp::Orphanage;
918 : : template <typename, ::capnp::Kind>
919 : : friend struct ::capnp::_::PointerHelpers;
920 : : };
921 : :
922 : : #if !CAPNP_LITE
923 : : class FooInterface::PassTransactionParams::Pipeline {
924 : : public:
925 : : typedef PassTransactionParams Pipelines;
926 : :
927 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
928 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
929 : : : _typeless(kj::mv(typeless)) {}
930 : :
931 : : private:
932 : : ::capnp::AnyPointer::Pipeline _typeless;
933 : : friend class ::capnp::PipelineHook;
934 : : template <typename, ::capnp::Kind>
935 : : friend struct ::capnp::ToDynamic_;
936 : : };
937 : : #endif // !CAPNP_LITE
938 : :
939 : : class FooInterface::PassTransactionResults::Reader {
940 : : public:
941 : : typedef PassTransactionResults Reads;
942 : :
943 : : Reader() = default;
944 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
945 : :
946 : : inline ::capnp::MessageSize totalSize() const {
947 : : return _reader.totalSize().asPublic();
948 : : }
949 : :
950 : : #if !CAPNP_LITE
951 : 2 : inline ::kj::StringTree toString() const {
952 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
953 : : }
954 : : #endif // !CAPNP_LITE
955 : :
956 : : inline bool hasResult() const;
957 : : inline ::capnp::Data::Reader getResult() const;
958 : :
959 : : private:
960 : : ::capnp::_::StructReader _reader;
961 : : template <typename, ::capnp::Kind>
962 : : friend struct ::capnp::ToDynamic_;
963 : : template <typename, ::capnp::Kind>
964 : : friend struct ::capnp::_::PointerHelpers;
965 : : template <typename, ::capnp::Kind>
966 : : friend struct ::capnp::List;
967 : : friend class ::capnp::MessageBuilder;
968 : : friend class ::capnp::Orphanage;
969 : : };
970 : :
971 : : class FooInterface::PassTransactionResults::Builder {
972 : : public:
973 : : typedef PassTransactionResults Builds;
974 : :
975 : : Builder() = delete; // Deleted to discourage incorrect usage.
976 : : // You can explicitly initialize to nullptr instead.
977 : : inline Builder(decltype(nullptr)) {}
978 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
979 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
980 : 1 : inline Reader asReader() const { return *this; }
981 : :
982 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
983 : : #if !CAPNP_LITE
984 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
985 : : #endif // !CAPNP_LITE
986 : :
987 : : inline bool hasResult();
988 : : inline ::capnp::Data::Builder getResult();
989 : : inline void setResult( ::capnp::Data::Reader value);
990 : : inline ::capnp::Data::Builder initResult(unsigned int size);
991 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
992 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
993 : :
994 : : private:
995 : : ::capnp::_::StructBuilder _builder;
996 : : template <typename, ::capnp::Kind>
997 : : friend struct ::capnp::ToDynamic_;
998 : : friend class ::capnp::Orphanage;
999 : : template <typename, ::capnp::Kind>
1000 : : friend struct ::capnp::_::PointerHelpers;
1001 : : };
1002 : :
1003 : : #if !CAPNP_LITE
1004 [ - + ]: 2 : class FooInterface::PassTransactionResults::Pipeline {
1005 : : public:
1006 : : typedef PassTransactionResults Pipelines;
1007 : :
1008 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1009 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1010 : 1 : : _typeless(kj::mv(typeless)) {}
1011 : :
1012 : : private:
1013 : : ::capnp::AnyPointer::Pipeline _typeless;
1014 : : friend class ::capnp::PipelineHook;
1015 : : template <typename, ::capnp::Kind>
1016 : : friend struct ::capnp::ToDynamic_;
1017 : : };
1018 : : #endif // !CAPNP_LITE
1019 : :
1020 : : class FooInterface::PassVectorCharParams::Reader {
1021 : : public:
1022 : : typedef PassVectorCharParams Reads;
1023 : :
1024 : : Reader() = default;
1025 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1026 : :
1027 : : inline ::capnp::MessageSize totalSize() const {
1028 : : return _reader.totalSize().asPublic();
1029 : : }
1030 : :
1031 : : #if !CAPNP_LITE
1032 : 2 : inline ::kj::StringTree toString() const {
1033 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1034 : : }
1035 : : #endif // !CAPNP_LITE
1036 : :
1037 : : inline bool hasArg() const;
1038 : : inline ::capnp::Data::Reader getArg() const;
1039 : :
1040 : : private:
1041 : : ::capnp::_::StructReader _reader;
1042 : : template <typename, ::capnp::Kind>
1043 : : friend struct ::capnp::ToDynamic_;
1044 : : template <typename, ::capnp::Kind>
1045 : : friend struct ::capnp::_::PointerHelpers;
1046 : : template <typename, ::capnp::Kind>
1047 : : friend struct ::capnp::List;
1048 : : friend class ::capnp::MessageBuilder;
1049 : : friend class ::capnp::Orphanage;
1050 : : };
1051 : :
1052 : : class FooInterface::PassVectorCharParams::Builder {
1053 : : public:
1054 : : typedef PassVectorCharParams Builds;
1055 : :
1056 : : Builder() = delete; // Deleted to discourage incorrect usage.
1057 : : // You can explicitly initialize to nullptr instead.
1058 : : inline Builder(decltype(nullptr)) {}
1059 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1060 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1061 : 1 : inline Reader asReader() const { return *this; }
1062 : :
1063 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1064 : : #if !CAPNP_LITE
1065 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1066 : : #endif // !CAPNP_LITE
1067 : :
1068 : : inline bool hasArg();
1069 : : inline ::capnp::Data::Builder getArg();
1070 : : inline void setArg( ::capnp::Data::Reader value);
1071 : : inline ::capnp::Data::Builder initArg(unsigned int size);
1072 : : inline void adoptArg(::capnp::Orphan< ::capnp::Data>&& value);
1073 : : inline ::capnp::Orphan< ::capnp::Data> disownArg();
1074 : :
1075 : : private:
1076 : : ::capnp::_::StructBuilder _builder;
1077 : : template <typename, ::capnp::Kind>
1078 : : friend struct ::capnp::ToDynamic_;
1079 : : friend class ::capnp::Orphanage;
1080 : : template <typename, ::capnp::Kind>
1081 : : friend struct ::capnp::_::PointerHelpers;
1082 : : };
1083 : :
1084 : : #if !CAPNP_LITE
1085 : : class FooInterface::PassVectorCharParams::Pipeline {
1086 : : public:
1087 : : typedef PassVectorCharParams Pipelines;
1088 : :
1089 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1090 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1091 : : : _typeless(kj::mv(typeless)) {}
1092 : :
1093 : : private:
1094 : : ::capnp::AnyPointer::Pipeline _typeless;
1095 : : friend class ::capnp::PipelineHook;
1096 : : template <typename, ::capnp::Kind>
1097 : : friend struct ::capnp::ToDynamic_;
1098 : : };
1099 : : #endif // !CAPNP_LITE
1100 : :
1101 : : class FooInterface::PassVectorCharResults::Reader {
1102 : : public:
1103 : : typedef PassVectorCharResults Reads;
1104 : :
1105 : : Reader() = default;
1106 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1107 : :
1108 : : inline ::capnp::MessageSize totalSize() const {
1109 : : return _reader.totalSize().asPublic();
1110 : : }
1111 : :
1112 : : #if !CAPNP_LITE
1113 : 2 : inline ::kj::StringTree toString() const {
1114 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1115 : : }
1116 : : #endif // !CAPNP_LITE
1117 : :
1118 : : inline bool hasResult() const;
1119 : : inline ::capnp::Data::Reader getResult() const;
1120 : :
1121 : : private:
1122 : : ::capnp::_::StructReader _reader;
1123 : : template <typename, ::capnp::Kind>
1124 : : friend struct ::capnp::ToDynamic_;
1125 : : template <typename, ::capnp::Kind>
1126 : : friend struct ::capnp::_::PointerHelpers;
1127 : : template <typename, ::capnp::Kind>
1128 : : friend struct ::capnp::List;
1129 : : friend class ::capnp::MessageBuilder;
1130 : : friend class ::capnp::Orphanage;
1131 : : };
1132 : :
1133 : : class FooInterface::PassVectorCharResults::Builder {
1134 : : public:
1135 : : typedef PassVectorCharResults Builds;
1136 : :
1137 : : Builder() = delete; // Deleted to discourage incorrect usage.
1138 : : // You can explicitly initialize to nullptr instead.
1139 : : inline Builder(decltype(nullptr)) {}
1140 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1141 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1142 : 1 : inline Reader asReader() const { return *this; }
1143 : :
1144 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1145 : : #if !CAPNP_LITE
1146 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1147 : : #endif // !CAPNP_LITE
1148 : :
1149 : : inline bool hasResult();
1150 : : inline ::capnp::Data::Builder getResult();
1151 : : inline void setResult( ::capnp::Data::Reader value);
1152 : : inline ::capnp::Data::Builder initResult(unsigned int size);
1153 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
1154 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
1155 : :
1156 : : private:
1157 : : ::capnp::_::StructBuilder _builder;
1158 : : template <typename, ::capnp::Kind>
1159 : : friend struct ::capnp::ToDynamic_;
1160 : : friend class ::capnp::Orphanage;
1161 : : template <typename, ::capnp::Kind>
1162 : : friend struct ::capnp::_::PointerHelpers;
1163 : : };
1164 : :
1165 : : #if !CAPNP_LITE
1166 [ - + ]: 2 : class FooInterface::PassVectorCharResults::Pipeline {
1167 : : public:
1168 : : typedef PassVectorCharResults Pipelines;
1169 : :
1170 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1171 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1172 : 1 : : _typeless(kj::mv(typeless)) {}
1173 : :
1174 : : private:
1175 : : ::capnp::AnyPointer::Pipeline _typeless;
1176 : : friend class ::capnp::PipelineHook;
1177 : : template <typename, ::capnp::Kind>
1178 : : friend struct ::capnp::ToDynamic_;
1179 : : };
1180 : : #endif // !CAPNP_LITE
1181 : :
1182 : : class FooInterface::PassScriptParams::Reader {
1183 : : public:
1184 : : typedef PassScriptParams Reads;
1185 : :
1186 : : Reader() = default;
1187 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1188 : :
1189 : : inline ::capnp::MessageSize totalSize() const {
1190 : : return _reader.totalSize().asPublic();
1191 : : }
1192 : :
1193 : : #if !CAPNP_LITE
1194 : 2 : inline ::kj::StringTree toString() const {
1195 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1196 : : }
1197 : : #endif // !CAPNP_LITE
1198 : :
1199 : : inline bool hasArg() const;
1200 : : inline ::capnp::Data::Reader getArg() const;
1201 : :
1202 : : private:
1203 : : ::capnp::_::StructReader _reader;
1204 : : template <typename, ::capnp::Kind>
1205 : : friend struct ::capnp::ToDynamic_;
1206 : : template <typename, ::capnp::Kind>
1207 : : friend struct ::capnp::_::PointerHelpers;
1208 : : template <typename, ::capnp::Kind>
1209 : : friend struct ::capnp::List;
1210 : : friend class ::capnp::MessageBuilder;
1211 : : friend class ::capnp::Orphanage;
1212 : : };
1213 : :
1214 : : class FooInterface::PassScriptParams::Builder {
1215 : : public:
1216 : : typedef PassScriptParams Builds;
1217 : :
1218 : : Builder() = delete; // Deleted to discourage incorrect usage.
1219 : : // You can explicitly initialize to nullptr instead.
1220 : : inline Builder(decltype(nullptr)) {}
1221 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1222 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1223 : 1 : inline Reader asReader() const { return *this; }
1224 : :
1225 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1226 : : #if !CAPNP_LITE
1227 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1228 : : #endif // !CAPNP_LITE
1229 : :
1230 : : inline bool hasArg();
1231 : : inline ::capnp::Data::Builder getArg();
1232 : : inline void setArg( ::capnp::Data::Reader value);
1233 : : inline ::capnp::Data::Builder initArg(unsigned int size);
1234 : : inline void adoptArg(::capnp::Orphan< ::capnp::Data>&& value);
1235 : : inline ::capnp::Orphan< ::capnp::Data> disownArg();
1236 : :
1237 : : private:
1238 : : ::capnp::_::StructBuilder _builder;
1239 : : template <typename, ::capnp::Kind>
1240 : : friend struct ::capnp::ToDynamic_;
1241 : : friend class ::capnp::Orphanage;
1242 : : template <typename, ::capnp::Kind>
1243 : : friend struct ::capnp::_::PointerHelpers;
1244 : : };
1245 : :
1246 : : #if !CAPNP_LITE
1247 : : class FooInterface::PassScriptParams::Pipeline {
1248 : : public:
1249 : : typedef PassScriptParams Pipelines;
1250 : :
1251 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1252 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1253 : : : _typeless(kj::mv(typeless)) {}
1254 : :
1255 : : private:
1256 : : ::capnp::AnyPointer::Pipeline _typeless;
1257 : : friend class ::capnp::PipelineHook;
1258 : : template <typename, ::capnp::Kind>
1259 : : friend struct ::capnp::ToDynamic_;
1260 : : };
1261 : : #endif // !CAPNP_LITE
1262 : :
1263 : : class FooInterface::PassScriptResults::Reader {
1264 : : public:
1265 : : typedef PassScriptResults Reads;
1266 : :
1267 : : Reader() = default;
1268 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1269 : :
1270 : : inline ::capnp::MessageSize totalSize() const {
1271 : : return _reader.totalSize().asPublic();
1272 : : }
1273 : :
1274 : : #if !CAPNP_LITE
1275 : 2 : inline ::kj::StringTree toString() const {
1276 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1277 : : }
1278 : : #endif // !CAPNP_LITE
1279 : :
1280 : : inline bool hasResult() const;
1281 : : inline ::capnp::Data::Reader getResult() const;
1282 : :
1283 : : private:
1284 : : ::capnp::_::StructReader _reader;
1285 : : template <typename, ::capnp::Kind>
1286 : : friend struct ::capnp::ToDynamic_;
1287 : : template <typename, ::capnp::Kind>
1288 : : friend struct ::capnp::_::PointerHelpers;
1289 : : template <typename, ::capnp::Kind>
1290 : : friend struct ::capnp::List;
1291 : : friend class ::capnp::MessageBuilder;
1292 : : friend class ::capnp::Orphanage;
1293 : : };
1294 : :
1295 : : class FooInterface::PassScriptResults::Builder {
1296 : : public:
1297 : : typedef PassScriptResults Builds;
1298 : :
1299 : : Builder() = delete; // Deleted to discourage incorrect usage.
1300 : : // You can explicitly initialize to nullptr instead.
1301 : : inline Builder(decltype(nullptr)) {}
1302 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1303 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1304 : 1 : inline Reader asReader() const { return *this; }
1305 : :
1306 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1307 : : #if !CAPNP_LITE
1308 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1309 : : #endif // !CAPNP_LITE
1310 : :
1311 : : inline bool hasResult();
1312 : : inline ::capnp::Data::Builder getResult();
1313 : : inline void setResult( ::capnp::Data::Reader value);
1314 : : inline ::capnp::Data::Builder initResult(unsigned int size);
1315 : : inline void adoptResult(::capnp::Orphan< ::capnp::Data>&& value);
1316 : : inline ::capnp::Orphan< ::capnp::Data> disownResult();
1317 : :
1318 : : private:
1319 : : ::capnp::_::StructBuilder _builder;
1320 : : template <typename, ::capnp::Kind>
1321 : : friend struct ::capnp::ToDynamic_;
1322 : : friend class ::capnp::Orphanage;
1323 : : template <typename, ::capnp::Kind>
1324 : : friend struct ::capnp::_::PointerHelpers;
1325 : : };
1326 : :
1327 : : #if !CAPNP_LITE
1328 [ - + ]: 2 : class FooInterface::PassScriptResults::Pipeline {
1329 : : public:
1330 : : typedef PassScriptResults Pipelines;
1331 : :
1332 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1333 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1334 : 1 : : _typeless(kj::mv(typeless)) {}
1335 : :
1336 : : private:
1337 : : ::capnp::AnyPointer::Pipeline _typeless;
1338 : : friend class ::capnp::PipelineHook;
1339 : : template <typename, ::capnp::Kind>
1340 : : friend struct ::capnp::ToDynamic_;
1341 : : };
1342 : : #endif // !CAPNP_LITE
1343 : :
1344 : : class FooInterface::PassTransactionsParams::Reader {
1345 : : public:
1346 : : typedef PassTransactionsParams Reads;
1347 : :
1348 : : Reader() = default;
1349 : 3 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1350 : :
1351 : : inline ::capnp::MessageSize totalSize() const {
1352 : : return _reader.totalSize().asPublic();
1353 : : }
1354 : :
1355 : : #if !CAPNP_LITE
1356 : 2 : inline ::kj::StringTree toString() const {
1357 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1358 : : }
1359 : : #endif // !CAPNP_LITE
1360 : :
1361 : : inline bool hasArg() const;
1362 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader getArg() const;
1363 : :
1364 : : private:
1365 : : ::capnp::_::StructReader _reader;
1366 : : template <typename, ::capnp::Kind>
1367 : : friend struct ::capnp::ToDynamic_;
1368 : : template <typename, ::capnp::Kind>
1369 : : friend struct ::capnp::_::PointerHelpers;
1370 : : template <typename, ::capnp::Kind>
1371 : : friend struct ::capnp::List;
1372 : : friend class ::capnp::MessageBuilder;
1373 : : friend class ::capnp::Orphanage;
1374 : : };
1375 : :
1376 : : class FooInterface::PassTransactionsParams::Builder {
1377 : : public:
1378 : : typedef PassTransactionsParams Builds;
1379 : :
1380 : : Builder() = delete; // Deleted to discourage incorrect usage.
1381 : : // You can explicitly initialize to nullptr instead.
1382 : : inline Builder(decltype(nullptr)) {}
1383 : 1 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1384 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1385 : 1 : inline Reader asReader() const { return *this; }
1386 : :
1387 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1388 : : #if !CAPNP_LITE
1389 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1390 : : #endif // !CAPNP_LITE
1391 : :
1392 : : inline bool hasArg();
1393 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder getArg();
1394 : : inline void setArg( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value);
1395 : : inline void setArg(::kj::ArrayPtr<const ::capnp::Data::Reader> value);
1396 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder initArg(unsigned int size);
1397 : : inline void adoptArg(::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value);
1398 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> disownArg();
1399 : :
1400 : : private:
1401 : : ::capnp::_::StructBuilder _builder;
1402 : : template <typename, ::capnp::Kind>
1403 : : friend struct ::capnp::ToDynamic_;
1404 : : friend class ::capnp::Orphanage;
1405 : : template <typename, ::capnp::Kind>
1406 : : friend struct ::capnp::_::PointerHelpers;
1407 : : };
1408 : :
1409 : : #if !CAPNP_LITE
1410 : : class FooInterface::PassTransactionsParams::Pipeline {
1411 : : public:
1412 : : typedef PassTransactionsParams Pipelines;
1413 : :
1414 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1415 : : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1416 : : : _typeless(kj::mv(typeless)) {}
1417 : :
1418 : : private:
1419 : : ::capnp::AnyPointer::Pipeline _typeless;
1420 : : friend class ::capnp::PipelineHook;
1421 : : template <typename, ::capnp::Kind>
1422 : : friend struct ::capnp::ToDynamic_;
1423 : : };
1424 : : #endif // !CAPNP_LITE
1425 : :
1426 : : class FooInterface::PassTransactionsResults::Reader {
1427 : : public:
1428 : : typedef PassTransactionsResults Reads;
1429 : :
1430 : : Reader() = default;
1431 : 2 : inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
1432 : :
1433 : : inline ::capnp::MessageSize totalSize() const {
1434 : : return _reader.totalSize().asPublic();
1435 : : }
1436 : :
1437 : : #if !CAPNP_LITE
1438 : 2 : inline ::kj::StringTree toString() const {
1439 [ + - ]: 2 : return ::capnp::_::structString(_reader, *_capnpPrivate::brand());
1440 : : }
1441 : : #endif // !CAPNP_LITE
1442 : :
1443 : : inline bool hasResult() const;
1444 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader getResult() const;
1445 : :
1446 : : private:
1447 : : ::capnp::_::StructReader _reader;
1448 : : template <typename, ::capnp::Kind>
1449 : : friend struct ::capnp::ToDynamic_;
1450 : : template <typename, ::capnp::Kind>
1451 : : friend struct ::capnp::_::PointerHelpers;
1452 : : template <typename, ::capnp::Kind>
1453 : : friend struct ::capnp::List;
1454 : : friend class ::capnp::MessageBuilder;
1455 : : friend class ::capnp::Orphanage;
1456 : : };
1457 : :
1458 : : class FooInterface::PassTransactionsResults::Builder {
1459 : : public:
1460 : : typedef PassTransactionsResults Builds;
1461 : :
1462 : : Builder() = delete; // Deleted to discourage incorrect usage.
1463 : : // You can explicitly initialize to nullptr instead.
1464 : : inline Builder(decltype(nullptr)) {}
1465 : 3 : inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
1466 : 1 : inline operator Reader() const { return Reader(_builder.asReader()); }
1467 : 1 : inline Reader asReader() const { return *this; }
1468 : :
1469 : : inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
1470 : : #if !CAPNP_LITE
1471 : 1 : inline ::kj::StringTree toString() const { return asReader().toString(); }
1472 : : #endif // !CAPNP_LITE
1473 : :
1474 : : inline bool hasResult();
1475 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder getResult();
1476 : : inline void setResult( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value);
1477 : : inline void setResult(::kj::ArrayPtr<const ::capnp::Data::Reader> value);
1478 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder initResult(unsigned int size);
1479 : : inline void adoptResult(::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value);
1480 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> disownResult();
1481 : :
1482 : : private:
1483 : : ::capnp::_::StructBuilder _builder;
1484 : : template <typename, ::capnp::Kind>
1485 : : friend struct ::capnp::ToDynamic_;
1486 : : friend class ::capnp::Orphanage;
1487 : : template <typename, ::capnp::Kind>
1488 : : friend struct ::capnp::_::PointerHelpers;
1489 : : };
1490 : :
1491 : : #if !CAPNP_LITE
1492 [ - + ]: 2 : class FooInterface::PassTransactionsResults::Pipeline {
1493 : : public:
1494 : : typedef PassTransactionsResults Pipelines;
1495 : :
1496 : : inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
1497 : 1 : inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
1498 : 1 : : _typeless(kj::mv(typeless)) {}
1499 : :
1500 : : private:
1501 : : ::capnp::AnyPointer::Pipeline _typeless;
1502 : : friend class ::capnp::PipelineHook;
1503 : : template <typename, ::capnp::Kind>
1504 : : friend struct ::capnp::ToDynamic_;
1505 : : };
1506 : : #endif // !CAPNP_LITE
1507 : :
1508 : : // =======================================================================================
1509 : :
1510 : : #if !CAPNP_LITE
1511 : : inline FooInterface::Client::Client(decltype(nullptr))
1512 : : : ::capnp::Capability::Client(nullptr) {}
1513 : 1 : inline FooInterface::Client::Client(
1514 : : ::kj::Own< ::capnp::ClientHook>&& hook)
1515 [ + - ]: 1 : : ::capnp::Capability::Client(::kj::mv(hook)) {}
1516 : : template <typename _t, typename>
1517 : : inline FooInterface::Client::Client(::kj::Own<_t>&& server)
1518 : : : ::capnp::Capability::Client(::kj::mv(server)) {}
1519 : : template <typename _t, typename>
1520 : : inline FooInterface::Client::Client(::kj::Promise<_t>&& promise)
1521 : : : ::capnp::Capability::Client(::kj::mv(promise)) {}
1522 : : inline FooInterface::Client::Client(::kj::Exception&& exception)
1523 : : : ::capnp::Capability::Client(::kj::mv(exception)) {}
1524 : : inline ::gen::FooInterface::Client& FooInterface::Client::operator=(Client& other) {
1525 : : ::capnp::Capability::Client::operator=(other);
1526 : : return *this;
1527 : : }
1528 : : inline ::gen::FooInterface::Client& FooInterface::Client::operator=(Client&& other) {
1529 : : ::capnp::Capability::Client::operator=(kj::mv(other));
1530 : : return *this;
1531 : : }
1532 : :
1533 : : #endif // !CAPNP_LITE
1534 : 1 : inline ::int32_t FooInterface::AddParams::Reader::getA() const {
1535 [ + - - + ]: 2 : return _reader.getDataField< ::int32_t>(
1536 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
1537 : : }
1538 : :
1539 : : inline ::int32_t FooInterface::AddParams::Builder::getA() {
1540 : : return _builder.getDataField< ::int32_t>(
1541 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
1542 : : }
1543 : 1 : inline void FooInterface::AddParams::Builder::setA( ::int32_t value) {
1544 : 1 : _builder.setDataField< ::int32_t>(
1545 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
1546 : : }
1547 : :
1548 : 1 : inline ::int32_t FooInterface::AddParams::Reader::getB() const {
1549 [ + - - + ]: 2 : return _reader.getDataField< ::int32_t>(
1550 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
1551 : : }
1552 : :
1553 : : inline ::int32_t FooInterface::AddParams::Builder::getB() {
1554 : : return _builder.getDataField< ::int32_t>(
1555 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS);
1556 : : }
1557 : 1 : inline void FooInterface::AddParams::Builder::setB( ::int32_t value) {
1558 : 1 : _builder.setDataField< ::int32_t>(
1559 : : ::capnp::bounded<1>() * ::capnp::ELEMENTS, value);
1560 : : }
1561 : :
1562 : 1 : inline ::int32_t FooInterface::AddResults::Reader::getResult() const {
1563 [ + - ]: 1 : return _reader.getDataField< ::int32_t>(
1564 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
1565 : : }
1566 : :
1567 : : inline ::int32_t FooInterface::AddResults::Builder::getResult() {
1568 : : return _builder.getDataField< ::int32_t>(
1569 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS);
1570 : : }
1571 : 1 : inline void FooInterface::AddResults::Builder::setResult( ::int32_t value) {
1572 : 1 : _builder.setDataField< ::int32_t>(
1573 : : ::capnp::bounded<0>() * ::capnp::ELEMENTS, value);
1574 : : }
1575 : :
1576 : 1 : inline bool FooInterface::PassOutPointParams::Reader::hasArg() const {
1577 [ + - ]: 2 : return !_reader.getPointerField(
1578 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1579 : : }
1580 : : inline bool FooInterface::PassOutPointParams::Builder::hasArg() {
1581 : : return !_builder.getPointerField(
1582 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1583 : : }
1584 : 1 : inline ::capnp::Data::Reader FooInterface::PassOutPointParams::Reader::getArg() const {
1585 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1586 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1587 : : }
1588 : : inline ::capnp::Data::Builder FooInterface::PassOutPointParams::Builder::getArg() {
1589 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1590 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1591 : : }
1592 : : inline void FooInterface::PassOutPointParams::Builder::setArg( ::capnp::Data::Reader value) {
1593 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1594 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1595 : : }
1596 : 1 : inline ::capnp::Data::Builder FooInterface::PassOutPointParams::Builder::initArg(unsigned int size) {
1597 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1598 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1599 : : }
1600 : : inline void FooInterface::PassOutPointParams::Builder::adoptArg(
1601 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1602 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1603 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1604 : : }
1605 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassOutPointParams::Builder::disownArg() {
1606 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1607 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1608 : : }
1609 : :
1610 : 1 : inline bool FooInterface::PassOutPointResults::Reader::hasResult() const {
1611 [ + - ]: 2 : return !_reader.getPointerField(
1612 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1613 : : }
1614 : : inline bool FooInterface::PassOutPointResults::Builder::hasResult() {
1615 : : return !_builder.getPointerField(
1616 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1617 : : }
1618 : 1 : inline ::capnp::Data::Reader FooInterface::PassOutPointResults::Reader::getResult() const {
1619 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1620 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1621 : : }
1622 : : inline ::capnp::Data::Builder FooInterface::PassOutPointResults::Builder::getResult() {
1623 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1624 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1625 : : }
1626 : : inline void FooInterface::PassOutPointResults::Builder::setResult( ::capnp::Data::Reader value) {
1627 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1628 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1629 : : }
1630 : 1 : inline ::capnp::Data::Builder FooInterface::PassOutPointResults::Builder::initResult(unsigned int size) {
1631 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1632 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1633 : : }
1634 : : inline void FooInterface::PassOutPointResults::Builder::adoptResult(
1635 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1636 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1637 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1638 : : }
1639 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassOutPointResults::Builder::disownResult() {
1640 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1641 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1642 : : }
1643 : :
1644 : : inline bool FooInterface::PassUniValueParams::Reader::hasArg() const {
1645 : : return !_reader.getPointerField(
1646 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1647 : : }
1648 : : inline bool FooInterface::PassUniValueParams::Builder::hasArg() {
1649 : : return !_builder.getPointerField(
1650 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1651 : : }
1652 : 1 : inline ::capnp::Text::Reader FooInterface::PassUniValueParams::Reader::getArg() const {
1653 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
1654 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1655 : : }
1656 : : inline ::capnp::Text::Builder FooInterface::PassUniValueParams::Builder::getArg() {
1657 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
1658 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1659 : : }
1660 : : inline void FooInterface::PassUniValueParams::Builder::setArg( ::capnp::Text::Reader value) {
1661 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
1662 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1663 : : }
1664 : 1 : inline ::capnp::Text::Builder FooInterface::PassUniValueParams::Builder::initArg(unsigned int size) {
1665 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
1666 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1667 : : }
1668 : : inline void FooInterface::PassUniValueParams::Builder::adoptArg(
1669 : : ::capnp::Orphan< ::capnp::Text>&& value) {
1670 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
1671 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1672 : : }
1673 : : inline ::capnp::Orphan< ::capnp::Text> FooInterface::PassUniValueParams::Builder::disownArg() {
1674 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
1675 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1676 : : }
1677 : :
1678 : : inline bool FooInterface::PassUniValueResults::Reader::hasResult() const {
1679 : : return !_reader.getPointerField(
1680 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1681 : : }
1682 : : inline bool FooInterface::PassUniValueResults::Builder::hasResult() {
1683 : : return !_builder.getPointerField(
1684 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1685 : : }
1686 : 1 : inline ::capnp::Text::Reader FooInterface::PassUniValueResults::Reader::getResult() const {
1687 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_reader.getPointerField(
1688 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1689 : : }
1690 : : inline ::capnp::Text::Builder FooInterface::PassUniValueResults::Builder::getResult() {
1691 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::get(_builder.getPointerField(
1692 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1693 : : }
1694 : : inline void FooInterface::PassUniValueResults::Builder::setResult( ::capnp::Text::Reader value) {
1695 : : ::capnp::_::PointerHelpers< ::capnp::Text>::set(_builder.getPointerField(
1696 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1697 : : }
1698 : 1 : inline ::capnp::Text::Builder FooInterface::PassUniValueResults::Builder::initResult(unsigned int size) {
1699 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Text>::init(_builder.getPointerField(
1700 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1701 : : }
1702 : : inline void FooInterface::PassUniValueResults::Builder::adoptResult(
1703 : : ::capnp::Orphan< ::capnp::Text>&& value) {
1704 : : ::capnp::_::PointerHelpers< ::capnp::Text>::adopt(_builder.getPointerField(
1705 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1706 : : }
1707 : : inline ::capnp::Orphan< ::capnp::Text> FooInterface::PassUniValueResults::Builder::disownResult() {
1708 : : return ::capnp::_::PointerHelpers< ::capnp::Text>::disown(_builder.getPointerField(
1709 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1710 : : }
1711 : :
1712 : 1 : inline bool FooInterface::PassTransactionParams::Reader::hasArg() const {
1713 [ + - ]: 2 : return !_reader.getPointerField(
1714 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1715 : : }
1716 : : inline bool FooInterface::PassTransactionParams::Builder::hasArg() {
1717 : : return !_builder.getPointerField(
1718 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1719 : : }
1720 : 2 : inline ::capnp::Data::Reader FooInterface::PassTransactionParams::Reader::getArg() const {
1721 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1722 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1723 : : }
1724 : : inline ::capnp::Data::Builder FooInterface::PassTransactionParams::Builder::getArg() {
1725 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1726 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1727 : : }
1728 : : inline void FooInterface::PassTransactionParams::Builder::setArg( ::capnp::Data::Reader value) {
1729 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1730 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1731 : : }
1732 : 1 : inline ::capnp::Data::Builder FooInterface::PassTransactionParams::Builder::initArg(unsigned int size) {
1733 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1734 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1735 : : }
1736 : : inline void FooInterface::PassTransactionParams::Builder::adoptArg(
1737 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1738 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1739 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1740 : : }
1741 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassTransactionParams::Builder::disownArg() {
1742 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1743 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1744 : : }
1745 : :
1746 : 1 : inline bool FooInterface::PassTransactionResults::Reader::hasResult() const {
1747 [ + - ]: 2 : return !_reader.getPointerField(
1748 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1749 : : }
1750 : : inline bool FooInterface::PassTransactionResults::Builder::hasResult() {
1751 : : return !_builder.getPointerField(
1752 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1753 : : }
1754 : 2 : inline ::capnp::Data::Reader FooInterface::PassTransactionResults::Reader::getResult() const {
1755 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1756 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1757 : : }
1758 : : inline ::capnp::Data::Builder FooInterface::PassTransactionResults::Builder::getResult() {
1759 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1760 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1761 : : }
1762 : : inline void FooInterface::PassTransactionResults::Builder::setResult( ::capnp::Data::Reader value) {
1763 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1764 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1765 : : }
1766 : 1 : inline ::capnp::Data::Builder FooInterface::PassTransactionResults::Builder::initResult(unsigned int size) {
1767 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1768 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1769 : : }
1770 : : inline void FooInterface::PassTransactionResults::Builder::adoptResult(
1771 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1772 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1773 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1774 : : }
1775 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassTransactionResults::Builder::disownResult() {
1776 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1777 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1778 : : }
1779 : :
1780 : : inline bool FooInterface::PassVectorCharParams::Reader::hasArg() const {
1781 : : return !_reader.getPointerField(
1782 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1783 : : }
1784 : : inline bool FooInterface::PassVectorCharParams::Builder::hasArg() {
1785 : : return !_builder.getPointerField(
1786 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1787 : : }
1788 : 2 : inline ::capnp::Data::Reader FooInterface::PassVectorCharParams::Reader::getArg() const {
1789 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1790 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1791 : : }
1792 : : inline ::capnp::Data::Builder FooInterface::PassVectorCharParams::Builder::getArg() {
1793 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1794 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1795 : : }
1796 : : inline void FooInterface::PassVectorCharParams::Builder::setArg( ::capnp::Data::Reader value) {
1797 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1798 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1799 : : }
1800 : 1 : inline ::capnp::Data::Builder FooInterface::PassVectorCharParams::Builder::initArg(unsigned int size) {
1801 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1802 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1803 : : }
1804 : : inline void FooInterface::PassVectorCharParams::Builder::adoptArg(
1805 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1806 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1807 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1808 : : }
1809 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassVectorCharParams::Builder::disownArg() {
1810 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1811 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1812 : : }
1813 : :
1814 : : inline bool FooInterface::PassVectorCharResults::Reader::hasResult() const {
1815 : : return !_reader.getPointerField(
1816 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1817 : : }
1818 : : inline bool FooInterface::PassVectorCharResults::Builder::hasResult() {
1819 : : return !_builder.getPointerField(
1820 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1821 : : }
1822 : 2 : inline ::capnp::Data::Reader FooInterface::PassVectorCharResults::Reader::getResult() const {
1823 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1824 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1825 : : }
1826 : : inline ::capnp::Data::Builder FooInterface::PassVectorCharResults::Builder::getResult() {
1827 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1828 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1829 : : }
1830 : : inline void FooInterface::PassVectorCharResults::Builder::setResult( ::capnp::Data::Reader value) {
1831 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1832 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1833 : : }
1834 : 1 : inline ::capnp::Data::Builder FooInterface::PassVectorCharResults::Builder::initResult(unsigned int size) {
1835 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1836 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1837 : : }
1838 : : inline void FooInterface::PassVectorCharResults::Builder::adoptResult(
1839 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1840 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1841 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1842 : : }
1843 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassVectorCharResults::Builder::disownResult() {
1844 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1845 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1846 : : }
1847 : :
1848 : : inline bool FooInterface::PassScriptParams::Reader::hasArg() const {
1849 : : return !_reader.getPointerField(
1850 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1851 : : }
1852 : : inline bool FooInterface::PassScriptParams::Builder::hasArg() {
1853 : : return !_builder.getPointerField(
1854 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1855 : : }
1856 : 2 : inline ::capnp::Data::Reader FooInterface::PassScriptParams::Reader::getArg() const {
1857 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1858 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1859 : : }
1860 : : inline ::capnp::Data::Builder FooInterface::PassScriptParams::Builder::getArg() {
1861 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1862 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1863 : : }
1864 : : inline void FooInterface::PassScriptParams::Builder::setArg( ::capnp::Data::Reader value) {
1865 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1866 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1867 : : }
1868 : 1 : inline ::capnp::Data::Builder FooInterface::PassScriptParams::Builder::initArg(unsigned int size) {
1869 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1870 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1871 : : }
1872 : : inline void FooInterface::PassScriptParams::Builder::adoptArg(
1873 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1874 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1875 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1876 : : }
1877 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassScriptParams::Builder::disownArg() {
1878 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1879 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1880 : : }
1881 : :
1882 : : inline bool FooInterface::PassScriptResults::Reader::hasResult() const {
1883 : : return !_reader.getPointerField(
1884 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1885 : : }
1886 : : inline bool FooInterface::PassScriptResults::Builder::hasResult() {
1887 : : return !_builder.getPointerField(
1888 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1889 : : }
1890 : 2 : inline ::capnp::Data::Reader FooInterface::PassScriptResults::Reader::getResult() const {
1891 [ + - ]: 4 : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_reader.getPointerField(
1892 : 2 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1893 : : }
1894 : : inline ::capnp::Data::Builder FooInterface::PassScriptResults::Builder::getResult() {
1895 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::get(_builder.getPointerField(
1896 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1897 : : }
1898 : : inline void FooInterface::PassScriptResults::Builder::setResult( ::capnp::Data::Reader value) {
1899 : : ::capnp::_::PointerHelpers< ::capnp::Data>::set(_builder.getPointerField(
1900 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1901 : : }
1902 : 1 : inline ::capnp::Data::Builder FooInterface::PassScriptResults::Builder::initResult(unsigned int size) {
1903 : 1 : return ::capnp::_::PointerHelpers< ::capnp::Data>::init(_builder.getPointerField(
1904 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1905 : : }
1906 : : inline void FooInterface::PassScriptResults::Builder::adoptResult(
1907 : : ::capnp::Orphan< ::capnp::Data>&& value) {
1908 : : ::capnp::_::PointerHelpers< ::capnp::Data>::adopt(_builder.getPointerField(
1909 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1910 : : }
1911 : : inline ::capnp::Orphan< ::capnp::Data> FooInterface::PassScriptResults::Builder::disownResult() {
1912 : : return ::capnp::_::PointerHelpers< ::capnp::Data>::disown(_builder.getPointerField(
1913 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1914 : : }
1915 : :
1916 : : inline bool FooInterface::PassTransactionsParams::Reader::hasArg() const {
1917 : : return !_reader.getPointerField(
1918 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1919 : : }
1920 : : inline bool FooInterface::PassTransactionsParams::Builder::hasArg() {
1921 : : return !_builder.getPointerField(
1922 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1923 : : }
1924 : 1 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader FooInterface::PassTransactionsParams::Reader::getArg() const {
1925 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_reader.getPointerField(
1926 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1927 : : }
1928 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder FooInterface::PassTransactionsParams::Builder::getArg() {
1929 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_builder.getPointerField(
1930 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1931 : : }
1932 : : inline void FooInterface::PassTransactionsParams::Builder::setArg( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value) {
1933 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
1934 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1935 : : }
1936 : : inline void FooInterface::PassTransactionsParams::Builder::setArg(::kj::ArrayPtr<const ::capnp::Data::Reader> value) {
1937 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
1938 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1939 : : }
1940 : 1 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder FooInterface::PassTransactionsParams::Builder::initArg(unsigned int size) {
1941 : 1 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::init(_builder.getPointerField(
1942 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1943 : : }
1944 : : inline void FooInterface::PassTransactionsParams::Builder::adoptArg(
1945 : : ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value) {
1946 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::adopt(_builder.getPointerField(
1947 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1948 : : }
1949 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> FooInterface::PassTransactionsParams::Builder::disownArg() {
1950 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::disown(_builder.getPointerField(
1951 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1952 : : }
1953 : :
1954 : : inline bool FooInterface::PassTransactionsResults::Reader::hasResult() const {
1955 : : return !_reader.getPointerField(
1956 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1957 : : }
1958 : : inline bool FooInterface::PassTransactionsResults::Builder::hasResult() {
1959 : : return !_builder.getPointerField(
1960 : : ::capnp::bounded<0>() * ::capnp::POINTERS).isNull();
1961 : : }
1962 : 1 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader FooInterface::PassTransactionsResults::Reader::getResult() const {
1963 [ + - ]: 2 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_reader.getPointerField(
1964 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS));
1965 : : }
1966 : : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder FooInterface::PassTransactionsResults::Builder::getResult() {
1967 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::get(_builder.getPointerField(
1968 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1969 : : }
1970 : : inline void FooInterface::PassTransactionsResults::Builder::setResult( ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Reader value) {
1971 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
1972 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1973 : : }
1974 : : inline void FooInterface::PassTransactionsResults::Builder::setResult(::kj::ArrayPtr<const ::capnp::Data::Reader> value) {
1975 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::set(_builder.getPointerField(
1976 : : ::capnp::bounded<0>() * ::capnp::POINTERS), value);
1977 : : }
1978 : 1 : inline ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>::Builder FooInterface::PassTransactionsResults::Builder::initResult(unsigned int size) {
1979 : 1 : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::init(_builder.getPointerField(
1980 : 1 : ::capnp::bounded<0>() * ::capnp::POINTERS), size);
1981 : : }
1982 : : inline void FooInterface::PassTransactionsResults::Builder::adoptResult(
1983 : : ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>&& value) {
1984 : : ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::adopt(_builder.getPointerField(
1985 : : ::capnp::bounded<0>() * ::capnp::POINTERS), kj::mv(value));
1986 : : }
1987 : : inline ::capnp::Orphan< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>> FooInterface::PassTransactionsResults::Builder::disownResult() {
1988 : : return ::capnp::_::PointerHelpers< ::capnp::List< ::capnp::Data, ::capnp::Kind::BLOB>>::disown(_builder.getPointerField(
1989 : : ::capnp::bounded<0>() * ::capnp::POINTERS));
1990 : : }
1991 : :
1992 : : } // namespace
1993 : :
1994 : : CAPNP_END_HEADER
1995 : :
|