public new static AssemblyNativeInfo Demarshal(Stream stream)
        {
            AssemblyNativeInfo unit = NativeUnitMarshaler <AssemblyNativeInfo> .Demarshal(stream);

            unit.AppDomainId = UInt64Marshaler.Demarshal(stream);
            return(unit);
        }
        public new static void Marshal(ClassNativeInfo value, Stream stream)
        {
            NativeUnitMarshaler <ClassNativeInfo> .Marshal(value, stream);

            UInt32Marshaler.Marshal(value.TypeToken, stream);
            UInt64Marshaler.Marshal(value.ModuleId, stream);
        }
        public new static ModuleNativeInfo Demarshal(Stream stream)
        {
            ModuleNativeInfo unit = NativeUnitMarshaler <ModuleNativeInfo> .Demarshal(stream);

            unit.AssemblyId = UInt64Marshaler.Demarshal(stream);
            return(unit);
        }
        public new static ClassNativeInfo Demarshal(Stream stream)
        {
            ClassNativeInfo unit = NativeUnitMarshaler <ClassNativeInfo> .Demarshal(stream);

            unit.TypeToken = UInt32Marshaler.Demarshal(stream);
            unit.ModuleId  = UInt64Marshaler.Demarshal(stream);
            return(unit);
        }
Example #5
0
        public new static void Marshal(ManagedExceptionNativeInfo value, Stream stream)
        {
            NativeUnitMarshaler <ManagedExceptionNativeInfo> .Marshal(value, stream);

            UInt64Marshaler.Marshal(value.ClassId, stream);
            StringMarshaler.Marshal(value.Message, stream);
            MarshalingManager.Marshal(value.Stack, stream);
        }
Example #6
0
 public static void Marshal(T value, Stream stream)
 {
     UInt64Marshaler.Marshal(value.Uid, stream);
     UInt64Marshaler.Marshal(value.Id, stream);
     UInt64Marshaler.Marshal(value.BeginLifetime, stream);
     UInt64Marshaler.Marshal(value.EndLifetime, stream);
     StringMarshaler.Marshal(value.Name, stream);
 }
        public new static void Marshal(FunctionNativeInfo value, Stream stream)
        {
            NativeUnitMarshaler <FunctionNativeInfo> .Marshal(value, stream);

            UInt32Marshaler.Marshal(value.TypeToken, stream);
            UInt64Marshaler.Marshal(value.ClassId, stream);
            UInt64Marshaler.Marshal(value.ModuleId, stream);
            UInt64Marshaler.Marshal(value.AssemblyId, stream);
        }
Example #8
0
        public new static ManagedExceptionNativeInfo Demarshal(Stream stream)
        {
            ManagedExceptionNativeInfo unit = NativeUnitMarshaler <ManagedExceptionNativeInfo> .Demarshal(stream);

            unit.ClassId = UInt64Marshaler.Demarshal(stream);
            unit.Message = StringMarshaler.Demarshal(stream);
            unit.Stack   = MarshalingManager.Demarshal <ulong[]>(stream);
            return(unit);
        }
        public new static FunctionNativeInfo Demarshal(Stream stream)
        {
            FunctionNativeInfo unit = NativeUnitMarshaler <FunctionNativeInfo> .Demarshal(stream);

            unit.TypeToken  = UInt32Marshaler.Demarshal(stream);
            unit.ClassId    = UInt64Marshaler.Demarshal(stream);
            unit.ModuleId   = UInt64Marshaler.Demarshal(stream);
            unit.AssemblyId = UInt64Marshaler.Demarshal(stream);
            return(unit);
        }
Example #10
0
        public static T Demarshal(Stream stream)
        {
            T value = new T();

            value.Uid           = UInt32Marshaler.Demarshal(stream);
            value.Id            = UInt64Marshaler.Demarshal(stream);
            value.BeginLifetime = UInt32Marshaler.Demarshal(stream);
            value.EndLifetime   = UInt32Marshaler.Demarshal(stream);
            value.Name          = StringMarshaler.Demarshal(stream);
            return(value);
        }
        public new static void Marshal(AssemblyNativeInfo value, Stream stream)
        {
            NativeUnitMarshaler <AssemblyNativeInfo> .Marshal(value, stream);

            UInt64Marshaler.Marshal(value.AppDomainId, stream);
        }
        public new static void Marshal(ModuleNativeInfo value, Stream stream)
        {
            NativeUnitMarshaler <ModuleNativeInfo> .Marshal(value, stream);

            UInt64Marshaler.Marshal(value.AssemblyId, stream);
        }