Demo entry 6683042

py

   

Submitted by anonymous on Dec 12, 2017 at 04:19
Language: Python. Code size: 191 Bytes.

def readBon(stream):
    data = yield stream.read_bytes(5)
    pkg_len=struct.unpack('i',data[1:5])[0]
    left_data = yield stream.read_bytes(pkg_len-len(data))
    return data+left_data

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).