std
    Preparing search index...

    Function parse

    • Parses the ip address from a string in the format of 0.0.0.0 or 0 0 0 0 or 0_0_0_0 into an array of octets

      Parameters

      • address: string

      Returns Result<Octets, ParseError>

      parse("192.168.100.10").unwrap(); // [192, 168, 100, 10]