core.internal.convert

Written in the D programming language. This module provides functions to converting different values to const(ubyte)[]

Functions 8

fnconst(ubyte)[] toUbyte(T)(const scope ref T val) if (__traits(isFloating, T) && (is(T : real) || is(T : ireal))) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(return scope const T[] arr) if (T.sizeof == 1) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(return scope const T[] arr) if (T.sizeof > 1) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(const ref scope T val) if (__traits(isIntegral, T) && !is(T == enum) && !is(T == __vector)) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(const ref scope T val) if (is(T == __vector)) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(const ref return scope T val) if (is(T == enum)) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(const ref T val) if (is(T == delegate) || is(T : V *, V) && __traits(getAliasThis, T).length == 0) @trusted pure nothrow @nogc
fnconst(ubyte)[] toUbyte(T)(const return ref scope T val) if (is(T == struct) || is(T == union)) @trusted pure nothrow @nogc

Templates 8

tmplFloatTraits(T) if (floatFormat!T == FloatFormat.Float)
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)