Namespaces

Enumerations

enum Direction
Name Value
kUnknown 0
kClient 1
kServer 2

Defined at line 33 of file ../../src/lib/fidl_codec/message_decoder.h

enum SyscallFidlType
Name Value
kOutputMessage 0
kInputMessage 1
kOutputRequest 2
kInputResponse 3

Defined at line 35 of file ../../src/lib/fidl_codec/message_decoder.h

enum WireVersion
Name Value
kWireV2 0

Defined at line 49 of file ../../src/lib/fidl_codec/library_loader.h

Records

Functions

  • void EncodeStruct (proto::Struct * dst, const fidl_codec::StructValue * node)

    Defined at line 15 of file ../../src/lib/fidl_codec/proto_value.cc

  • std::string StatusName (zx_status_t status)

    Defined at line 16 of file ../../src/lib/fidl_codec/status.cc

  • void EncodeTable (proto::Table * dst, const fidl_codec::TableValue * node)

    Defined at line 27 of file ../../src/lib/fidl_codec/proto_value.cc

  • bool DecodeRequest (const ProtocolMethod * method, const uint8_t * bytes, size_t num_bytes, const zx_handle_disposition_t * handles, size_t num_handles, std::unique_ptr<Value> * decoded_object, std::ostream & error_stream)

    Given a wire-formatted |message| and a schema for that message represented by

    |method|, populates |decoded_object| with an object representing that

    request.

    Returns false if it cannot decode the message using the metadata associated

    with the method.

    If it cannot decode the message, |error_stream| will contain one or more errors which

    have been thrown during the decoding. Each error starts with the absolute offset in the

    buffer (where the error occurred) and ends with a new line.

    Defined at line 28 of file ../../src/lib/fidl_codec/wire_parser.cc

  • void ShortObjTypeName (zx_obj_type_t obj_type, PrettyPrinter & printer)

    Defined at line 29 of file ../../src/lib/fidl_codec/display_handle.cc

  • std::string DocumentToString (rapidjson::Document * document)

    Defined at line 32 of file ../../src/lib/fidl_codec/wire_object.cc

  • void EncodeUnion (proto::Union * dst, const fidl_codec::UnionValue * node)

    Defined at line 36 of file ../../src/lib/fidl_codec/proto_value.cc

  • LibraryLoader * InitLoader ()

    Defined at line 53 of file ../../src/lib/fidl_codec/wire_parser_test.cc

  • template <class T>
    void InterceptRequest (fidl::HLCPPIncomingMessage & message, std::function<void (fidl::InterfacePtr<T> &)> invoke)

    This binds |invoke| to one end of a channel, invokes it, and drops the wire

    format bits it picks up off the other end into |message|.

    Defined at line 64 of file ../../src/lib/fidl_codec/fidl_codec_test.h

  • void DisplayHandle (const zx_handle_disposition_t & handle, PrettyPrinter & printer)

    Displays a handle.

    If handle.operation == kNoHandleDisposition, only the info part of zx_handle_disposition_t is

    used and printed.

    Else, the handle comes from the write of an "etc" function (zx_channel_write_etc or write part of

    a zx_channel_call_etc). In that case, the full disposition is used to print the handle.

    Defined at line 67 of file ../../src/lib/fidl_codec/display_handle.cc

  • LibraryLoader * GetLoader ()

    Defined at line 66 of file ../../src/lib/fidl_codec/wire_parser_test.cc

  • bool DecodeResponse (const ProtocolMethod * method, const uint8_t * bytes, size_t num_bytes, const zx_handle_disposition_t * handles, size_t num_handles, std::unique_ptr<Value> * decoded_object, std::ostream & error_stream)

    Given a wire-formatted |message| and a schema for that message represented by

    |method|, populates |decoded_object| with an object representing that

    response.

    Returns false if it cannot decode the message using the metadata associated

    with the method.

    If it cannot decode the message, |error_stream| will contain one or more errors which

    have been thrown during the decoding. Each error starts with the absolute offset in the

    buffer (where the error occurred) and ends with a new line.

    Defined at line 38 of file ../../src/lib/fidl_codec/wire_parser.cc

  • template <class T>
    void InterceptEpitaphResponse (fidl::HLCPPIncomingMessage & message, zx_status_t epitaph)

    This creates two channels and sends an `epitaph` on one, and reads the resulting

    bytes from the other into `message`.

    Defined at line 89 of file ../../src/lib/fidl_codec/fidl_codec_test.h

  • std::string FidlMethodNameToCpp (std::string_view identifier)

    Defined at line 152 of file ../../src/lib/fidl_codec/wire_types.cc

  • std::unique_ptr<StructValue> DecodeStruct (LibraryLoader * loader, const proto::Struct & proto_struct, const Struct & struct_definition)

    Defined at line 155 of file ../../src/lib/fidl_codec/proto_value.cc

  • std::unique_ptr<TableValue> DecodeTable (LibraryLoader * loader, const proto::Table & proto_table, const Table & table_definition)

    Defined at line 182 of file ../../src/lib/fidl_codec/proto_value.cc

  • std::unique_ptr<UnionValue> DecodeUnion (LibraryLoader * loader, const proto::Union & proto_union, const Union & union_definition)

    Defined at line 208 of file ../../src/lib/fidl_codec/proto_value.cc

  • std::unique_ptr<Value> DecodeValue (LibraryLoader * loader, const proto::Value & proto_value, const Type * type)

    Defined at line 224 of file ../../src/lib/fidl_codec/proto_value.cc

  • void OrdinalCompositionBody (LibraryLoader & loader)

    Defined at line 330 of file ../../src/lib/fidl_codec/library_loader_test.cc

  • PrettyPrinter & ResetColor (PrettyPrinter & printer)

    Defined at line 351 of file ../../src/lib/fidl_codec/printer.h

  • PrettyPrinter & Red (PrettyPrinter & printer)

    Defined at line 356 of file ../../src/lib/fidl_codec/printer.h

  • PrettyPrinter & Green (PrettyPrinter & printer)

    Defined at line 361 of file ../../src/lib/fidl_codec/printer.h

  • PrettyPrinter & Blue (PrettyPrinter & printer)

    Defined at line 366 of file ../../src/lib/fidl_codec/printer.h

  • PrettyPrinter & WhiteOnMagenta (PrettyPrinter & printer)

    Defined at line 371 of file ../../src/lib/fidl_codec/printer.h

  • PrettyPrinter & YellowBackground (PrettyPrinter & printer)

    Defined at line 376 of file ../../src/lib/fidl_codec/printer.h

  • std::array<std::string, 2> TwoStringArrayFromVals (const std::string & v1, const std::string & v2)

    Defined at line 428 of file ../../src/lib/fidl_codec/wire_parser_test.cc

  • std::unique_ptr<Type> InternalTypeFromName (const std::string & type_name)

    Defined at line 999 of file ../../src/lib/fidl_codec/wire_types.cc

  • test::fidlcodec::examples::ValueTable GetTable (std::optional<int16_t> first_int16, std::optional<std::string> value1, std::optional<std::string> value2, std::optional<int32_t> third_union_val)

    Table Tests

    Defined at line 1162 of file ../../src/lib/fidl_codec/wire_parser_test.cc

  • std::string TablePretty (std::optional<int16_t> first_int16, std::optional<std::string> value1, std::optional<std::string> value2, std::optional<int32_t> third_union_val, int i)

    Defined at line 1181 of file ../../src/lib/fidl_codec/wire_parser_test.cc

  • test::fidlcodec::examples::FidlCodecTestProtocolStringIntTableRequest GetStringIntTableRequest (std::optional<std::string> stringstd::optional<int32_t> integer)

    Defined at line 1219 of file ../../src/lib/fidl_codec/wire_parser_test.cc

Variables

const Colors WithoutColors

Defined at line 27 of file ../../src/lib/fidl_codec/printer.cc

const Colors WithColors

Defined at line 28 of file ../../src/lib/fidl_codec/printer.cc