xdr v0.1.2 XDR.Type.FixedArray View Source
RFC 4506, Section 4.12 - Fixed-length Array
Link to this section Summary
Functions
Decodes an fixed array xdr binary by truncating it to the desired length
Encodes a fixed array into a binary
Determines if a value is a binary of a valid length
Link to this section Types
Link to this type
decode_error()
View Source
decode_error() :: {:error, reason :: :invalid | :xdr_too_small}
A binary of any length
Link to this section Functions
Link to this function
decode(xdr, type, len)
View Source
decode(xdr :: xdr(), type :: module(), len :: len()) :: {:ok, {array :: t(), rest :: XDR.Type.Base.xdr()}} | decode_error()
Decodes an fixed array xdr binary by truncating it to the desired length
Encodes a fixed array into a binary
Determines if a value is a binary of a valid length