diff options
author | Holger Zickner <[email protected]> | 2004-07-08 15:58:48 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-07-08 15:58:48 +0000 |
commit | 4f13ea26c4f47e54e66926f0700cf631e7bb3352 (patch) | |
tree | a9d434fc462417bb981b1565fd64cea5e7c82c15 /src/jake2/qcommon/SZ.java | |
parent | 76839da3568e20f51220584d1fc92841b216505a (diff) |
import of Jake2 version hannover
Diffstat (limited to 'src/jake2/qcommon/SZ.java')
-rw-r--r-- | src/jake2/qcommon/SZ.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/jake2/qcommon/SZ.java b/src/jake2/qcommon/SZ.java index f17daa2..08ec6dc 100644 --- a/src/jake2/qcommon/SZ.java +++ b/src/jake2/qcommon/SZ.java @@ -2,7 +2,7 @@ * SZ.java * Copyright (C) 2003 * - * $Id: SZ.java,v 1.1 2004-07-07 19:59:33 hzi Exp $ + * $Id: SZ.java,v 1.2 2004-07-08 15:58:46 hzi Exp $ */ /* Copyright (C) 1997-2001 Id Software, Inc. @@ -25,8 +25,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ package jake2.qcommon; -import java.util.Arrays; - import jake2.Defines; /** @@ -42,10 +40,10 @@ public final class SZ { public static void Init(sizebuf_t buf, byte data[], int length) { //memset (buf, 0, sizeof(*buf)); - //TODO: slow but safe; - Arrays.fill(data,(byte)0); buf.data = data; buf.maxsize = length; + buf.cursize = 0; + buf.allowoverflow = buf.overflowed = false; } |