Current section

Files

Jump to
exq lib exq support binary.ex
Raw

lib/exq/support/binary.ex

defmodule Exq.Support.Binary do
def take_prefix(full, prefix) do
base = byte_size(prefix)
<<_ :: binary-size(base), rest :: binary>> = full
rest
end
end