core.internal.convert
Written in the D programming language. This module provides functions to converting different values to const(ubyte)[]
Copyright
Copyright Igor Stepanov 2013-2013.
enum FloatFormat
struct Float
Types 2
Fields
ulong mantissauint exponentuint signulong mantissa2Big overflow or underflow
Float
Double
Real80
DoubleDouble
Quadruple
Functions 24
fn
const(ubyte)[] toUbyte(T)(const scope ref T val) if (__traits(isFloating, T) && (is(T : real) || is(T : ireal))) @trusted pure nothrow @nogcprivate fn
Float parse(bool is_denormalized = false, T: real)(T x_) if (floatFormat!T != FloatFormat.Real80) @safe pure nothrow @nogcprivate fn
Float parse(bool _ = false, T: real)(T x_) if (floatFormat!T == FloatFormat.Real80) @safe pure nothrow @nogcprivate fn
Float denormalizedMantissa(T)(T x, uint sign) if (floatFormat!T == FloatFormat.Real80) @safe pure nothrow @nogcprivate fn
Float denormalizedMantissa(T)(T x, uint sign) if (floatFormat!T == FloatFormat.Float || floatFormat!T == FloatFormat.Double) @safe pure nothrow @nogcprivate fn
Float denormalizedMantissa(T)(T x, uint sign) if (floatFormat!T == FloatFormat.Quadruple) @safe pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(return scope const T[] arr) if (T.sizeof == 1) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(return scope const T[] arr) if (T.sizeof > 1) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(const ref scope T val) if (__traits(isIntegral, T) && !is(T == enum) && !is(T == __vector)) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(const ref scope T val) if (is(T == __vector)) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(const ref return scope T val) if (is(T == enum)) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(const ref T val) if (is(T == delegate) || is(T : V *, V) && __traits(getAliasThis, T).length == 0) @trusted pure nothrow @nogcfn
const(ubyte)[] toUbyte(T)(const return ref scope T val) if (is(T == struct) || is(T == union)) @trusted pure nothrow @nogcTemplates 8
tmplFloatTraits(T)
if (floatFormat!T == FloatFormat.Double)tmplFloatTraits(T)
if (floatFormat!T == FloatFormat.Real80)tmplFloatTraits(T)
if (floatFormat!T == FloatFormat.DoubleDouble)tmplFloatTraits(T)
if (floatFormat!T == FloatFormat.Quadruple)tmplfloatFormat(T)
if (is(T: real) || is(T: ireal))tmplfloatSize(T)
if (is(T: real) || is(T: ireal))tmplOriginalType(T)