代码之家  ›  专栏  ›  技术社区  ›  Mikko

Flatbuffers flatc模式编译器未生成文件

  •  2
  • Mikko  · 技术社区  · 9 年前

    flatc -s test.idl

    namespace Foo;
    enum Type : byte {
      type_request = 1,
      type_reply = 2,
    }
    
    struct UUID {
      low_bytes: ulong;
      high_bytes: ulong;
    }
    
    table Request {
      req_id: UUID    ( required );
    }
    root_type Request;
    
    table Reply {
      req_id: UUID    ( required );
    }
    root_type Reply;
    

    1 回复  |  直到 9 年前
        1
  •  1
  •   Mikko    9 年前

    我找到了答案,似乎(只有?) .fbs 现在支持扩展,因此更改名称并运行 flatc -s test.fbs