The OpenD Programming Language

printHexArray

Prints array as hex values

pragma(inline, false)
void
printHexArray
(
C = char
W
T
)
(
scope ref W w
,
scope const(T)[] c
,
scope const(C)[] lb = ""
,
scope const(C)[] rb = ""
,
scope const(C)[] sep = " "
)

Examples

import mir.test;
import mir.appender: scopedBuffer;
auto w = scopedBuffer!char;
ubyte[2] array = [0x34, 0x32];
w.printHexArray(array[]);
w.data.should == `34 32`;

Meta