using System; namespace Kaitai { public abstract class KaitaiStruct { protected KaitaiStream m_io; public KaitaiStream M_Io { get { return m_io; } } public KaitaiStruct(KaitaiStream io) { m_io = io; } } /// /// A custom decoder interface. Implementing classes can be called from /// inside a .ksy file using `process: XXX` syntax. /// public interface CustomDecoder { /// /// Decodes a given byte array, according to some custom algorithm /// (specific to implementing class) and parameters given in the /// constructor, returning another byte array. /// /// Source byte array. byte[] Decode(byte[] src); } }