offsets: Compute Element Offsets for a Structure

View source: R/types.R

offsetsR Documentation

Compute Element Offsets for a Structure

Description

This function provides the offset for each field in a structure. This assumes we can get the names of the fields from the debugging information.

Usage

offsets(ty, varNames = names(ty))

Arguments

ty

the description of the structure type

varNames

the names of the fields

Value

An integer vector.

Author(s)

DTL

See Also

lapplyDebugInfoTypes


duncantl/Rllvm documentation built on April 23, 2024, 6:14 p.m.