Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. public virtual int[][] GetData ()
  2.  
  3. static IntPtr id_getData;
  4. // Metadata.xml XPath method reference: path="/api/package[@name='org.jcodec.common.model']/class[@name='Picture']/method[@name= 'getData' and count(parameter)=0]"
  5. [Register ("getData", "()[[I", "GetGetDataHandler")]
  6. public virtual int[][] GetData ()
  7. {
  8. if (id_getData == IntPtr.Zero)
  9. id_getData = JNIEnv.GetMethodID (class_ref, "getData", "()[[I");
  10.  
  11. if (GetType () == ThresholdType)
  12. return (int[][]) JNIEnv.GetArray (JNIEnv.CallObjectMethod (Handle, id_getData), JniHandleOwnership.TransferLocalRef, typeof (int[]));
  13. else
  14. return (int[][]) JNIEnv.GetArray (JNIEnv.CallNonvirtualObjectMethod (Handle, ThresholdClass, JNIEnv.GetMethodID (ThresholdClass, "getData", "()[[I")), JniHandleOwnership.TransferLocalRef, typeof (int[]));
  15. }
  16.  
  17. private int[][] data;
  18. public int[][] getData() {
  19. return data;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement