mozilla

Compare Revisions

Working with data

Change Revisions

Revision 98269:

Revision 98269 by Sheppy on

Revision 98270:

Revision 98270 by Sheppy on

Title:
Working with data
Working with data
Slug:
Mozilla/js-ctypes/Using_js-ctypes/Working_with_data
Mozilla/js-ctypes/Using_js-ctypes/Working_with_data
Tags:
JavaScript, js-ctypes
JavaScript, js-ctypes
Content:

Revision 98269
Revision 98270
n273      While most numeric types in js-ctypes are represented by stn273      While most numeric types in js-ctypes are represented by st
>andard JavaScript <a href="/cn/Core_JavaScript_1.5_Reference/Glob>andard JavaScript <a href="/cn/Core_JavaScript_1.5_Reference/Glob
>al_Objects/Number" title="cn/Core JavaScript 1.5 Reference/Global>al_Objects/Number" title="cn/Core JavaScript 1.5 Reference/Global
> Objects/Number"><code>Number</code></a> objects, 64-bit integers> Objects/Number"><code>Number</code></a> objects, 64-bit integers
> cannot all be represented accurately by this type. For that reas> cannot all be represented accurately by this type. For that reas
>on, 64-bit and pointer-sized C values of numeric types don't get >on, 64-bit and pointer-sized C values of numeric types don't get 
>automatically converted to JavaScript numbers. Instead, they're c>automatically converted to JavaScript numbers. Instead, they're c
>onverted to JavaScript objects of the type <code>ctypes.Int64</co>onverted to JavaScript objects that you can manipulate using the 
>de> and <code>ctypes.UInt64</code>.>methods provided by the <a href="/en/js-ctypes/js-ctypes_referenc
 >e/Int64" title="en/js-ctypes/js-ctypes reference/Int64"><code>Int
 >64</code></a> and <a href="/en/js-ctypes/js-ctypes_reference/UInt
 >64" title="en/js-ctypes/js-ctypes reference/UInt64"><code>UInt64<
 >/code></a> objects.
274    </p>
275    <p>
276      Because these aren't standard numeric types, you can't use 
>arithmetic operators on them. Instead, you'll have to use the pro 
>vided convenience functions. 
tt278    <h3>
279      Creating 64-bit number objects
280    </h3>
281    <p>
282      wip
283    </p>
284    <h3>
285      Performing arithmetic with 64-bit values
286    </h3>
287    <p>
288      wip
289    </p>
290    <h3>
291      Converting 64-bit values to other formats
292    </h3>
293    <p>
294      wip
295    </p>

Back to History