Current section

Files

Jump to
ankh lib ankh frame continuation payload.ex
Raw

lib/ankh/frame/continuation/payload.ex

defmodule Ankh.Frame.Continuation.Payload do
defstruct [header_block_fragment: <<>>]
end
defimpl Ankh.Frame.Encoder, for: Ankh.Frame.Continuation.Payload do
alias Ankh.Frame.Continuation.Payload
def encode!(%Payload{header_block_fragment: hbf}, _), do: hbf
def decode!(struct, data, _), do: %{struct| header_block_fragment: data}
end