Example #1
0
 protected object RawDeserialize(Type objectType, ref byte[] buffer)
 {
     using (GCSafeHandle handle = new GCSafeHandle(buffer))
     {
         return(handle.RawDeserialize(objectType));
     }
 }
Example #2
0
 protected void RawSerialize(object serializable, ref byte[] rawdataHolder)
 {
     using (GCSafeHandle handle = new GCSafeHandle(rawdataHolder))
     {
         handle.RawSerialize(serializable);
     }
 }