/// <summary> /// 从原字节数组中返回新的数组 /// </summary> /// <param name="bs">源数组</param> /// <param name="length">返回的长度</param> /// <returns></returns> public static byte[] GetBytes(this byte[] bs, int length) { return(bs.GetBytes(0, length)); }