

def from_wire(cls, rdclass, rdtype, wire, current, rdlen, origin=None):
    l = ord(wire[current])
    current += 1
    rdlen -= 1
    if (l > rdlen):
        raise dns.exception.FormError
    latitude = wire[current:(current + l)]
    current += l
    rdlen -= l
    l = ord(wire[current])
    current += 1
    rdlen -= 1
    if (l > rdlen):
        raise dns.exception.FormError
    longitude = wire[current:(current + l)]
    current += l
    rdlen -= l
    l = ord(wire[current])
    current += 1
    rdlen -= 1
    if (l != rdlen):
        raise dns.exception.FormError
    altitude = wire[current:(current + l)]
    return cls(rdclass, rdtype, latitude, longitude, altitude)

dataset/ETHPy150Open catap/namebench/nb_third_party/dns/rdtypes/ANY/GPOS.py GPOS.from_wire/original