Skip to content

Not seeing the static Serializer object on generated class #359

Answered by jamescourtney
kwonus asked this question in Q&A
Discussion options

You must be logged in to vote

You need to tell FlatSharp that you want a serializer:

attribute "fs_serializer";

namespace AVSDK.FlatBuffers;
table AVBook (fs_serializer) {
    num:            uint8   (key);
    chapter_cnt:    uint8;
    chapter_idx:    uint16;
    name:           string  (required);
    abbreviations: [string] (required);
}
table AVBookIndex {
    index: [AVBook] (required);
}
root_type AVBookIndex;

Please take a look at the list of possible FBS annotations.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@kwonus
Comment options

@jamescourtney
Comment options

@kwonus
Comment options

@jamescourtney
Comment options

Answer selected by jamescourtney
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants