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
Components
Type | Visibility | Attributes | | Name | | Initial | |
integer, |
public | | :: |
payload_(MAX_PAYLOAD_SIZE) | | | |
integer, |
private | | :: |
payload_size | = | 0 | |
Constructor
-
private pure function from_raw(payload) result(new_payload)
Arguments
Type | Intent | Optional | Attributes | | Name | |
integer, |
intent(in) |
| | :: |
payload(:) | |
Return Value type(payload_t)
-
private pure function from_string(payload) result(new_payload)
Arguments
Type | Intent | Optional | Attributes | | Name | |
character(len=*), |
intent(in) |
| | :: |
payload | |
Return Value type(payload_t)
-
Arguments
None
Return Value type(payload_t)
Type-Bound Procedures
procedure, public :: raw_payload
-
private pure function raw_payload(self)
Arguments
Type | Intent | Optional | Attributes | | Name | |
class(payload_t), |
intent(in) |
| | :: |
self | |
Return Value integer,allocatable, (:)
procedure, public :: string_payload
-
Arguments
Type | Intent | Optional | Attributes | | Name | |
class(payload_t), |
intent(in) |
| | :: |
self | |
Return Value character(len=:),allocatable