| // Copyright 2021 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| library fidl.llcpp.buffersize.test; |
| |
| protocol Protocol { |
| RequestWith496ByteArray(struct { |
| value array<byte, 496>; |
| }); |
| RequestWith497ByteArray(struct { |
| value array<byte, 497>; |
| }); |
| |
| // A small request that should be stack-allocated when sending. |
| SmallRequestWithFlexibleType(struct { |
| u flexible union { |
| 1: value int64; |
| }; |
| }); |
| |
| SmallResponseWithFlexibleType() -> (struct { |
| r flexible union { |
| 1: value int64; |
| }; |
| }); |
| |
| RequestWith496ByteArrayAndResponseOf256Bytes(struct { |
| value array<byte, 496>; |
| }) -> (struct { |
| value array<byte, 240>; |
| }); |
| |
| -> EventOf256Bytes(struct { |
| value array<byte, 240>; |
| }); |
| }; |