Afaik that already works. Howver pair.item1 is a property. You canât take the address of a property, youâd have to use a local. But once again, this is not going to work with any reference type. Ie strings classes, dynamic arrays
Unfortunately, it doesnt work, when i do it with generics:
i removed the tuple and wrote the Parameter directly and it still doesnt work, i get an error like that_
"Error (E406) No overloaded method âWriteâ with these parameters on type âMemoryStreamâ, best matching overload is âmethod Write(buf: ^Void; Count: Int32): Int32â
method TSample.Write(const bla: T);
begin
f_buffer.Write(@bla, sizeof(bla) * 1); // the error above
end;