Demonstrates an array initialized from byte literals, which use the 'uy' suffix, and an array initialized from a string byte array literal
48 people like thisPosted: 13 years ago by Tim Robinson
Converts a byte list to a bit list. Takes a list of bytes and transforms it all into a flattened array of bits. For example, > bytesToBits [|byte(0x0F);byte(0xF0)|] 16 ;; val it : byte [] = [|0uy; 0uy; 0uy; 0uy; 1uy; 1uy; 1uy; 1uy; 1uy; 1uy; 1uy; 1uy; 0uy; 0uy; 0uy; 0uy|]
0 people like thisPosted: 11 years ago by devshorts