internal static IpV4OptionTimestampOnly Read(byte overflow, byte pointedIndex, byte[] buffer, ref int offset, int numValues) { IpV4TimeOfDay[] timestamps = new IpV4TimeOfDay[numValues]; for (int i = 0; i != numValues; ++i) { timestamps[i] = buffer.ReadIpV4TimeOfDay(ref offset, Endianity.Big); } return(new IpV4OptionTimestampOnly(overflow, pointedIndex, timestamps)); }
/// <summary> /// Create a timed address accroding to the given values. /// </summary> /// <param name="address">The address in the pair.</param> /// <param name="timeOfDay">The time passed since midnight UT.</param> public IpV4OptionTimedAddress(IpV4Address address, IpV4TimeOfDay timeOfDay) { _address = address; _timeOfDay = timeOfDay; }