ParseResult

public enum ParseResult

Result of parsing.

  • A successfully parsed netstring.

    Declaration

    Swift

    case success(Netstring)
  • Parse failure caused by invalid format or missing data.

    Declaration

    Swift

    case failure
  • Parse failure caused by netstring length exceeding the specified maximum. length is the declared length of the netstring. When this value is returned, the reader has read the prefix number and the colon after it.

    Declaration

    Swift

    case rejected(length: Int)