function Type(name, implementation, convert_from_c) {
       if (!(typeof name == "string")) {
         throw new TypeError("Type expects as first argument a name, got: "
                             + name);
       }
       if (!(implementation instanceof ctypes.CType)) {
         throw new TypeError("Type expects as second argument a ctypes.CType"+
                             ", got: " + implementation);
       }
       this.name = name;
       this.implementation = implementation;
       if (convert_from_c) {
         this.convert_from_c = convert_from_c;
       } else {// Optimization: Ensure harmony of shapes
         this.convert_from_c = Type.prototype.convert_from_c;
       }
     }
/**
      * Abstraction above js-ctypes types.
      *
      * Use values of this type to register FFI functions. In addition to the
      * usual features of js-ctypes, values of this type perform the necessary
      * transformations to ensure that C errors are handled nicely, to connect
      * resources with their finalizer, etc.
      *
      * @param {string} name The name of the type. Must be unique.
      * @param {function=} convert_from_c A function to call to construct a
      * value of this type from a C return value.
      *
      * @constructor
      */
Abstraction above js-ctypes types.
Use values of this type to register FFI functions. In addition to the
usual features of js-ctypes, values of this type perform the necessary
transformations to ensure that C errors are handled nicely, to connect
resources with their finalizer, etc.

@param {string} name The name of the type. Must be unique.
@param {function=} convert_from_c A function to call to construct a
value of this type from a C return value.

@constructor
Abstraction above js - ctypes types . Use values of this type to register FFI functions . In addition to the usual features of js - ctypes values of this type perform the necessary transformations to ensure that C errors are handled nicely to connect resources with their finalizer etc . @param { string } name The name of the type . Must be unique . @param { function = } convert_from_c A function to call to construct a value of this type from a C return value . @constructor
function Type(name, implementation, convert_from_c) {
       if (!(typeof name == "string")) {
         throw new TypeError("Type expects as first argument a name, got: "
                             + name);
       }
       if (!(implementation instanceof ctypes.CType)) {
         throw new TypeError("Type expects as second argument a ctypes.CType"+
                             ", got: " + implementation);
       }
       this.name = name;
       this.implementation = implementation;
       if (convert_from_c) {
         this.convert_from_c = convert_from_c;
       } else {
         this.convert_from_c = Type.prototype.convert_from_c;
       }
     }
function Type ( name , implementation , convert_from_c ) { if ( ! ( typeof name == "string" ) ) { throw new TypeError ( "Type expects as first argument a name, got: " + name ) ; } if ( ! ( implementation instanceof ctypes . CType ) ) { throw new TypeError ( "Type expects as second argument a ctypes.CType" + ", got: " + implementation ) ; } this . name = name ; this . implementation = implementation ; if ( convert_from_c ) { this . convert_from_c = convert_from_c ; } else { this . convert_from_c = Type . prototype . convert_from_c ; } }
Abstraction above js-ctypes types.
Abstraction above js - ctypes types .
// Optimization: Ensure harmony of shapes