¡@

Home 

c# Programming Glossary: cifspacket

How to convert a structure to a byte array in C#?

http://stackoverflow.com/questions/3278827/how-to-convert-a-structure-to-a-byte-array-in-c

in C# I have defined a structure like this public struct CIFSPacket public uint protocolIdentifier The value must be 0xFF 'SMB'.. method I create an instance of it and assign values to it CIFSPacket packet new CIFSPacket packet.protocolIdentifier 0xff packet.command.. of it and assign values to it CIFSPacket packet new CIFSPacket packet.protocolIdentifier 0xff packet.command byte CommandTypes.SMB_COM_NEGOTIATE..