public static uint GetCrc32(params byte[] data) { var n = new Crc32Helper(); n.ComputeCrc32(data); return n.Crc32Value; }
public static uint GetCrc32(params byte[] data) { var n = new Crc32Helper(); n.ComputeCrc32(data); return(n.Crc32Value); }
/// <summary> /// This is a javascript application. /// </summary> /// <param name="page">HTML document rendered by the web server which can now be enhanced.</param> public Application(IApp page) { // https://sites.google.com/a/jsc-solutions.net/backlog/knowledge-base/2014/201404/20140412 var crc = new Crc32Helper(); crc.ComputeCrc32(new byte[] { 1, 2, 0xfe, 0xff }); // Crc32Value = 1027690409 // 1027690409 vs 1027690409 new IHTMLPre { "" + crc.Crc32Value + " vs 1027690409" }.AttachToDocument(); }
/// <summary> /// Default constructor /// </summary> public CRCExample() { var t = new TextField { text = "powered by jsc", background = true, x = 20, y = 40, alwaysShowSelection = true, }.AttachTo(this); var crc = new Crc32Helper(); crc.ComputeCrc32(new byte[] { 1, 2, 0xfe, 0xff }); // Crc32Value = 1027690409 t.text = "" + crc.Crc32Value + " vs 1027690409"; }