FileCodec
Constructors
Functions
Link copied to clipboard
Encodes the given value to the file. If the value is null, the file is deleted. If the encoding fails, the temp file is deleted. If the encoding succeeds, the temp file is atomically moved to the target file - completing the transaction. On platforms where atomic move is not supported (e.g., Android 7 and below) this falls back to a non-atomic copy-and-delete; the transactional guarantee does not hold for that fallback path.