public CnmtContentMetaEntry(BinaryReader reader) { TitleId = reader.ReadUInt64(); Version = new TitleVersion(reader.ReadUInt32(), true); Type = (ContentType)reader.ReadByte(); reader.BaseStream.Position += 3; }
public CnmtPrevContent(BinaryReader reader) { NcaId = reader.ReadBytes(0x10); Size = reader.ReadUInt32(); Size |= (long)reader.ReadUInt16() << 32; Type = (ContentType)reader.ReadByte(); reader.BaseStream.Position += 1; }
public static string Print(this ContentType value) { return(value switch { ContentType.Meta => nameof(ContentType.Meta), ContentType.Program => nameof(ContentType.Program), ContentType.Data => nameof(ContentType.Data), ContentType.Control => nameof(ContentType.Control), ContentType.HtmlDocument => nameof(ContentType.HtmlDocument), ContentType.LegalInformation => nameof(ContentType.LegalInformation), ContentType.DeltaFragment => nameof(ContentType.DeltaFragment), _ => value.ToString() });