pass by reference - C# call for 'int foo(QByteArray &memDump)' does not copy into dump into variable -


i'm accessing activexserver in c# programm. 1 function defined int foo(qbytearray &memdump), puts own data onto memdump. if size of byte array wrong or write memdump not work, return values != 0. think must correct.

i create byte array with:

byte[] dump = new byte[size]; int rtn = foo(dump); 

am doing wrong here? address operator in variable list of foo, function supposed work directly on memdump , not copy of - not manipulate data.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -