R
raza
In C++ we can do things like (Header is an instance of C++ structure)
Send(m_Sock,(char*)&Header,sizeof(Header),0)
in C# we have Socket.Send(byte[] , int offset, int size, flags)
how do i convert the instance of a C# class or strucute to byte array
efficiently rathen then creating function myself todo that ?
Regards
Send(m_Sock,(char*)&Header,sizeof(Header),0)
in C# we have Socket.Send(byte[] , int offset, int size, flags)
how do i convert the instance of a C# class or strucute to byte array
efficiently rathen then creating function myself todo that ?
Regards