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

    48 people like this

    Posted: 13 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: 10 years ago by devshorts