Skip to content

Add option to add field setters to PackedTypes #1

@clickingbuttons

Description

@clickingbuttons

Move Table to AdvancedTable(comptime mutable: bool) type with flatbuffer: if (mutable) []u8 else []const u8. Make pub const Table = AdvancedTable(false); and pub const MutableTable = AdvancedTable(true); (with mixed in setter methods).

Then codegen setters for the following types:

  • Scalars
  • Strings (with len checking against previous string?)
  • Vector + array elements
  • Is there a way to do unions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions