Lines Matching +full:int8 +full:- +full:array
46 ninja -C out/r services/widget/public/interfaces
62 [documentation for individual target languages](#Generated-Code-For-Target-Languages).
79 |-------------------------------|-------------------------------------------------------|
81 | `int8`, `uint8` | Signed or unsigned 8-bit integer.
82 | `int16`, `uint16` | Signed or unsigned 16-bit integer.
83 | `int32`, `uint32` | Signed or unsigned 32-bit integer.
84 | `int64`, `uint64` | Signed or unsigned 64-bit integer.
85 | `float`, `double` | 32- or 64-bit floating point number.
86 | `string` | UTF-8 encoded string.
87 | `array<T>` | Array of any Mojom type *T*; for example, `array<uint8>` or `arra…
88 | `array<T, N>` | Fixed-length array of any Mojom type *T*. The parameter *N* must …
89 | `map<S, T>` | Associated array maping values of type *S* to values of type *T*.…
95 | *`InterfaceType`* | Any user-defined Mojom interface type. This is sugar for a strong…
96 … | An interface request for any user-defined Mojom interface type. This is sugar for a mor…
97 …erfaceType`* | An associated interface handle. See [Associated Interfaces](#Associated-Interfaces)
98 …rfaceType&`* | An associated interface request. See [Associated Interfaces](#Associated-Interfaces)
124 declare a module name with at least (and preferrably exactly) one top-level name
129 reading non-Mojom code, and it also avoids namespace collisions in the fairly
142 Import paths are always relative to the top-level directory.
159 [Primitive Types](#Primitive-Types) section.
165 int32 id = -1;
191 int8 signed_8bit_value = 42;
211 // such fields nullable -- otherwise messages would need to be infinitely long
216 array<int32> numbers;
217 array<int32>? maybe_more_numbers;
220 array<array<array<AnEnum>>> this_works_but_really_plz_stop;
224 array<AllTheThings?> more_maybe_things;
226 // Fixed-size arrays get some extra validation on the receiving end to ensure
228 array<uint64, 2> uuid;
231 // non-handle, non-collection type, and value types may be any supported
236 map<StringPair, map<int32, array<map<string, string>?>?>?> ridiculous;
240 // "Foo&" type syntax respectively) are just strongly-typed message pipe
258 [documentation for individual target languages](#Generated-Code-For-Target-Languages).
275 array<uint64, 2> guid;
281 [documentation for individual target languages](#Generated-Code-For-Target-Languages).
307 That that similar to C-style enums, individual values may be explicitly assigned
312 target language. See [documentation for individual target languages](#Generated-Code-For-Target-Lan…
338 target language. See [documentation for individual target languages](#Generated-Code-For-Target-Lan…
352 MyOtherMessage(string name, array<uint8> bytes);
354 // A request which expects a single-argument response.
358 MyMessageWithMoarResponse(string a, string b) => (int8 c, int8 d);
375 [Synchronous Calls](/mojo/public/cpp/bindings/README.md#Synchronous-Calls)
389 See [Using Legacy IPC Traits](/ipc/README.md#Using-Legacy-IPC-Traits) for
427 [C++ Connection Errors](/mojo/public/cpp/bindings/README.md#Connection-Errors),
428 [Java Connection Errors](/mojo/public/java/bindings/README.md#Connection-Errors),
430 [JavaScript Connection Errors](/mojo/public/js/README.md#Connection-Errors) for
436 ### Non-Nullable Objects
440 [Primitive Types](#Primitive-Types).) If a field or parameter is **not** marked
480 [type mapping](/mojo/public/cpp/bindings/README.md#Type-Mapping) system for C++
482 validation failure behavior as the built-in type validation routines.
486 As mentioned in the [Primitive Types](#Primitive-Types) section above, interface
488 essentially means that they are piggy-backed on some other interface's message
498 [C++ Associated Interfaces](/mojo/public/cpp/bindings/README.md#Associated-Interfaces).
518 This document shows how to extend Mojom interfaces in a backwards-compatible
519 way. Changing interfaces in a non-backwards-compatible way is not discussed,
562 * For an *N*-field struct or *N*-method interface, the set of explicitly
563 assigned ordinal values must be limited to the range *[0, N-1]*.
567 backwards-compatible:
579 See [Primitive Types](#Primitive-Types).
593 expect a response is a not a backwards-compatible change.
614 [MinVersion=1] array<uint8>? finger_print);
617 AttachFingerPrint(uint64 id, array<uint8> finger_print)
622 Similar to [versioned structs](#Versioned-Structs), when you pass the parameter
635 [C++ Versioning Considerations](/mojo/public/cpp/bindings/README.md#Versioning-Considerations)
637 [Java Versioning Considerations](/mojo/public/java/bindings/README.md#Versioning-Considerations)
641 **By default, enums are non-extensible**, which means that generated message
643 value is seen for a non-extensible enum field or parameter, a validation error
675 [C++ Versioning Considerations](/mojo/public/cpp/bindings/README.md#Versioning-Considerations)
680 Below is the (BNF-ish) context-free grammar of the Mojom language:
725 | Array
730 NumericType = "bool" | "int8" | "uint8" | "int16" | "uint16" | "int32"
737 Array = "array" "<" TypeSpec ">"
738 FixedArray = "array" "<" TypeSpec "," IntConstDec ">"
761 Integer = IntConst | "+" IntConst | "-" IntConst
764 Float = FloatConst | "+" FloatConst | "-" FloatConst
768 Identifier = /[a-zA-Z_][0-9a-zA-Z_]*/
769 IntConstDec = /0|(1-9[0-9]*)/
770 IntConstHex = /0[xX][0-9a-fA-F]+/
771 OrdinalValue = /@(0|(1-9[0-9]*))/
772 FloatConst = ... # Imagine it's close enough to C-style float syntax.
773 StringLiteral = ... # Imagine it's close enough to C-style string literals, including escapes.
778 [Mojom Message Format](https://docs.google.com/document/d/13pv9cFh5YKuBggDBQ1-AL8VReF-IYpFOFpRfvWFr…
782 [Input Format of Mojom Message Validation Tests](https://docs.google.com/document/d/1-y-2IYctyX2NPa…