XDR.String (Elixir XDR v0.3.11) View Source

This module manages the String type based on the RFC4506 XDR Standard.

Link to this section Summary

Types

t()

XDR.String structure type specification.

Functions

Decode the String in XDR format to a XDR.String structure.

Decode the String in XDR format to a XDR.String structure. If the binaries are not valid, an exception is raised.

Encode a XDR.String structure into a XDR format.

Encode a XDR.String structure into a XDR format. If the string is not valid, an exception is raised.

Create a new XDR.String structure with the opaque and length passed.

Link to this section Types

Specs

t() :: %XDR.String{max_length: integer(), string: binary()}

XDR.String structure type specification.

Link to this section Functions

Link to this function

decode_xdr(bytes, string \\ %{max_length: 4294967295})

View Source

Decode the String in XDR format to a XDR.String structure.

Link to this function

decode_xdr!(bytes, string \\ %{max_length: 4294967295})

View Source

Decode the String in XDR format to a XDR.String structure. If the binaries are not valid, an exception is raised.

Encode a XDR.String structure into a XDR format.

Encode a XDR.String structure into a XDR format. If the string is not valid, an exception is raised.

Link to this function

new(string, max_length \\ 4294967295)

View Source

Specs

new(string :: bitstring(), max_length :: integer()) :: t()

Create a new XDR.String structure with the opaque and length passed.