ostore.archive.cauchy
Class NativeIF

java.lang.Object
  |
  +--ostore.archive.cauchy.NativeIF

public class NativeIF
extends Object


Field Summary
static boolean available
           
 
Constructor Summary
NativeIF()
           
 
Method Summary
static long cauchy_decode_using_c_helper(int[] rec_fragments, int Nrec, int Mfragments, int Rfragments, int NSegs, int Lfield, byte[] rec_message)
          decode uses the cauchy erasure coding method to decode an array of fragments back into a msg.
static long cauchy_encode_and_verify_using_c_helper(byte[] message, int Mfragments, int Rfragments, int NSegs, int Lfield, int[] fragments, int[] intFrags2, byte[] frags3, int[] message2, byte[] message3)
          encode uses the cauchy erasure encoding method to encode a message into fragments.
static long cauchy_encode_using_c_helper(byte[] message, int Mfragments, int Rfragments, int NSegs, int Lfield, int[] fragments)
          encode uses the cauchy erasure encoding method to encode a message into fragments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

available

public static boolean available
Constructor Detail

NativeIF

public NativeIF()
Method Detail

cauchy_encode_using_c_helper

public static long cauchy_encode_using_c_helper(byte[] message,
                                                int Mfragments,
                                                int Rfragments,
                                                int NSegs,
                                                int Lfield,
                                                int[] fragments)
encode uses the cauchy erasure encoding method to encode a message into fragments. FIXME!!!

Returns:
return == time in microseconds to encode the msg into fragments.

cauchy_encode_and_verify_using_c_helper

public static long cauchy_encode_and_verify_using_c_helper(byte[] message,
                                                           int Mfragments,
                                                           int Rfragments,
                                                           int NSegs,
                                                           int Lfield,
                                                           int[] fragments,
                                                           int[] intFrags2,
                                                           byte[] frags3,
                                                           int[] message2,
                                                           byte[] message3)
encode uses the cauchy erasure encoding method to encode a message into fragments. FIXME!!!

Returns:
return == time in microseconds to encode the msg into fragments.

cauchy_decode_using_c_helper

public static long cauchy_decode_using_c_helper(int[] rec_fragments,
                                                int Nrec,
                                                int Mfragments,
                                                int Rfragments,
                                                int NSegs,
                                                int Lfield,
                                                byte[] rec_message)
decode uses the cauchy erasure coding method to decode an array of fragments back into a msg. FIXME

Returns:
return == time in milleseconds to decode fragments into a msg.