Closed festen closed 10 years ago
Created a bithelper class to convert everthing from/to bits and bytes
To convert to bits/bytes
var canvas = factory.GenerateRandomCanvas(); bool[] bits = canvas.AsBitArray(); byte[] bytes = canvas.AsByteArray();
To convert to canvas
var canvas = bits.AsCanvas(); var canvas = bytes.AsCanvas();
Bits to bytes (and vice-versa)
bits.AsByteArray(); bytes.AsBitArray()
ToString methods
bits.toBitString(); bytes.toByteString();
Is deze ok ? kan ik 'm vanavond mergen
Created a bithelper class to convert everthing from/to bits and bytes
To convert to bits/bytes
To convert to canvas
Bits to bytes (and vice-versa)
ToString methods