Function offsetof

  • Returns the offset (in bytes) of a field in a struct.

    Parameters

    • type: object
    • fieldName: string

    Returns number