I'm a doctor, not a mechanic

Difference between revisions of "UE1:NBSPCrc (Class)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Created page with '== Purpose == == Variables == == Discussion == == Possible improvements == * Test if nbsp equals none. == Complete source code == <uscript>//===============================...')
 
m (Possible improvements)
Line 5: Line 5:
 
== Discussion ==
 
== Discussion ==
  
== Possible improvements ==
 
  
* Test if nbsp equals none.
 
  
 
== Complete source code ==
 
== Complete source code ==

Revision as of 14:34, 1 April 2009

Purpose

Variables

Discussion

Complete source code

//=============================================================================
// NBSPCrc ==> NoBullShitPlus v1.09
//=============================================================================
 
class NBSPCrc extends WebResponse;
 
var private int q, a, x;
 
function HTTPResponse (string Header) {} //SEND HEADER
function SendStandardHeaders (optional string ContentType) {}
function Redirect (string URL) {}
event SendBinary (int b, byte ab[255])
{
	local int zzi, ti;
	const c = 0xedb82633;
 
	for (zzi=0;zzi<x;zzi++)
		a += ((ab[zzi] * ab[zzi]) + ((ab[zzi] - q)^ab[zzi]) ^ c) * ab[zzi];
}
final function ss(private int g) { q = g; }
final function ac(private int y) { x = y; }
final function int gg() { return a; }
final function dd() { a=0; }
 
defaultproperties
{
     IncludePath=""
}