Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        def uint64(n):
    return struct.pack("!Q", n)
        


src/d/p/dpark-HEAD/dpark/moosefs/cs.py   dpark(Download)
 
from consts import CHUNKSIZE, CUTOCS_READ, CSTOCU_READ_DATA, CSTOCU_READ_STATUS
from utils import uint64, pack, unpack
 
logger = logging.getLogger(__name__)
    conn.connect((host, port))
 
    msg = pack(CUTOCS_READ, uint64(chunkid), version, offset, size)
    n = conn.send(msg)
    while n < len(msg):