def serialize_uncached(self, obj):
    "\n        Same as serialize_object(), but don't create a global variable,\n        simply return a literal {i8* data, i32 length, i8* hashbuf} structure.\n        "
    data = serialize.dumps(obj)
    assert (len(data) < (2 ** 31))
    name = ('.const.pickledata.%s' % (id(obj) if (config.DIFF_IR == 0) else 'DIFF_IR'))
    bdata = cgutils.make_bytearray(data)
    hashed = cgutils.make_bytearray(hashlib.sha1(data).digest())
    arr = self.context.insert_unique_const(self.module, name, bdata)
    hasharr = self.context.insert_unique_const(self.module, f'{name}.sha1', hashed)
    struct = ir.Constant.literal_struct([arr.bitcast(self.voidptr), ir.Constant(ir.IntType(32), arr.type.pointee.count), hasharr.bitcast(self.voidptr)])
    return struct
Same as serialize_object(), but don't create a global variable,
simply return a literal {i8* data, i32 length, i8* hashbuf} structure.
def serialize_uncached(self, obj):
    "\n        Same as serialize_object(), but don't create a global variable,\n        simply return a literal {i8* data, i32 length, i8* hashbuf} structure.\n        "
    data = serialize.dumps(obj)
    assert (len(data) < (2 ** 31))
    name = ('.const.pickledata.%s' % (id(obj) if (config.DIFF_IR == 0) else 'DIFF_IR'))
    bdata = cgutils.make_bytearray(data)
    hashed = cgutils.make_bytearray(hashlib.sha1(data).digest())
    arr = self.context.insert_unique_const(self.module, name, bdata)
    hasharr = self.context.insert_unique_const(self.module, f'{name}.sha1', hashed)
    struct = ir.Constant.literal_struct([arr.bitcast(self.voidptr), ir.Constant(ir.IntType(32), arr.type.pointee.count), hasharr.bitcast(self.voidptr)])
    return struct