FIDL internal library zx
The zx
library is is defined in //zircon/vdso, and can be
depended on in-tree by adding the //zircon/vdso/zx
target to a fidl
target's public_deps
. If invoking fidlc
directly, zx_common.fidl
would
need to be included with a --files
argument if necessary.
You can then reference this library with the using
statement:
using zx;
The types generally correspond to Zircon System
Types. For example,
zx.Duration
corresponds to zx_duration_t
.
The CHANNEL_MAX_MSG_BYTES
and CHANNEL_MAX_MSG_HANDLES
are bound at fidlc
compile time (that is, when the compiler
is compiled) and reflect the constants present at that time.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-18 UTC."],[],[]]