decodeOrNull

fun decodeOrNull(buffer: ByteArray, depthLimit: Int = DEFAULT_DEPTH_LIMIT, tokenLimit: Int = DEFAULT_TOKEN_LIMIT): BdecodeNode?

Decode buffer; returns null instead of throwing on malformed input.