Elixir XDR v0.1.1 XDR.Padding View Source

XDR encodings sometimes require padding. This module includes some helper functions to do those calculations.

Link to this section Summary

Functions

The actual padding bytes required given the lenght of the content

The number of bytes of padding required, given the length of the content

Link to this section Types

Link to this type

padding()

View Source
padding() :: <<_::0>> | <<_::8>> | <<_::16>> | <<_::24>>
Link to this type

padding_len()

View Source
padding_len() :: 0..3

Link to this section Functions

The actual padding bytes required given the lenght of the content

Link to this function

padding_length(data_length)

View Source
padding_length(non_neg_integer()) :: padding_len()

The number of bytes of padding required, given the length of the content