public static TYPEINFO Deserialize(Stream stream) { var ti = new TYPEINFO(); ti.TypeID = stream.ReadUInt16(); ti.ResourceCount = stream.ReadUInt16(); ti.Reserved = stream.ReadUInt32(); ti.NameInfo = NAMEINFO.Deserialize(stream); return(ti); }
public static NAMEINFO Deserialize(Stream stream) { var ni = new NAMEINFO(); ni.Offset = stream.ReadUInt16(); ni.Length = stream.ReadUInt16(); ni.Flags = stream.ReadUInt16(); ni.ID = stream.ReadUInt16(); ni.Handle = stream.ReadUInt16(); ni.Usage = stream.ReadUInt16(); return(ni); }