Skip to content

Confused about how to use Flatbuffers with Julia #75

@edward-bestx

Description

@edward-bestx

I have read the documentation. It isn't very long (about 1 page).

Having read it, I am none the wiser about how to use flatbuffers with a Julia project.

Is Flatbuffers actually supported by Julia? Other issues raised which are still open seem to imply that it is not. However this doesn't seem to make much sense, otherwise why would there be a FlatBuffers.jl package, and why would this documentation exist at all?

Putting the above confusion aside, typically with FlatBuffers (or Protobuf) one creates a file which specifies the message format, before compiling it with flatc (or protoc).

flatc does not support Julia as an output.

So - how does one actually use a FlatBuffer message specification file with Julia?

For example: The following is a copy of monster.fbs from the flatbuffers documentation.

table Monster {
  name:string;
  health:int;
}

root_type Monster;

If I create this monster.fbs file, can I use that with Julia? If so, how?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions