payload_t Derived Type

type, public :: payload_t

A raw buffer to facilitate data transfer between images

Facilitates view of the data as either a string or raw bytes. Typical usage will be either to * produce a string representation of the data, and then parse that string to recover the original data * use the transfer function to copy the raw bytes of the data


Contents


Components

TypeVisibilityAttributesNameInitial
integer, public :: payload_(MAX_PAYLOAD_SIZE)
integer, private :: payload_size =0

Constructor

public interface payload_t

  • private pure function from_raw(payload) result(new_payload)

    Arguments

    TypeIntentOptionalAttributesName
    integer, intent(in) :: payload(:)

    Return Value type(payload_t)

  • private pure function from_string(payload) result(new_payload)

    Arguments

    TypeIntentOptionalAttributesName
    character(len=*), intent(in) :: payload

    Return Value type(payload_t)

  • public pure function empty_payload()

    Arguments

    None

    Return Value type(payload_t)


Type-Bound Procedures

procedure, public :: raw_payload

  • private pure function raw_payload(self)

    Arguments

    TypeIntentOptionalAttributesName
    class(payload_t), intent(in) :: self

    Return Value integer,allocatable, (:)

procedure, public :: string_payload

  • private pure function string_payload(self)

    Arguments

    TypeIntentOptionalAttributesName
    class(payload_t), intent(in) :: self

    Return Value character(len=:),allocatable