3 writes to Type
Microsoft.DotNet.Build.Tasks.Installers (3)
src\RpmHeader.cs (3)
79Type = (RpmHeaderEntryType)BinaryPrimitives.ReadInt32BigEndian(bytes.Slice(4)), 345Type = RpmHeaderEntryType.Binary, 355Type = RpmHeaderEntryType.Binary,
12 references to Type
Microsoft.DotNet.Build.Tasks.Installers (12)
src\RpmHeader.cs (12)
88BinaryPrimitives.WriteInt32BigEndian(bytes.Slice(4), (int)entry.Type); 137|| !indexEntry.Type.Equals(RpmHeaderEntryType.Binary) 147if (entry.Type is RpmHeaderEntryType.Binary) 149entries.Add(new Entry(entry.Tag, entry.Type, new ArraySegment<byte>(store, entry.Offset, entry.Count))); 151else if (entry.Type is RpmHeaderEntryType.Null) 155else if (entry.Type is RpmHeaderEntryType.String or RpmHeaderEntryType.I18NString) 164entries.Add(new Entry(entry.Tag, entry.Type, Encoding.UTF8.GetString(store, entry.Offset, length))); 166else if (entry.Type is RpmHeaderEntryType.StringArray) 181entries.Add(new Entry(entry.Tag, entry.Type, strings)); 185Array contents = Array.CreateInstance(entry.Type switch 199switch (entry.Type) 226entries.Add(new Entry(entry.Tag, entry.Type, contents));