toUbytes

@safe @property @trusted pure nothrow
@nogc => (cast(ubyte*)(&x))[0 .. x.sizeof]
ubyte[T.sizeof]
toUbytes
(
T
)
(
in T x
)

Return Value

Type: ubyte[T.sizeof]

x as a static array of unsigned bytes.

Meta