dcrypt ~master (2018-06-04T17:07:07Z)
Dub
Repo
toLittleEndian
dcrypt
bitmanip
convert a integral type T[] into an array of bytes.
void
toLittleEndian
(
in
T
val
,
ubyte
[]
output
)
void
toLittleEndian
(
in
T
[]
ns
,
ubyte
[]
output
)
@
safe
@
nogc
void
toLittleEndian
(
T
)
(
in
T
[]
ns
,
ubyte
[]
output
)
if
(
isIntegral
!
T
)
in { assert (output.length >= T.sizeof * ns.length, "output buffer too small"); }
Meta
Source
See Implementation
dcrypt
bitmanip
aliases
rol
functions
fromBigEndian
fromLittleEndian
rotateLeft
rotateRight
toBigEndian
toLittleEndian
convert a integral type T[] into an array of bytes.