code: def gets(self, addr, length):
          
          a = array('B', asbytes('\0'*length))
          try:
              for i in range_g(length):
                  a[i] = self._buf[addr+i]
          except KeyError:
              raise NotEnoughDataError(address=addr, length=length)
          return array_tobytes(a)
docs: Get string of bytes from given address. If any entries are blank
          from addr through addr+length, a NotEnoughDataError exception will
          be raised. Padding is not used.