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