Added CustomDecoder interface

This commit is contained in:
Mikhail Yakshin 2017-09-06 21:10:59 +03:00
parent fc2f9a48f1
commit bb266f3731
1 changed files with 16 additions and 1 deletions

View File

@ -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);
}
}