Changeset 3864
- Timestamp:
- 08/07/08 14:05:11 (4 months ago)
- Files:
-
- trunk/tango/net/http/ChunkStream.d (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tango/net/http/ChunkStream.d
r3863 r3864 108 108 private alias void delegate(char[] line) Headers; 109 109 110 private Headers headers;111 private uint available;110 private Headers headers; 111 private uint available; 112 112 113 113 /*********************************************************************** … … 120 120 this (InputStream stream, Headers headers = null) 121 121 { 122 set (stream);122 set (stream); 123 123 this.headers = headers; 124 124 } … … 126 126 /*********************************************************************** 127 127 128 Read and parse another chunk size129 130 ***********************************************************************/131 132 private final uint nextChunk ()133 {134 char[] tmp;135 136 if ((tmp = super.next).ptr)137 return cast(uint) Integer.parse (tmp, 16);138 return 0;139 }140 141 /***********************************************************************142 143 128 Reset ChunkInput to a new InputStream 144 129 … … 147 132 override ChunkInput set (InputStream stream) 148 133 { 149 super.set(stream);150 available = nextChunk;151 return this;134 super.set (stream); 135 available = nextChunk; 136 return this; 152 137 } 153 138 … … 183 168 return read; 184 169 } 170 171 /*********************************************************************** 172 173 Read and parse another chunk size 174 175 ***********************************************************************/ 176 177 private final uint nextChunk () 178 { 179 char[] tmp; 180 181 if ((tmp = super.next).ptr) 182 return cast(uint) Integer.parse (tmp, 16); 183 return 0; 184 } 185 185 } 186 186












