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) {
  fbBuilder.putFloat32(a);
  fbBuilder.putFloat32(b);
  fbBuilder.putFloat32(g);
  fbBuilder.putFloat32(r);
  return fbBuilder.offset;
}