Skip to content

Questions about elements in FBBlockStrongLayout #114

@iCodeWoods

Description

@iCodeWoods

in _GetBlockStrongLayout has these code, but why is it calculated like this? thx

  // Figure out the number of pointers it takes to fill out the object, rounding up.
  const size_t elements = (blockLiteral->descriptor->size + ptrSize - 1) / ptrSize;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions