_PyFloat_Unpack4

The unpack routines read 4 or 8 bytes, starting at p. le is a bool argument, true if the string is in little-endian format (exponent last, at p+3 or p+7), false if big-endian (exponent first, at p). Return value: The unpacked double. On error, this is -1.0 and PyErr_Occurred() is true (and an exception is set, most likely OverflowError). Note that on a non-IEEE platform this will refuse to unpack a string that represents a NaN or infinity.

  1. double _PyFloat_Unpack4(const(ubyte)* p, int le)
    version(Python_2_6_Or_Later)
    double
    _PyFloat_Unpack4
    (
    const(ubyte)* p
    ,
    int le
    )
  2. double _PyFloat_Unpack8(const(ubyte)* p, int le)

Meta