Packages
base_emoji
1.0.0
Encoding to emoji designed to produce visually easily distinguished strings
Current section
Files
Jump to
Current section
Files
src/base_emoji_ffi.ex
defmodule BaseEmoji do
@spec u8_from_bits(binary()) :: integer()
def u8_from_bits(byte_array) when is_binary(byte_array) and byte_size(byte_array) == 1 do
:binary.decode_unsigned(byte_array)
end
end