At first I have to say I didn't done this for SRO, but offcourse you can use it. You can easily add SRO packet header support -> 2bytes(len) ...
Here is it:
[Only registered and activated users can see links. Click Here To Register...]
MarshalHelper.Copy is the sample by microsoft ([Only registered and activated users can see links. Click Here To Register...])
You have to allow unsafe code in your compiler.
It can easily read/write any struct you want.
if you want to write/read strings please add a own function, because there are ASCII and Unicode strings in SRO.
Here is it:
[Only registered and activated users can see links. Click Here To Register...]
MarshalHelper.Copy is the sample by microsoft ([Only registered and activated users can see links. Click Here To Register...])
You have to allow unsafe code in your compiler.
It can easily read/write any struct you want.
if you want to write/read strings please add a own function, because there are ASCII and Unicode strings in SRO.