How to parse bitstring?

Is this from the Erlang library?