class RLP {

    public static RLPList decode2(byte[] msgData, int depthLimit) {
        if (depthLimit < 1) {
            throw new RuntimeException("Depth limit should be 1 or higher");
        }
        RLPList rlpList = new RLPList();
        fullTraverse(msgData, 0, 0, msgData.length, rlpList, depthLimit);
        return rlpList;
    }

}