Browse Source

added reset

Nicolas Cannasse 18 years ago
parent
commit
c427add31b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      std/neko/net/SocketBufferedOutput.hx

+ 4 - 0
std/neko/net/SocketBufferedOutput.hx

@@ -39,6 +39,10 @@ class SocketBufferedOutput extends neko.io.Output {
 		bytes = 0;
 	}
 
+	public function reset() {
+		bytes = 0;
+	}
+
 	public function writable() {
 		return bytes == 0;
 	}