code: def get_max_bitlen(self):
          
          payload_max_bitlen = self.max_size * self.value_type.get_max_bitlen()
          return {
              self.MODE_DYNAMIC: payload_max_bitlen + self.max_size.bit_length(),
              self.MODE_STATIC: payload_max_bitlen
          }[self.mode]
docs: Returns total maximum bit length of the array, including length field if applicable.