comparison dwt/dwthelper/InflaterInputStream.d @ 360:ee1dd551f5b1

Make compilable for tango 0.99.8
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 20:30:32 +0100
parents 8ebacc5c07dc
children 4bffbf81e2d6
comparison
equal deleted inserted replaced
359:fd2409fb852e 360:ee1dd551f5b1
28 28
29 uint read (void[] dst){ 29 uint read (void[] dst){
30 int res = istr.read( cast(byte[])dst ); 30 int res = istr.read( cast(byte[])dst );
31 return res; 31 return res;
32 } 32 }
33 void[] load (void[] dst = null) { 33
34 return Conduit.load (this, dst); 34 IOStream flush () {
35 return this;
36 }
37
38 void[] load ( size_t max = -1 ) {
39 return Conduit.load (this, max);
35 } 40 }
36 41
37 tango.io.model.IConduit.InputStream clear (){ 42 tango.io.model.IConduit.InputStream clear (){
38 return this; 43 return this;
39 } 44 }
40 45
41 long seek ( long offset, IOStream.Anchor anchor = IOStream.Anchor.Begin )
42 {
43 throw new IOException(__FILE__ ~ "seek method not implemented");
44 }
45
46 tango.io.model.IConduit.IConduit conduit (){ 46 tango.io.model.IConduit.IConduit conduit (){
47 return null; 47 return null;
48 } 48 }
49 49
50 void close (){ 50 void close (){
51 istr.close(); 51 istr.close();
52 } 52 }
53 53 tango.io.model.IConduit.InputStream input (){
54 tango.io.model.IConduit.InputStream input() { 54 return null;
55 return this; //?? 55 }
56 long seek (long offset, Anchor anchor = Anchor.Begin){
57 return 0;
56 } 58 }
57 } 59 }
58 60
59 public class InflaterInputStream : dwt.dwthelper.InputStream.InputStream { 61 public class InflaterInputStream : dwt.dwthelper.InputStream.InputStream {
60 62