offset method

int offset(
  1. F field
)

Returns the byte offset of field within the struct.

Implementation

int offset(F field) {
  _checkField(field);
  return offsets[field]!;
}