Browse Source

Special byte array type for cpp target

Hugh Sanderson 16 years ago
parent
commit
7e3297b1b2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/haxe/io/BytesBuffer.hx

+ 2 - 0
std/haxe/io/BytesBuffer.hx

@@ -45,6 +45,8 @@ class BytesBuffer {
 		b = new flash.utils.ByteArray();
 		#elseif php
 		b = "";
+		#elseif cpp
+		b = new BytesData();
 		#else
 		b = new Array();
 		#end