Lines Matching defs:data
53 debug(name + ": " + inOut + "d data length: " + length + " bytes");
76 protected byte data[]; // Data to be deflated and subsequently inflated
79 protected TestCase(String name, byte data[]) {
80 this(name, data, -1);
83 protected TestCase(String name, byte data[], int level) {
85 this.data = data;
96 deflated = deflate(data, level);
105 check(Arrays.equals(data, inflated),
113 abstract protected byte[] deflate(byte data[], int level) throws Throwable;
125 public StrideTest(byte data[], int level) {
126 super("STRIDE", data, level);
179 public NoStrideTest(byte data[], int level) {
180 super("NO STRIDE", data, level);
219 public GZIPTest(byte data[]) {
220 super("GZIP", data);
223 public byte[] deflate(byte data[], int ignored) throws Throwable {
226 gzos.write(data, 0, data.length);
234 byte[] inflated = new byte[data.length];
237 while ((numRead = gzis.read(inflated, count, data.length - count)) > 0) {
240 check(count == data.length, name + ": Read " + count + "; expected " + data.length);
246 byte data[];
256 data = new byte[len];
257 check(fis.read(data, 0, len) == len, "Did not read complete file");
258 debug("Original data from " + args[1]);
263 for (int i = 0; i < 1024 * 64; i++) { // data length
267 data = baos.toByteArray();
268 debug("Original data from random byte array");
270 debug("Original data length: " + data.length + " bytes");
272 new StrideTest(data, level).runTest();
273 new NoStrideTest(data, level).runTest();
274 new GZIPTest(data).runTest();