Flat buffers : Object serialization must not be nested

前端 未结 1 1179
逝去的感伤
逝去的感伤 2021-01-25 15:29
        FlatBufferBuilder fbb = new FlatBufferBuilder(1024);

        String directory = \"/Users/samarnath/RmsOne/CreateFlatBuffer/src/com/rms/objects/resources\";
             


        
相关标签:
1条回答
  • 2021-01-25 16:00

    From the documentation: "Everything else (other tables, strings, vectors) MUST be created before the start of the table they are referenced in."

    So move int policyName = fbb.createString(riskitems[1]) and any other strings/vectors/tables you reference in SingleCoverRiskPolicy to before startSingleCoverRiskPolicy.

    0 讨论(0)
提交回复
热议问题