Browse Source

added reset

Nicolas Cannasse 18 năm trước cách đây
mục cha
commit
c427add31b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
 	}