class Bits
Defined at line 20 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
|Bits| is strict, hence is guaranteed to only contain
members defined in the FIDL schema when receiving it in a message.
Sending unknown members will fail at runtime.
Public Members
static Bits kA
static Bits kMask
Public Methods
void Bits ()
Defined at line 22 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
void Bits (uint8_t value)
Constructs an instance of |Bits| from an underlying primitive value,
preserving any bit member not defined in the FIDL schema.
Defined at line 26 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
uint8_t operator unsigned char ()
Defined at line 30 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
bool operator bool ()
Defined at line 31 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
bool operator== (const Bits & other)
Defined at line 32 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
bool operator!= (const Bits & other)
Defined at line 33 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
std::optional<Bits> TryFrom (uint8_t value)
Constructs an instance of |Bits| from an underlying primitive value
if the primitive does not contain any unknown members not defined in the
FIDL schema. Otherwise, returns |std::nullopt|.
Defined at line 47 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits TruncatingUnknown (uint8_t value)
Constructs an instance of |Bits| from an underlying primitive value,
clearing any bit member not defined in the FIDL schema.
Defined at line 56 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits operator~ ()
Defined at line 67 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits operator| (const Bits & other)
Defined at line 71 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits operator& (const Bits & other)
Defined at line 76 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits operator^ (const Bits & other)
Defined at line 81 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
Bits operator- (const Bits & other)
Defined at line 86 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
void operator|= (const Bits & other)
Defined at line 91 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
void operator&= (const Bits & other)
Defined at line 96 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
void operator^= (const Bits & other)
Defined at line 101 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h
void operator-= (const Bits & other)
Defined at line 106 of file fidling/gen/sdk/lib/fidl/cpp/tests/integration/fidl.cpp.constraint.protocol.test/cpp/fidl/fidl.cpp.constraint.protocol.test/cpp/common_types.h