瀏覽代碼

added prepare

Nicolas Cannasse 19 年之前
父節點
當前提交
94ee3a29c5
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      std/neko/io/Output.hx

+ 9 - 0
std/neko/io/Output.hx

@@ -89,4 +89,13 @@ class Output {
 			writeUInt16(x);
 	}
 
+	/**
+		Inform that we are about to write at least a specified number of bytes.
+		The underlying implementation can allocate proper working space depending
+		on this information, or simply ignore it. This is not a mandatory call
+		but a tip and is only used in some specific cases.
+	**/
+	public function prepare( nbytes : Int ) {
+	}
+
 }