瀏覽代碼

added reset

Nicolas Cannasse 18 年之前
父節點
當前提交
c427add31b
共有 1 個文件被更改,包括 4 次插入0 次删除
  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;
 		bytes = 0;
 	}
 	}
 
 
+	public function reset() {
+		bytes = 0;
+	}
+
 	public function writable() {
 	public function writable() {
 		return bytes == 0;
 		return bytes == 0;
 	}
 	}