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

            unit.OsThreadId = UInt32Marshaler.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);
        }
        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);
        }
Exemplo n.º 4
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);
        }