xdr v0.1.2 XDR.Type.Base behaviour View Source
Base behaviour for XDR type modules
Link to this section Summary
Callbacks
Decodes an XDR binary to a native type, also returns any un-decoded binary
Encodes a native type to an XDR binary
Returns the expected length (in bytes) of an XDR-encoded binary of this type (sans padding)
Returns the input if it’s a valid XDR module native type, or the default valid native type
Determines if a value is a valid XDR type
Link to this section Types
Link to this section Callbacks
Decodes an XDR binary to a native type, also returns any un-decoded binary
Encodes a native type to an XDR binary
Link to this callback
length()
View Source
(optional)
length() :: non_neg_integer() | :struct | :union | :variable
Returns the expected length (in bytes) of an XDR-encoded binary of this type (sans padding)
Returns the input if it’s a valid XDR module native type, or the default valid native type
Determines if a value is a valid XDR type