node-ctypes - v2.17.1
    Preparing search index...

    Function sizeof

    • Get the size of a type in bytes.

      Python equivalent: ctypes.sizeof

      Parameters

      • type: SizedType

      Returns number

      sizeof(c_int32)   // 4
      sizeof(c_double) // 8
      sizeof(c_void_p) // 8 (on 64-bit)