Function convertBits
Convert from one power-of-2 number base to another
bool convertBits
(
ref ubyte[] out_values,
const(ubyte)[] in_values,
int frombits,
int tobits,
bool pad
) pure nothrow @safe;
Parameters
Name | Description |
---|---|
out_values | values that has converted |
in_values | values to be converted |
frombits | a power-of-2 number base of in_values |
tobits | a power-of-2 number base of out_values |
pad | check if the pads are added |
Returns
true if the conversion succeeds