internal static IpV4OptionTimestampOnly Read(byte overflow, byte pointedIndex, byte[] buffer, ref int offset, int numValues)
 {
     IpV4TimeOfDay[] ipV4TimeOfDayArray = new IpV4TimeOfDay[numValues];
     for (int index = 0; index != numValues; ++index)
     {
         ipV4TimeOfDayArray[index] = ByteArrayExtensions.ReadIpV4TimeOfDay(buffer, ref offset, Endianity.Big);
     }
     return(new IpV4OptionTimestampOnly(overflow, pointedIndex, ipV4TimeOfDayArray));
 }
Esempio n. 2
0
        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;
 }