Snippets tagged byte

  • Byte literals

    Demonstrates an array initialized from byte literals, which use the 'uy' suffix, and an array initialized from a string byte array literal

    46 people like this

    Posted: 6 years ago by Tim Robinson

  • Byte to bit list

    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 this

    Posted: 4 years ago by devshorts