/// <summary> /// Writes the value to the buffer at the specified offset. /// </summary> /// <param name="buffer">The buffer.</param> /// <param name="offset">The offset.</param> /// <param name="value">The value.</param> public static void Write(byte[] buffer, ref int offset, IPAddress value) { buffer.CannotBeNullOrEmpty(); offset.MustBeGreaterThanOrEqualTo(0); offset.MustBeLessThan(buffer.Length); value.CannotBeNull(); Write(buffer, ref offset, value.GetAddressBytes()); }