瀏覽代碼

added BufferFormat.pop

Nicolas Cannasse 2 年之前
父節點
當前提交
2464bf8ff0
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      hxd/BufferFormat.hx

+ 6 - 0
hxd/BufferFormat.hx

@@ -73,6 +73,12 @@ class BufferFormat {
 		return make(inputs);
 	}
 
+	public function pop() {
+		var inputs = inputs.copy();
+		inputs.pop();
+		return make(inputs);
+	}
+
 	public inline function getInputs() {
 		return inputs.iterator();
 	}