Added CustomDecoder interface
This commit is contained in:
parent
fc2f9a48f1
commit
bb266f3731
|
@ -19,4 +19,19 @@ namespace Kaitai
|
|||
m_io = io;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A custom decoder interface. Implementing classes can be called from
|
||||
/// inside a .ksy file using `process: XXX` syntax.
|
||||
/// </summary>
|
||||
public interface CustomDecoder
|
||||
{
|
||||
/// <summary>
|
||||
/// Decodes a given byte array, according to some custom algorithm
|
||||
/// (specific to implementing class) and parameters given in the
|
||||
/// constructor, returning another byte array.
|
||||
/// </summary>
|
||||
/// <param name="src">Source byte array.</param>
|
||||
byte[] Decode(byte[] src);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue