dm_netstring_read Subroutine

public pure elemental subroutine dm_netstring_read(input, output, length, first, last, error)

Reads arbitrary contents from netstring buffer input into output. Returns the length of the output in length. Argument first will be the start of the data and last the end of the data in the netstring. The output buffer is not cleared!

Argument error is set to the following error codes:

  • E_FORMAT if the input is not in netstring format.

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(inout) :: input

Input buffer.

character(len=*), intent(inout), optional :: output

Netstring buffer.

integer, intent(out), optional :: length

Length of output.

integer, intent(out), optional :: first

First position.

integer, intent(out), optional :: last

Last position.

integer, intent(out), optional :: error

Error code.


Calls

proc~~dm_netstring_read~~CallsGraph proc~dm_netstring_read dm_netstring_read proc~dm_ascii_is_digit dm_ascii_is_digit proc~dm_netstring_read->proc~dm_ascii_is_digit