def METHOD_NAME(self, key, array, codec, param=0):
    length = len(array)
    raw_bytes = encode_array(array, codec, param)
    data = struct.pack(">i", codec) \
         + struct.pack(">i", length) \
         + struct.pack(">i", param) \
         + raw_bytes
    self._content[key] = data