All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kaitai.struct.CustomDecoder Maven / Gradle / Ivy

Go to download

Kaitai Struct is a declarative language used for describe various binary data structures using .ksy format. .ksy format can be compiled into the parser source code in target language. This library is a small collection of runtime methods used by the code generated by Kaitai Struct for Java.

The newest version!
package io.kaitai.struct;

/**
 * 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.
     * @param src source byte array
     * @return decoded byte array
     */
    byte[] decode(byte[] src);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy