/* Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved. Available via Academic Free License >= 2.1 OR the modified BSD license. see: http://dojotoolkit.org/license for details */ if(!dojo._hasResource["dojox.encoding.compression.splay"]){dojo._hasResource["dojox.encoding.compression.splay"]=true;dojo.provide("dojox.encoding.compression.splay");dojo.require("dojox.encoding.bits");dojox.encoding.compression.Splay=function(n){this.up=new Array(2*n+1);this.left=new Array(n);this.right=new Array(n);this.reset();};dojo.extend(dojox.encoding.compression.Splay,{reset:function(){for(var i=1;i