Elixir XDR v0.1.1 XDR.Base View Source
Provides the ability to predefine and precompile specific XDR types for your application.
Create a module in your app, and use XDR.Base
.
Your module will now have access to the define_type
macro, as well as all of the
functions on the main XDR
module. See the README for an example.
Link to this section Summary
Functions
Convenience function to build an XDR type. See XDR.build_type/2
A NOOP macro that allows for extensive documentation of defined types See the generated Stellar module
Define a named XDR type for your application by providing a name and type info.
Once defined in your module, you can use type type name instead of a fully built XDR type
in your module's functions such as build_value/2
and decode/1
.
Link to this section Functions
Convenience function to build an XDR type. See XDR.build_type/2
A NOOP macro that allows for extensive documentation of defined types See the generated Stellar module
Define a named XDR type for your application by providing a name and type info.
Once defined in your module, you can use type type name instead of a fully built XDR type
in your module's functions such as build_value/2
and decode/1
.
The second and third arguments are the same as the first and second
arguments of XDR.build_type/2
.