Update Files

This commit is contained in:
2025-01-22 16:18:30 +01:00
parent ed4603cf95
commit a36294b518
16718 changed files with 2960346 additions and 0 deletions

View File

@ -0,0 +1,23 @@
package tests;
import cpp.Stdio;
using cpp.NativeArray;
class TestStdio extends haxe.unit.TestCase
{
public function test()
{
var file = Stdio.fopen("test.txt", "wb");
var ints = [1];
var size:cpp.SizeT = cpp.Stdlib.sizeof(Int);
Stdio.fwrite( ints.address(0).raw, size, 1, file );
Stdio.fclose(file);
var bytes = sys.io.File.getBytes("test.txt");
var input = new haxe.io.BytesInput(bytes);
var val = input.readInt32();
assertTrue(val==ints[0]);
}
}