pack method

  1. @override
int pack(
  1. Builder fbBuilder
)
override

Serialize the object using the given builder, returning the offset.

Implementation

@override
int pack(fb.Builder fbBuilder) {
  int? valuesOffset;
  if (values != null) {
    for (var e in values!) { e.pack(fbBuilder); }
    valuesOffset = fbBuilder.endStructVector(values!.length);
  }
  fbBuilder.startTable(1);
  fbBuilder.addOffset(0, valuesOffset);
  return fbBuilder.endTable();
}