Packages
BinStruct is a library which provides you rich set of tools for parsing/encoding binaries
Current section
Files
Jump to
Current section
Files
lib/bin_struct/macro/preprocess/remap_interface_implementation.ex
defmodule BinStruct.Macro.Preprocess.RemapInterfaceImplementation do
@moduledoc false
alias BinStruct.Macro.Structs.InterfaceImplementation
alias BinStruct.Macro.Preprocess.RemapCallback
def remap_raw_interface_implementation(raw_interface_implementation, env) do
{ interface, raw_callback } = raw_interface_implementation
callback = RemapCallback.remap_callback(raw_callback, env)
%InterfaceImplementation{
interface: interface,
callback: callback
}
end
end