dm_netstring_read Subroutine

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

Reads arbitrary contents from netstring buffer input into output. Returns the length of the output in length and the position of the last netstring character in last. 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) :: output

Netstring buffer.

integer, intent(out), optional :: length

Length of output.

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