4 using namespace System;
14 printf("sizeof(*FileStream) == %lu\n", sizeof(*f));
15 printf("sizeof(*IOStream) == %lu\n", sizeof(*io));
16 printf("sizeof(*IStream) == %lu\n", sizeof(*i));
18 printf("sizeof(FileStream) == %lu\n", sizeof(f));
19 printf("sizeof(IOStream) == %lu\n", sizeof(io));
20 printf("sizeof(IStream) == %lu\n", sizeof(i));
23 io = IO::IOStream::downcast(i);
26 printf("io is null\n");
29 Array<uint8_t> abuf(buf, 256);
33 io.write(Array<uint8_t>(buf, 128), &len);
39 uint64_t call1(IO::FileStream fs)
46 void call2(IO::FileStream fs)
48 fs.seek(666, IO::FileStream_ns::SeekType::FromCurrent);
51 uint64_t call3(Mem::Cache c)
58 uint64_t call4(Mem::Cache c)
67 uint64_t call5(Mem::Cache c)
77 uint64_t call6(Mem::Cache c)
86 //const unsigned long System::IO::_i_IOStream::guid[16] = {};