From e3d0f924a416365ea12d8ace8569664cbb09dba5 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 20 Jan 2024 00:37:36 +0800 Subject: initial version --- src/java/FileCowCopier.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/java/FileCowCopier.java (limited to 'src/java/FileCowCopier.java') diff --git a/src/java/FileCowCopier.java b/src/java/FileCowCopier.java new file mode 100644 index 0000000..7295307 --- /dev/null +++ b/src/java/FileCowCopier.java @@ -0,0 +1,19 @@ +package com.keuin.kbackupfabric.util.cow; + + +public final class FileCowCopier { + + public static native void init(); + + public static native void copy(String dst, String src); + + public static native String getVersion(); + + public static void main(String[] args) { + System.loadLibrary("kbackup_cow"); + FileCowCopier.init(); + System.out.println("kbackup-cow version: " + FileCowCopier.getVersion()); + FileCowCopier.copy("b", "a"); + } + +} -- cgit v1.2.3