BN089-BS开发框架MVC4版/source20131023/Zephyr.Net/Zephyr.Utils/Document/Excel/ExcelLibrary/CodeLib/Algorithm.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Collections.Generic;
namespace QiHe.CodeLib
{
/// <summary>
/// The Algorithm object is used to perform the calculating tasks.
/// </summary>
public class Algorithm
{
public static byte[] ArraySection(byte[] data, int index, int count)
{
byte[] section = new byte[count];
Array.Copy(data, index, section, 0, count);
return section;
}
/// <summary>
/// Compares two arrays
/// </summary>
/// <param name="bytes">The Array</param>
/// <param name="data">The Array</param>
/// <returns></returns>
public static bool ArrayEqual(byte[] bytes, byte[] data)
{
if (bytes.Length == data.Length)
{
return ArrayEqual(bytes, data, bytes.Length);
}
else
{
return false;
}
}
/// <summary>
/// Compares two arrays
/// </summary>
/// <param name="a">The Array</param>
/// <param name="b">The Array</param>
/// <param name="count">The count.</param>
/// <returns></returns>
public static bool ArrayEqual(byte[] a, byte[] b, int count)
{
for (int i = 0; i < count; i++)
{
if (a[i] != b[i])
{
return false;
}
}
return true;
}
/// <summary>
/// Sets the indice on an array
/// </summary>
/// <param name="length">The length.</param>
/// <returns></returns>
public static int[] ArrayIndice(int length)
后面还有 238 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
