Skip to content

A simple module to extend bitwise operations to full binaries (and not just integers).

Notifications You must be signed in to change notification settings

aawalton/bitwise_binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitwise.Binary

The Elixir core package Bitwise defines bitwise operators and functions by passing inputs through to underlying Erlang functions such as :erlang.band. Surprisingly, these functions work only on integers and cannot be used on binaries.

Bitwise.Binary implements all of the functions and operators available in Elixir.Bitwise for binaries.

    iex> import Bitwise.Binary
    iex> "asdf" &&& <<255,255,255,255>>
    "asdf"

Installation

Add bitwise_binary to your list of dependencies in mix.exs:

def deps do
  [
    {:bitwise_binary, "~> 0.1.0"}
  ]
end

Documentation can be found at https://hexdocs.pm/bitwise_binary.

About

A simple module to extend bitwise operations to full binaries (and not just integers).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages