internal override IpV6AccessNetworkIdentifierSubOption CreateInstance(DataSegment data) { if (data.Length != OptionDataLength) { return(null); } UInt24 latitudeDegrees = data.ReadUInt24(Offset.LatitudeDegrees, Endianity.Big); UInt24 longitudeDegrees = data.ReadUInt24(Offset.LongitudeDegrees, Endianity.Big); return(new IpV6AccessNetworkIdentifierSubOptionGeoLocation(latitudeDegrees, longitudeDegrees)); }
internal override IpV6AccessNetworkIdentifierSubOption CreateInstance(DataSegment data) { if (data.Length != OptionDataLength) return null; UInt24 latitudeDegrees = data.ReadUInt24(Offset.LatitudeDegrees, Endianity.Big); UInt24 longitudeDegrees = data.ReadUInt24(Offset.LongitudeDegrees, Endianity.Big); return new IpV6AccessNetworkIdentifierSubOptionGeoLocation(latitudeDegrees, longitudeDegrees); }