structInfo | R Documentation |
This function returns information about the size and offsets of the fields/elements of a foreign function interface struct definition.
structInfo(type)
type |
the |
A list with 2 elements
size |
an integer value giving the total size of a struct instance |
offsets |
the byte offsets of the individual elements |
Duncan Temple Lang
sizeof
structType
# data structure for use in call to utsname
type = structType(list('sysname' = stringArrayType(256),
'nodename' = stringArrayType(256),
'release' = stringArrayType(256),
'version' = stringArrayType(256),
'machine' = stringArrayType(256)))
structInfo(type)
sizeof(type)
type = structType(list(d = doubleType, i = sint32Type))
structInfo(type)
sizeof(type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.