Flatbuf.Schema.Struct (flatbuf v0.1.0)

Copy Markdown View Source

A FlatBuffers struct declaration.

Structs have fixed inline layout; layout is the list of per-field positions, sizes, and alignments computed during resolution. size and align are the totals.

Summary

Types

field_layout()

@type field_layout() :: %{
  field: Flatbuf.Schema.Field.t(),
  offset: non_neg_integer(),
  size: non_neg_integer(),
  align: non_neg_integer()
}

t()

@type t() :: %Flatbuf.Schema.Struct{
  align: non_neg_integer(),
  attributes: map(),
  docs: [String.t()],
  fields: [Flatbuf.Schema.Field.t()],
  layout: [field_layout()],
  name: String.t(),
  namespace: String.t() | nil,
  short_name: String.t(),
  size: non_neg_integer()
}