def lz4_decode(payload):
 ctx = lz4f.createDecompContext()
 data = lz4f.decompressFrame(payload, ctx)
 if (data['next'] != 0):
  raise RuntimeError('lz4f unable to decompress full payload')
 return data['decomp']

def lz4_decode ( payload ) : ctx = lz4f . createDecompContext ( ) data = lz4f . decompressFrame ( payload , ctx ) if ( data [ 'next' ] != 0 ) : raise RuntimeError ( 'lz4f unable to decompress full payload' ) return data [ 'decomp' ]
decode payload using interoperable lz4 framing .