getFFITypeSize: Compute the number of bytes the corresponding FFI type...

View source: R/types.R

getFFITypeSizeR Documentation

Compute the number of bytes the corresponding FFI type occupies

Description

This function determines the size in bytes of the specified FFI data type on the particular platform.

Usage

sizeof(type, ...)

Arguments

type

an FFIType object

...

additional parameters for methods to define

Value

an integer giving the size of the specified object.

Author(s)

Duncan Temple Lang

See Also

structType doubleType sint32Type, etc.

Examples

  sizeof(doubleType)
  sizeof(floatType)
  sizeof(sint32Type)
  sizeof(sint16Type)

  sizeof(structType(list(d = doubleType, i = sint32Type)))

omegahat/Rffi documentation built on Nov. 29, 2023, 12:48 a.m.