{"json_modified": "2016-05-25T02:30:06.064515", "uuid": "698b9f1a-3151-462e-abd6-8b6b24ba961f", "title": "Declaring types", "url": "/en-US/docs/Mozilla/js-ctypes/Using_js-ctypes/Declaring_types", "tags": ["js-ctypes", "JavaScript"], "translations": [], "modified": "2016-05-25T02:30:06", "label": "Declaring types", "localization_tags": [], "locale": "en-US", "id": 6174, "last_edit": "2016-05-25T02:30:03", "summary": "The ctypes object offers a number of constructor methods that let you declare types. Every type is represented by a CType object, which, in turn, provides a constructor method you can call to define values of those types.\u00a0Each type you declare using js-ctypes corresponds to a compatible C\u00a0declaration.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Primitive_types", "title": "Primitive types"}, {"id": "Declaring_new_primitive_types", "title": "Declaring new primitive types"}, {"id": "Structures", "title": "Structures"}, {"id": "Field_descriptors", "title": "Field descriptors"}, {"id": "Example", "title": "Example"}, {"id": "Opaque_structures", "title": "Opaque structures"}, {"id": "Structures_with_next_field", "title": "Structures with "}, {"id": "Arrays", "title": "Arrays"}, {"id": "Declaring_an_array_type_with_unspecified_length", "title": "Declaring an array type with unspecified length"}, {"id": "Declaring_an_array_type_with_a_specific_length", "title": "Declaring an array type with a specific length"}, {"id": "Pointers", "title": "Pointers"}], "slug": "Mozilla/js-ctypes/Using_js-ctypes/Declaring_types", "review_tags": []}