def recv_into(self, buffer):
        index = 0
        try:
            for _ in range(self.read_count):
                pkt = self.inbound_packets.pop(0)
                buffer[index:index+len(pkt)] = pkt
                index += len(pkt)
        except __HOLE__:
            pass

        return index
dataset/ETHPy150Open Lukasa/hyper/test/test_socket.py/DummySocket.recv_into