@@ -110,7 +110,11 @@ class BytesOutput extends Output {
override function prepare( size : Int ) {
if( size > 0 )
+ #if cpp
+ untyped b.__Resize(size);
+ #else
b[size-1] = b[size-1];
+ #end
}
override function writeString( s : String ) {