mirror of
https://github.com/PredatH0r/ChanSort.git
synced 2026-02-21 05:46:47 +01:00
- complete rework of TLL and SCM loaders, removing all "unsafe" code
- fixed various issues with SCM files
This commit is contained in:
19
ChanSort.Plugin.TllFile2/SatChannelListHeader.cs
Normal file
19
ChanSort.Plugin.TllFile2/SatChannelListHeader.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
|
||||
namespace ChanSort.Plugin.TllFile
|
||||
{
|
||||
internal class SatChannelListHeader
|
||||
{
|
||||
private readonly byte[] data;
|
||||
private readonly int baseOffset;
|
||||
public SatChannelListHeader(byte[] data, int offset) { this.data = data; this.baseOffset = offset; }
|
||||
|
||||
public uint Checksum { get { return BitConverter.ToUInt32(data, baseOffset + 0); } }
|
||||
public int LinkedListStartIndex { get { return BitConverter.ToInt16(data, baseOffset + 8); }}
|
||||
public int LinkedListEndIndex1 { get { return BitConverter.ToInt16(data, baseOffset + 10); } }
|
||||
public int LinkedListEndIndex2 { get { return BitConverter.ToInt16(data, baseOffset + 12); } }
|
||||
public int ChannelCount { get { return BitConverter.ToInt16(data, baseOffset + 14); } }
|
||||
|
||||
public int Size { get { return 16; } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user